Lines Matching +full:mmc +full:- +full:spi +full:- +full:slot
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-nokia770.c
5 * Modified from board-generic.c
18 #include <linux/spi/spi.h>
19 #include <linux/spi/ads7846.h>
23 #include <linux/platform_data/keypad-omap.h>
24 #include <linux/platform_data/lcd-mipid.h>
25 #include <linux/platform_data/gpio-omap.h>
27 #include <asm/mach-types.h>
36 #include "mmc.h"
75 .name = "omap-keypad",
76 .id = -1,
90 if (pdata->nreset_gpio != -1) { in mipid_shutdown()
92 gpio_set_value(pdata->nreset_gpio, 0); in mipid_shutdown()
146 /* assume no Mini-AB port */
154 .extcon = "tahvo-usb",
162 static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on, in nokia770_mmc_set_power() argument
169 static int nokia770_mmc_get_cover_state(struct device *dev, int slot) in nokia770_mmc_get_cover_state() argument
191 ret = gpio_request(NOKIA770_GPIO_MMC_POWER, "MMC power"); in nokia770_mmc_init()
196 ret = gpio_request(NOKIA770_GPIO_MMC_SWITCH, "MMC cover"); in nokia770_mmc_init()
203 /* Only the second MMC controller is used */ in nokia770_mmc_init()
216 .dev_id = "i2c-cbus-gpio.2",
226 .name = "i2c-cbus-gpio",