gumstix.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | gumstix.c (fdabc466f335bc3cbda8eca2270a8af783cae7eb) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mach-pxa/gumstix.c 4 * 5 * Support for the Gumstix motherboards. 6 * 7 * Original Author: Craig Hughes 8 * Created: Feb 14, 2008 --- 6 unchanged lines hidden (view full) --- 15#include <linux/module.h> 16#include <linux/kernel.h> 17#include <linux/init.h> 18#include <linux/platform_device.h> 19#include <linux/interrupt.h> 20#include <linux/delay.h> 21#include <linux/mtd/mtd.h> 22#include <linux/mtd/partitions.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mach-pxa/gumstix.c 4 * 5 * Support for the Gumstix motherboards. 6 * 7 * Original Author: Craig Hughes 8 * Created: Feb 14, 2008 --- 6 unchanged lines hidden (view full) --- 15#include <linux/module.h> 16#include <linux/kernel.h> 17#include <linux/init.h> 18#include <linux/platform_device.h> 19#include <linux/interrupt.h> 20#include <linux/delay.h> 21#include <linux/mtd/mtd.h> 22#include <linux/mtd/partitions.h> |
23#include <linux/gpio/machine.h> |
|
23#include <linux/gpio.h> 24#include <linux/err.h> 25#include <linux/clk.h> | 24#include <linux/gpio.h> 25#include <linux/err.h> 26#include <linux/clk.h> |
26#include <linux/usb/gpio_vbus.h> | |
27 28#include <asm/setup.h> 29#include <asm/memory.h> 30#include <asm/mach-types.h> 31#include <mach/hardware.h> 32#include <asm/irq.h> 33#include <linux/sizes.h> 34 --- 61 unchanged lines hidden (view full) --- 96#else 97static void __init gumstix_mmc_init(void) 98{ 99 pr_debug("Gumstix mmc disabled\n"); 100} 101#endif 102 103#ifdef CONFIG_USB_PXA25X | 27 28#include <asm/setup.h> 29#include <asm/memory.h> 30#include <asm/mach-types.h> 31#include <mach/hardware.h> 32#include <asm/irq.h> 33#include <linux/sizes.h> 34 --- 61 unchanged lines hidden (view full) --- 96#else 97static void __init gumstix_mmc_init(void) 98{ 99 pr_debug("Gumstix mmc disabled\n"); 100} 101#endif 102 103#ifdef CONFIG_USB_PXA25X |
104static struct gpio_vbus_mach_info gumstix_udc_info = { 105 .gpio_vbus = GPIO_GUMSTIX_USB_GPIOn, 106 .gpio_pullup = GPIO_GUMSTIX_USB_GPIOx, | 104static struct gpiod_lookup_table gumstix_gpio_vbus_gpiod_table = { 105 .dev_id = "gpio-vbus", 106 .table = { 107 GPIO_LOOKUP("gpio-pxa", GPIO_GUMSTIX_USB_GPIOn, 108 "vbus", GPIO_ACTIVE_HIGH), 109 GPIO_LOOKUP("gpio-pxa", GPIO_GUMSTIX_USB_GPIOx, 110 "pullup", GPIO_ACTIVE_HIGH), 111 { }, 112 }, |
107}; 108 109static struct platform_device gumstix_gpio_vbus = { 110 .name = "gpio-vbus", 111 .id = -1, | 113}; 114 115static struct platform_device gumstix_gpio_vbus = { 116 .name = "gpio-vbus", 117 .id = -1, |
112 .dev = { 113 .platform_data = &gumstix_udc_info, 114 }, | |
115}; 116 117static void __init gumstix_udc_init(void) 118{ | 118}; 119 120static void __init gumstix_udc_init(void) 121{ |
122 gpiod_add_lookup_table(&gumstix_gpio_vbus_gpiod_table); |
|
119 platform_device_register(&gumstix_gpio_vbus); 120} 121#else 122static void gumstix_udc_init(void) 123{ 124 pr_debug("Gumstix udc is disabled\n"); 125} 126#endif --- 111 unchanged lines hidden --- | 123 platform_device_register(&gumstix_gpio_vbus); 124} 125#else 126static void gumstix_udc_init(void) 127{ 128 pr_debug("Gumstix udc is disabled\n"); 129} 130#endif --- 111 unchanged lines hidden --- |