Home
last modified time | relevance | path

Searched refs:gpio_base (Results 1 – 25 of 137) sorted by relevance

123456

/linux-2.6.39/drivers/leds/
Dleds-alix2.c23 static u32 gpio_base; variable
46 outl(led_dev->on_value, gpio_base + led_dev->port); in alix_led_set()
48 outl(led_dev->off_value, gpio_base + led_dev->port); in alix_led_set()
188 gpio_base = low & 0x0000ff00; in alix_pci_led_init()
190 if (!request_region(gpio_base, CS5535_GPIO_SIZE, KBUILD_MODNAME)) { in alix_pci_led_init()
196 outl(1 << 6, gpio_base + 0x04); in alix_pci_led_init()
197 outl(1 << 9, gpio_base + 0x84); in alix_pci_led_init()
198 outl(1 << 11, gpio_base + 0x84); in alix_pci_led_init()
231 release_region(gpio_base, CS5535_GPIO_SIZE); in alix_led_exit()
/linux-2.6.39/arch/mips/loongson/lemote-2f/
Dreset.c58 int gpio_base; in fl2f_shutdown() local
62 gpio_base = lo & 0xff00; in fl2f_shutdown()
65 val = inl(gpio_base + GPIOL_OUT_EN); in fl2f_shutdown()
68 outl(val, gpio_base + GPIOL_OUT_EN); in fl2f_shutdown()
71 val = inl(gpio_base + GPIOL_OUT_VAL) & ~(1 << (13)); in fl2f_shutdown()
73 outl(val, gpio_base + GPIOL_OUT_VAL); in fl2f_shutdown()
/linux-2.6.39/drivers/staging/cs5535_gpio/
Dcs5535_gpio.c41 static u32 gpio_base; variable
89 u32 base = gpio_base + cs5535_lowhigh_base(m); in cs5535_gpio_write()
128 u32 base = gpio_base + cs5535_lowhigh_base(m); in cs5535_gpio_read()
198 gpio_base = low & 0x0000ff00; in cs5535_gpio_init()
221 if (!request_region(gpio_base, CS5535_GPIO_SIZE, NAME)) { in cs5535_gpio_init()
237 release_region(gpio_base, CS5535_GPIO_SIZE); in cs5535_gpio_init()
242 gpio_base, mask, major); in cs5535_gpio_init()
256 release_region(gpio_base, CS5535_GPIO_SIZE); in cs5535_gpio_cleanup()
/linux-2.6.39/arch/arm/mach-ks8695/
Dboard-acs5k.c58 unsigned gpio_base, unsigned ngpio, in acs5k_pca9555_setup() argument
67 gpio_request(gpio_base + n, "ACS-5000 GPIO Expander"); in acs5k_pca9555_setup()
69 gpio_direction_input(gpio_base + n); in acs5k_pca9555_setup()
71 gpio_direction_output(gpio_base + n, in acs5k_pca9555_setup()
73 gpio_export(gpio_base + n, 0); /* Export, direction locked down */ in acs5k_pca9555_setup()
80 .gpio_base = 16, /* Start directly after the CPU's GPIO */
/linux-2.6.39/arch/arm/mach-imx/
Dmach-mxt_td60.c135 unsigned gpio_base, unsigned ngpio, in mxt_td60_pca9557_setup() argument
144 gpio_request(gpio_base + n, "MXT_TD60 GPIO Exp"); in mxt_td60_pca9557_setup()
146 gpio_direction_input(gpio_base + n); in mxt_td60_pca9557_setup()
148 gpio_direction_output(gpio_base + n, in mxt_td60_pca9557_setup()
150 gpio_export(gpio_base + n, 0); in mxt_td60_pca9557_setup()
157 .gpio_base = 240, /* place PCA9557 after all MX27 gpio pins */
Dmach-mx1ads.c94 .gpio_base = 4 * 32,
96 .gpio_base = 4 * 32 + 16,
/linux-2.6.39/arch/arm/mach-davinci/
Dgpio.c40 static void __iomem *gpio_base; variable
47 ptr = gpio_base + 0x10; in gpio2regs()
49 ptr = gpio_base + 0x38; in gpio2regs()
51 ptr = gpio_base + 0x60; in gpio2regs()
53 ptr = gpio_base + 0x88; in gpio2regs()
55 ptr = gpio_base + 0xb0; in gpio2regs()
160 gpio_base = ioremap(soc_info->gpio_base, SZ_4K); in davinci_gpio_setup()
161 if (WARN_ON(!gpio_base)) in davinci_gpio_setup()
443 __raw_writel(binten, gpio_base + 0x08); in davinci_gpio_irq_setup()
/linux-2.6.39/drivers/pcmcia/
Delectra_cf.c56 void __iomem * gpio_base; member
70 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present()
147 out_le32(cf->gpio_base+0x90, gpio); in electra_cf_set_socket()
222 cf->gpio_base = ioremap(0xfc103000, 0x1000); in electra_cf_probe()
225 if (!cf->mem_base || !cf->io_virt || !cf->gpio_base || in electra_cf_probe()
319 if (cf->gpio_base) in electra_cf_probe()
320 iounmap(cf->gpio_base); in electra_cf_probe()
341 iounmap(cf->gpio_base); in electra_cf_remove()
/linux-2.6.39/drivers/mfd/
Dasic3.c430 unsigned int gpio_base; in asic3_gpio_direction() local
435 gpio_base = ASIC3_GPIO_TO_BASE(offset); in asic3_gpio_direction()
437 if (gpio_base > ASIC3_GPIO_D_BASE) { in asic3_gpio_direction()
439 gpio_base, offset); in asic3_gpio_direction()
445 out_reg = asic3_read_register(asic, gpio_base + ASIC3_GPIO_DIRECTION); in asic3_gpio_direction()
453 asic3_write_register(asic, gpio_base + ASIC3_GPIO_DIRECTION, out_reg); in asic3_gpio_direction()
476 unsigned int gpio_base; in asic3_gpio_get() local
481 gpio_base = ASIC3_GPIO_TO_BASE(offset); in asic3_gpio_get()
483 if (gpio_base > ASIC3_GPIO_D_BASE) { in asic3_gpio_get()
485 gpio_base, offset); in asic3_gpio_get()
[all …]
Dtps6586x.c291 static int tps6586x_gpio_init(struct tps6586x *tps6586x, int gpio_base) in tps6586x_gpio_init() argument
293 if (!gpio_base) in tps6586x_gpio_init()
299 tps6586x->gpio.base = gpio_base; in tps6586x_gpio_init()
516 ret = tps6586x_gpio_init(tps6586x, pdata->gpio_base); in tps6586x_i2c_probe()
531 if (pdata->gpio_base) { in tps6586x_i2c_probe()
554 if (pdata->gpio_base) { in tps6586x_i2c_remove()
/linux-2.6.39/arch/x86/platform/mrst/
Dmrst.c379 int gpio_base = get_gpio_by_name("pmic_gpio_base"); in pmic_gpio_platform_data() local
381 if (gpio_base == -1) in pmic_gpio_platform_data()
382 gpio_base = 64; in pmic_gpio_platform_data()
383 pmic_gpio_pdata.gpio_base = gpio_base; in pmic_gpio_platform_data()
384 pmic_gpio_pdata.irq_base = gpio_base + MRST_IRQ_OFFSET; in pmic_gpio_platform_data()
409 int gpio_base, intr; in max7315_platform_data() local
430 gpio_base = get_gpio_by_name(base_pin_name); in max7315_platform_data()
433 if (gpio_base == -1) in max7315_platform_data()
435 max7315->gpio_base = gpio_base; in max7315_platform_data()
438 max7315->irq_base = gpio_base + MRST_IRQ_OFFSET; in max7315_platform_data()
/linux-2.6.39/include/linux/mfd/
Dtc3589x.h173 int gpio_base; member
174 void (*setup)(struct tc3589x *tc3589x, unsigned gpio_base);
175 void (*remove)(struct tc3589x *tc3589x, unsigned gpio_base);
Dstmpe.h126 int gpio_base; member
128 void (*setup)(struct stmpe *stmpe, unsigned gpio_base);
129 void (*remove)(struct stmpe *stmpe, unsigned gpio_base);
/linux-2.6.39/arch/arm/mach-spear6xx/
Dspear6xx.c54 .gpio_base = 0,
57 .gpio_base = 8,
60 .gpio_base = 16,
/linux-2.6.39/arch/arm/mach-versatile/
Dversatile_pb.c52 .gpio_base = 16,
57 .gpio_base = 24,
/linux-2.6.39/arch/arm/mach-realview/
Drealview_pba8.c104 .gpio_base = 0,
109 .gpio_base = 8,
114 .gpio_base = 16,
/linux-2.6.39/include/linux/
Dintel_pmic_gpio.h8 unsigned gpio_base; member
Dtimb_gpio.h32 int gpio_base; member
/linux-2.6.39/include/linux/amba/
Dpl061.h7 unsigned gpio_base; member
/linux-2.6.39/include/linux/mfd/ab8500/
Dgpio.h16 int gpio_base; member
/linux-2.6.39/arch/arm/mach-sa1100/include/mach/
Dmcp.h19 int gpio_base; member
/linux-2.6.39/include/sound/
Dwm8962.h18 int gpio_base; member
/linux-2.6.39/include/linux/i2c/
Dsx150x.h71 unsigned gpio_base; member
Dpcf857x.h32 unsigned gpio_base; member
/linux-2.6.39/drivers/gpio/
Dwm8350-gpiolib.c127 if (pdata && pdata->gpio_base) in wm8350_gpio_probe()
128 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()

123456