Lines Matching +full:index +full:- +full:power +full:- +full:of +full:- +full:two

1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap2/board-n8x0.c
5 * Copyright (C) 2005-2009 Nokia Corporation
8 * Modified from mach-omap2/board-generic.c
23 #include <linux/platform_data/spi-omap2-mcspi.h>
24 #include <linux/platform_data/mmc-omap.h>
28 #include <asm/mach-types.h>
32 #include "usb-tusb6010.h"
34 #include "common-board-devices.h"
56 else if (of_machine_is_compatible("nokia,n810-wimax")) in board_check_revision()
75 .power = 100, /* Max 100 mA VBUS for host mode */
80 .dev_id = "musb-tusb",
82 GPIO_LOOKUP("gpio-0-31", 0, "enable", GPIO_ACTIVE_HIGH),
83 GPIO_LOOKUP("gpio-32-63", 26, "int", GPIO_ACTIVE_HIGH),
127 * On both N800 and N810, only the first of the two MMC controllers is in use.
128 * The two MMC slots are multiplexed via Menelaus companion chip over I2C.
129 * On N800, both slots are powered via Menelaus. On N810, only one of the
142 .dev_id = "mmci-omap.0",
145 GPIO_LOOKUP("gpio-96-127", 0, "switch", GPIO_ACTIVE_HIGH),
151 .dev_id = "mmci-omap.0",
154 GPIO_LOOKUP("gpio-96-127", 0, "switch", GPIO_ACTIVE_HIGH),
155 /* Slot index 1, VSD power, GPIO 23 */
156 GPIO_LOOKUP_IDX("gpio-0-31", 23, "vsd", 1, GPIO_ACTIVE_HIGH),
157 /* Slot index 1, VIO power, GPIO 9 */
158 GPIO_LOOKUP_IDX("gpio-0-31", 9, "vio", 1, GPIO_ACTIVE_HIGH),
169 dev_dbg(dev, "Set slot %d power: %s (vdd %d)\n", slot + 1, in n8x0_mmc_set_power_menelaus()
238 /* The n810 power will be handled by GPIO code in the driver */ in n8x0_mmc_set_power()
248 bus_mode == MMC_BUSMODE_OPENDRAIN ? "open-drain" : "push-pull"); in n8x0_mmc_set_bus_mode()
280 int bit, *openp, index; in n8x0_mmc_callback() local
285 index = 1; in n8x0_mmc_callback()
289 index = 0; in n8x0_mmc_callback()
297 omap_mmc_notify_cover_event(mmc_device, index, *openp); in n8x0_mmc_callback()
379 * MMC controller1 has two slots that are multiplexed via I2C.
419 * Some Samsung Movinand chips do not like open-ended in n8x0_mmc_init()
420 * multi-block reads and fall to braind-dead state in n8x0_mmc_init()
421 * while doing so. Reducing the number of blocks in in n8x0_mmc_init()
499 .dev_id = "soc-audio",
501 GPIO_LOOKUP("gpio-0-15", 10, "headset", GPIO_ACTIVE_HIGH),
502 GPIO_LOOKUP("gpio-80-111", 21, "speaker", GPIO_ACTIVE_HIGH),
510 return -ENODEV; in n8x0_late_initcall()