Lines Matching +full:fiq +full:- +full:device
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-ams-delta.c
5 * Modified from board-generic.c
19 #include <linux/mtd/nand-gpio.h>
29 #include <linux/platform_data/gpio-omap.h>
30 #include <linux/soc/ti/omap1-mux.h>
33 #include <asm/mach-types.h>
37 #include <linux/platform_data/keypad-omap.h>
41 #include "ams-delta-fiq.h"
42 #include "board-ams-delta.h"
171 .end = LATCH1_PHYS + (LATCH1_NGPIO - 1) / 8,
180 .base = -1,
185 .name = "basic-mmio-gpio",
209 .end = LATCH2_PHYS + (LATCH2_NGPIO - 1) / 8,
218 .base = -1,
223 .name = "basic-mmio-gpio",
251 REGULATOR_SUPPLY("POR", "cx20442-codec"),
272 .name = "reg-fixed-voltage",
273 .id = -1,
280 .dev_id = "reg-fixed-voltage",
295 * Define partitions for flash device
302 { .name = "u-boot",
305 { .name = "u-boot params",
315 .offset = 32 * SZ_1M - 3 * SZ_256K,
325 .name = "ams-delta-nand",
326 .id = -1,
332 #define OMAP_GPIO_LABEL "gpio-0-15"
382 .name = "omap-keypad",
383 .id = -1,
393 .id = -1,
455 .name = "ams-delta-audio",
456 .id = -1,
474 .name = "cx20442-codec",
475 .id = -1,
486 .start = -EINVAL,
487 .end = -EINVAL,
492 .name = "ams-delta-serio",
498 * with FIQ buffer address as soon as FIQ is initialized.
509 * with serio dev_name() as soon as the serio device is registered.
529 .name = "reg-fixed-voltage",
608 * with GPIO numbers. The same applies to GPIO based IRQ lines - some in omap_gpio_deps_init()
614 * This reference will be leaked but that's alright as this device in omap_gpio_deps_init()
619 pr_err("%s: OMAP GPIO device not found\n", __func__); in omap_gpio_deps_init()
626 * Start with FIQ initialization as it may have to request in omap_gpio_deps_init()
635 * Initialize latch2 pins with values which are safe for dependent on-board
638 * - LATCH2_PIN_LCD_VBLEN = 0
639 * - LATCH2_PIN_LCD_NDISP = 0 Keep LCD device powered off before its
641 * - LATCH2_PIN_NAND_NCE = 0
642 * - LATCH2_PIN_NAND_NWP = 0 Keep NAND device down and write-
645 * - LATCH2_PIN_KEYBRD_PWR = 0 Keep keyboard powered off before serio
647 * - LATCH2_PIN_KEYBRD_DATAOUT = 0 Keep low to avoid corruption of first
649 * keyboard when serio device is probed;
652 * - LATCH2_PIN_MODEM_NRESET = 1 Enable voice MODEM device, allowing for
656 * - LATCH2_PIN_MODEM_CODEC = 1 Attach voice MODEM CODEC data port
732 leds_gpio_table.dev_id = dev_name(&leds_pdev->dev); in ams_delta_init()
743 struct modem_private_data *priv = port->private_data; in modem_pm()
749 if (IS_ERR(priv->regulator)) in modem_pm()
756 ret = regulator_enable(priv->regulator); in modem_pm()
758 ret = regulator_disable(priv->regulator); in modem_pm()
763 dev_warn(port->dev, in modem_pm()
784 static int ams_delta_modem_pm_activate(struct device *dev) in ams_delta_modem_pm_activate()
788 return -EPROBE_DEFER; in ams_delta_modem_pm_activate()
808 * The MODEM device requires its RESET# pin kept high during probe.
810 * - with a descriptor of already functional modem_nreset regulator
812 * - with the regulator not yet controlled by modem_pm function but
814 * - before the modem_nreset regulator is probed, with the pin already
818 * In order to avoid taking over ttyS0 device slot, the MODEM device
826 return -ENODEV; in ams_delta_modem_init()
831 modem_priv.regulator = ERR_PTR(-ENODEV); in ams_delta_modem_init()