Lines Matching +full:sda +full:- +full:output +full:- +full:only

1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-sa1100/assabet.c
7 * This file contains all Assabet-specific tweaks.
14 #include <linux/gpio/gpio-reg.h>
18 #include <linux/platform_data/sa11x0-serial.h>
34 #include <asm/mach-types.h>
37 #include <asm/pgtable-hwdef.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()
105 * causes the ADV7171 to consume around 100mA - more than half
106 * the LCD-blanked power.
109 * budget on the MAX846 Li-Ion charger, and if no Li-Ion battery
116 #define SDA GPIO_GPIO(15) macro
124 GPSR = SDA; in adv7171_start()
126 GPCR = SDA; in adv7171_start()
133 GPSR = SDA; in adv7171_stop()
145 GPSR = SDA; in adv7171_send()
147 GPCR = SDA; in adv7171_send()
154 GPSR = SDA; in adv7171_send()
156 GPDR &= ~SDA; in adv7171_send()
159 if (GPLR & SDA) in adv7171_send()
162 GPCR = SCK | SDA; in adv7171_send()
164 GPDR |= SDA; in adv7171_send()
176 GPCR = SDA | SCK | MOD; /* clear L3 mode to ensure UDA1341 doesn't respond */ in adv7171_write()
177 GPDR = (GPDR | SCK | MOD) & ~SDA; in adv7171_write()
179 if (!(GPLR & SDA)) in adv7171_write()
180 printk(KERN_WARNING "Something dragging SDA down?\n"); in adv7171_write()
181 GPDR |= SDA; in adv7171_write()
190 GPSR = gplr & (SDA | SCK | MOD); in adv7171_write()
191 GPCR = (~gplr) & (SDA | SCK | MOD); in adv7171_write()
302 .gpio_base = -1,
415 .dev_id = "sa11x0-pcmcia.1",
422 GPIO_LOOKUP("assabet", 7, "bus-enable", GPIO_ACTIVE_LOW),
428 REGULATOR_SUPPLY("vcc", "sa11x0-pcmcia.1"),
432 .supply_name = "cf-power",
437 .dev_id = "reg-fixed-voltage.0",
445 .dev_id = "leds-gpio",
495 .dev_id = "sa11x0-uart.1",
507 .dev_id = "sa11x0-uart.3",
529 * excessive power drain. --rmk in assabet_init()
535 * Also set GPIO27 as an output; this is used to clock UART3 in assabet_init()
574 platform_device_register_resndata(NULL, "gpio-keys", 0, in assabet_init()
580 gpio_led_register_device(-1, &assabet_leds_pdata); in assabet_init()
615 * (taken from "Intel StrongARM SA-1110 Microprocessor Development Board
618 * This same scan is performed in arch/arm/boot/compressed/head-sa1100.S
633 for(i = 100; i--; ) /* Read GPIO 9:2 */ in get_assabet_scr()
654 if (port->mapbase == _Ser1UTCR0) { in assabet_uart_pm()
732 MACHINE_START(ASSABET, "Intel-Assabet")