Lines Matching +full:0 +full:x00130000

27 	GPIO_USE_SEL = 0,
34 {0x00, 0x30, 0x40}, /* USE_SEL[1-3] offsets */
35 {0x04, 0x34, 0x44}, /* IO_SEL[1-3] offsets */
36 {0x0c, 0x38, 0x48}, /* LVL[1-3] offsets */
37 {0x18, 0x18, 0x18}, /* BLINK offset */
41 0x30, 0x10, 0x10,
45 {0x00, 0x80, 0x00},
46 {0x04, 0x84, 0x00},
47 {0x08, 0x88, 0x00},
51 0x10, 0x10, 0x00,
106 int bit = nr & 0x1f; in ichx_write_bit()
130 return (verify && data != tmp) ? -EPERM : 0; in ichx_write_bit()
138 int bit = nr & 0x1f; in ichx_read_bit()
178 /* Disable blink hardware which is available for GPIOs from 0 to 31. */ in ichx_gpio_direction_output()
180 ichx_write_bit(GPO_BLINK, nr, 0, 0); in ichx_gpio_direction_output()
183 ichx_write_bit(GPIO_LVL, nr, val, 0); in ichx_gpio_direction_output()
189 return ichx_write_bit(GPIO_IO_SEL, nr, 0, 1); in ichx_gpio_direction_output()
203 * GPI 0 - 15 need to be read from the power management registers on in ich6_gpio_get()
212 /* GPI 0 - 15 are latched, write 1 to clear*/ in ich6_gpio_get()
213 ICHX_WRITE(BIT(16 + nr), 0, ichx_priv.pm_base); in ich6_gpio_get()
214 data = ICHX_READ(0, ichx_priv.pm_base); in ich6_gpio_get()
235 if (ichx_priv.desc->use_sel_ignore[nr / 32] & BIT(nr & 0x1f)) in ichx_gpio_request()
236 return 0; in ichx_gpio_request()
238 return ichx_read_bit(GPIO_USE_SEL, nr) ? 0 : -ENODEV; in ichx_gpio_request()
245 * bridge as they are controlled by USE register bits 0 and 1. See in ich6_gpio_request()
257 ichx_write_bit(GPIO_LVL, nr, val, 0); in ichx_gpio_set()
284 /* Bridges using the ICH6 controller need fixups for GPIO 0 - 17 */
288 /* GPIO 0-15 are read in the GPE0_STS PM register */
300 * Bits 16,17, 20 of USE_SEL and bit 16 of USE_SEL2 always read 0 on
304 .use_sel_ignore = {0x00130000, 0x00010000, 0x0},
306 /* The 3100 needs fixups for GPIO 0 - 17 */
310 /* GPIO 0-15 are read in the GPE0_STS PM register */
374 for (i = 0; i < ARRAY_SIZE(ichx_priv.desc->regs[0]); i++) { in ichx_gpio_request_regions()
378 res_base->start + ichx_priv.desc->regs[0][i], in ichx_gpio_request_regions()
382 return 0; in ichx_gpio_request_regions()
439 * 0 - 15 on some chipsets. in ichx_gpio_probe()
446 dev_warn(dev, "ACPI BAR is unavailable, GPI 0 - 15 unavailable\n"); in ichx_gpio_probe()
452 dev_warn(dev, "ACPI BAR is busy, GPI 0 - 15 unavailable\n"); in ichx_gpio_probe()
469 return 0; in ichx_gpio_probe()