Lines Matching +full:0 +full:x6c

54 	return !!(inb(port) & 0x02);  in ibf_status()
59 return inb(port) & 0x01; in obf_status()
114 int restarts = 0; in olpc_xo1_ec_cmd()
117 for (i = 0; i < 10 && (obf_status(0x6c) == 1); i++) in olpc_xo1_ec_cmd()
118 inb(0x68); in olpc_xo1_ec_cmd()
125 if (wait_on_ibf(0x6c, 0)) { in olpc_xo1_ec_cmd()
141 pr_devel("olpc-ec: running cmd 0x%x\n", cmd); in olpc_xo1_ec_cmd()
142 outb(cmd, 0x6c); in olpc_xo1_ec_cmd()
144 if (wait_on_ibf(0x6c, 0)) { in olpc_xo1_ec_cmd()
152 for (i = 0; i < inlen; i++) { in olpc_xo1_ec_cmd()
153 pr_devel("olpc-ec: sending cmd arg 0x%x\n", inbuf[i]); in olpc_xo1_ec_cmd()
154 outb(inbuf[i], 0x68); in olpc_xo1_ec_cmd()
155 if (wait_on_ibf(0x6c, 0)) { in olpc_xo1_ec_cmd()
164 for (i = 0; i < outlen; i++) { in olpc_xo1_ec_cmd()
165 if (wait_on_obf(0x6c, 1)) { in olpc_xo1_ec_cmd()
172 outbuf[i] = inb(0x68); in olpc_xo1_ec_cmd()
173 pr_devel("olpc-ec: received 0x%x\n", outbuf[i]); in olpc_xo1_ec_cmd()
177 ret = 0; in olpc_xo1_ec_cmd()
188 return propsize == 5 && strncmp("OLPC", olpc_arch, 5) == 0; in check_ofw_architecture()
198 return 0; in get_board_revision()
217 ((olpc_platform_info.boardrev & 0xf) < 8) ? "pre" : "", in platform_detect()
229 pdev = platform_device_register_simple("xo1-rfkill", -1, NULL, 0); in add_xo1_platform_devices()
233 pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0); in add_xo1_platform_devices()
244 return olpc_ec_cmd(EC_SET_SCI_INHIBIT, NULL, 0, NULL, 0); in olpc_xo1_ec_suspend()
250 olpc_ec_cmd(EC_SET_SCI_INHIBIT_RELEASE, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
256 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
257 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
259 return 0; in olpc_xo1_ec_resume()
288 int r = 0; in olpc_init()
291 return 0; in olpc_init()
294 if (olpc_platform_info.boardrev < olpc_board_pre(0xd0)) /* XO-1 */ in olpc_init()
298 platform_device_register_simple("olpc-ec", -1, NULL, 0); in olpc_init()
301 if (olpc_board_at_least(olpc_board(0xb1))) in olpc_init()
307 if (olpc_platform_info.boardrev < olpc_board_pre(0xd0) && in olpc_init()
312 if (olpc_platform_info.boardrev < olpc_board_pre(0xd0)) { /* XO-1 */ in olpc_init()
318 return 0; in olpc_init()