Lines Matching +full:en +full:- +full:modem

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>
30 #include <linux/platform_data/gpio-omap.h>
31 #include <linux/soc/ti/omap1-mux.h>
34 #include <asm/mach-types.h>
38 #include <linux/platform_data/keypad-omap.h>
42 #include "ams-delta-fiq.h"
43 #include "board-ams-delta.h"
172 .end = LATCH1_PHYS + (LATCH1_NGPIO - 1) / 8,
186 .name = "basic-mmio-gpio",
208 .end = LATCH2_PHYS + (LATCH2_NGPIO - 1) / 8,
222 .name = "basic-mmio-gpio",
248 REGULATOR_SUPPLY("POR", "cx20442-codec"),
269 .name = "reg-fixed-voltage",
270 .id = -1,
277 .dev_id = "reg-fixed-voltage",
299 { .name = "u-boot",
302 { .name = "u-boot params",
312 .offset = 32 * SZ_1M - 3 * SZ_256K,
322 .name = "ams-delta-nand",
323 .id = -1,
329 #define OMAP_GPIO_LABEL "gpio-0-15"
379 .name = "omap-keypad",
380 .id = -1,
390 .id = -1,
452 .name = "ams-delta-audio",
453 .id = -1,
471 .name = "cx20442-codec",
472 .id = -1,
483 .start = -EINVAL,
484 .end = -EINVAL,
489 .name = "ams-delta-serio",
526 .name = "reg-fixed-voltage",
568 * Obtain MODEM IRQ GPIO descriptor using its hardware pin
569 * number and assign related IRQ number to the MODEM port.
580 pr_err("%s: modem IRQ GPIO request failed (%ld)\n", __func__, in modem_assign_irq()
603 * with GPIO numbers. The same applies to GPIO based IRQ lines - some in omap_gpio_deps_init()
630 * Initialize latch2 pins with values which are safe for dependent on-board
633 * - LATCH2_PIN_LCD_VBLEN = 0
634 * - LATCH2_PIN_LCD_NDISP = 0 Keep LCD device powered off before its
636 * - LATCH2_PIN_NAND_NCE = 0
637 * - LATCH2_PIN_NAND_NWP = 0 Keep NAND device down and write-
640 * - LATCH2_PIN_KEYBRD_PWR = 0 Keep keyboard powered off before serio
642 * - LATCH2_PIN_KEYBRD_DATAOUT = 0 Keep low to avoid corruption of first
647 * - LATCH2_PIN_MODEM_NRESET = 1 Enable voice MODEM device, allowing for
651 * - LATCH2_PIN_MODEM_CODEC = 1 Attach voice MODEM CODEC data port
652 * to the MODEM so the CODEC is under
730 leds_gpio_table.dev_id = dev_name(&leds_pdev->dev); in ams_delta_init()
741 struct modem_private_data *priv = port->private_data; in modem_pm()
747 if (IS_ERR(priv->regulator)) in modem_pm()
754 ret = regulator_enable(priv->regulator); in modem_pm()
756 ret = regulator_disable(priv->regulator); in modem_pm()
761 dev_warn(port->dev, in modem_pm()
763 state ? "dis" : "en", ret); in modem_pm()
786 return -EPROBE_DEFER; in ams_delta_modem_pm_activate()
805 * This function expects MODEM IRQ number already assigned to the port.
806 * The MODEM device requires its RESET# pin kept high during probe.
808 * - with a descriptor of already functional modem_nreset regulator
809 * assigned to the MODEM private data,
810 * - with the regulator not yet controlled by modem_pm function but
812 * - before the modem_nreset regulator is probed, with the pin already
816 * In order to avoid taking over ttyS0 device slot, the MODEM device
824 return -ENODEV; in ams_delta_modem_init()
829 modem_priv.regulator = ERR_PTR(-ENODEV); in ams_delta_modem_init()