Lines Matching +full:gpio +full:- +full:sck

1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/assabet.c
7 * This file contains all Assabet-specific tweaks.
13 #include <linux/gpio/gpio-reg.h>
14 #include <linux/gpio/machine.h>
17 #include <linux/platform_data/sa11x0-serial.h>
33 #include <asm/mach-types.h>
36 #include <asm/pgtable-hwdef.h>
41 #include <linux/platform_data/irda-sa11x0.h>
44 #include <linux/platform_data/mfd-mcp-sa11x0.h>
83 assabet_bcr_gc->set_multiple(assabet_bcr_gc, &m, &v); in ASSABET_BCR_frob()
93 gc = gpio_reg_init(NULL, reg, -1, 32, "assabet", 0xff000000, def_val, in assabet_init_gpio()
101 return gc->base; in assabet_init_gpio()
107 * causes the ADV7171 to consume around 100mA - more than half
108 * the LCD-blanked power.
111 * budget on the MAX846 Li-Ion charger, and if no Li-Ion battery
119 #define SCK GPIO_GPIO(18) macro
124 GPSR = SCK; in adv7171_start()
133 GPSR = SCK; in adv7171_stop()
144 GPCR = SCK; in adv7171_send()
151 GPSR = SCK; in adv7171_send()
154 GPCR = SCK; in adv7171_send()
159 GPSR = SCK; in adv7171_send()
164 GPCR = SCK | SDA; in adv7171_send()
178 GPCR = SDA | SCK | MOD; /* clear L3 mode to ensure UDA1341 doesn't respond */ in adv7171_write()
179 GPDR = (GPDR | SCK | MOD) & ~SDA; in adv7171_write()
191 /* Restore GPIO state for L3 bus */ in adv7171_write()
192 GPSR = gplr & (SDA | SCK | MOD); in adv7171_write()
193 GPCR = (~gplr) & (SDA | SCK | MOD); in adv7171_write()
336 .gpio_base = -1,
449 .dev_id = "sa11x0-pcmcia.1",
451 GPIO_LOOKUP("gpio", 21, "ready", GPIO_ACTIVE_HIGH),
452 GPIO_LOOKUP("gpio", 22, "detect", GPIO_ACTIVE_LOW),
453 GPIO_LOOKUP("gpio", 24, "bvd2", GPIO_ACTIVE_HIGH),
454 GPIO_LOOKUP("gpio", 25, "bvd1", GPIO_ACTIVE_HIGH),
456 GPIO_LOOKUP("assabet", 7, "bus-enable", GPIO_ACTIVE_LOW),
462 REGULATOR_SUPPLY("vcc", "sa11x0-pcmcia.1"),
466 .supply_name = "cf-power",
471 .dev_id = "reg-fixed-voltage.0",
499 .gpio = 0,
506 .gpio = 1,
522 .dev_id = "sa11x0-uart.1",
534 .dev_id = "sa11x0-uart.3",
556 * excessive power drain. --rmk in assabet_init()
601 platform_device_register_resndata(NULL, "gpio-keys", 0, in assabet_init()
606 gpio_led_register_device(-1, &assabet_leds_pdata); in assabet_init()
626 * in the page table here in order to access GPIO registers.
642 * (taken from "Intel StrongARM SA-1110 Microprocessor Development Board
645 * This same scan is performed in arch/arm/boot/compressed/head-sa1100.S
657 GPDR |= 0x3fc; /* Configure GPIO 9:2 as outputs */ in get_assabet_scr()
658 GPSR = 0x3fc; /* Write 0xFF to GPIO 9:2 */ in get_assabet_scr()
659 GPDR &= ~(0x3fc); /* Configure GPIO 9:2 as inputs */ in get_assabet_scr()
660 for(i = 100; i--; ) /* Read GPIO 9:2 */ in get_assabet_scr()
681 if (port->mapbase == _Ser1UTCR0) { in assabet_uart_pm()
759 assabet_leds[0].gpio = assabet_gpio_base + 13; in assabet_init_irq()
760 assabet_leds[1].gpio = assabet_gpio_base + 14; in assabet_init_irq()
763 MACHINE_START(ASSABET, "Intel-Assabet")