Merge tag 'ep93xx-cleanup-for-3.5' of git://github.com/RyanMallon/linux-ep93xx into next/cleanup
By H Hartley Sweeten (2) and Ryan Mallon (1) via Ryan Mallon * tag 'ep93xx-cleanup-for-3.5' of git://github.com/RyanMallon/linux-ep93xx: arm: ep93xx: use gpio_led_register_device Fix build breakage in ep93xx-core arm: ep93xx: use DEFINE_RES_* macros
This commit is contained in:
commit
a9a9bb2062
|
@ -2,6 +2,11 @@ if ARCH_EP93XX
|
||||||
|
|
||||||
menu "Cirrus EP93xx Implementation Options"
|
menu "Cirrus EP93xx Implementation Options"
|
||||||
|
|
||||||
|
config EP93XX_SOC_COMMON
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
select LEDS_GPIO_REGISTER
|
||||||
|
|
||||||
config CRUNCH
|
config CRUNCH
|
||||||
bool "Support for MaverickCrunch"
|
bool "Support for MaverickCrunch"
|
||||||
help
|
help
|
||||||
|
|
|
@ -241,11 +241,7 @@ unsigned int ep93xx_chip_revision(void)
|
||||||
* EP93xx GPIO
|
* EP93xx GPIO
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
static struct resource ep93xx_gpio_resource[] = {
|
static struct resource ep93xx_gpio_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_GPIO_PHYS_BASE, 0xcc),
|
||||||
.start = EP93XX_GPIO_PHYS_BASE,
|
|
||||||
.end = EP93XX_GPIO_PHYS_BASE + 0xcc - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_gpio_device = {
|
static struct platform_device ep93xx_gpio_device = {
|
||||||
|
@ -288,11 +284,7 @@ static AMBA_APB_DEVICE(uart3, "apb:uart3", 0x00041010, EP93XX_UART3_PHYS_BASE,
|
||||||
{ IRQ_EP93XX_UART3 }, &ep93xx_uart_data);
|
{ IRQ_EP93XX_UART3 }, &ep93xx_uart_data);
|
||||||
|
|
||||||
static struct resource ep93xx_rtc_resource[] = {
|
static struct resource ep93xx_rtc_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_RTC_PHYS_BASE, 0x10c),
|
||||||
.start = EP93XX_RTC_PHYS_BASE,
|
|
||||||
.end = EP93XX_RTC_PHYS_BASE + 0x10c - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_rtc_device = {
|
static struct platform_device ep93xx_rtc_device = {
|
||||||
|
@ -304,16 +296,8 @@ static struct platform_device ep93xx_rtc_device = {
|
||||||
|
|
||||||
|
|
||||||
static struct resource ep93xx_ohci_resources[] = {
|
static struct resource ep93xx_ohci_resources[] = {
|
||||||
[0] = {
|
DEFINE_RES_MEM(EP93XX_USB_PHYS_BASE, 0x1000),
|
||||||
.start = EP93XX_USB_PHYS_BASE,
|
DEFINE_RES_IRQ(IRQ_EP93XX_USB),
|
||||||
.end = EP93XX_USB_PHYS_BASE + 0x0fff,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = IRQ_EP93XX_USB,
|
|
||||||
.end = IRQ_EP93XX_USB,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -372,15 +356,8 @@ void __init ep93xx_register_flash(unsigned int width,
|
||||||
static struct ep93xx_eth_data ep93xx_eth_data;
|
static struct ep93xx_eth_data ep93xx_eth_data;
|
||||||
|
|
||||||
static struct resource ep93xx_eth_resource[] = {
|
static struct resource ep93xx_eth_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_ETHERNET_PHYS_BASE, 0x10000),
|
||||||
.start = EP93XX_ETHERNET_PHYS_BASE,
|
DEFINE_RES_IRQ(IRQ_EP93XX_ETHERNET),
|
||||||
.end = EP93XX_ETHERNET_PHYS_BASE + 0xffff,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
}, {
|
|
||||||
.start = IRQ_EP93XX_ETHERNET,
|
|
||||||
.end = IRQ_EP93XX_ETHERNET,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32);
|
static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
@ -461,16 +438,8 @@ void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data,
|
||||||
static struct ep93xx_spi_info ep93xx_spi_master_data;
|
static struct ep93xx_spi_info ep93xx_spi_master_data;
|
||||||
|
|
||||||
static struct resource ep93xx_spi_resources[] = {
|
static struct resource ep93xx_spi_resources[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_SPI_PHYS_BASE, 0x18),
|
||||||
.start = EP93XX_SPI_PHYS_BASE,
|
DEFINE_RES_IRQ(IRQ_EP93XX_SSP),
|
||||||
.end = EP93XX_SPI_PHYS_BASE + 0x18 - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.start = IRQ_EP93XX_SSP,
|
|
||||||
.end = IRQ_EP93XX_SSP,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static u64 ep93xx_spi_dma_mask = DMA_BIT_MASK(32);
|
static u64 ep93xx_spi_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
@ -513,7 +482,7 @@ void __init ep93xx_register_spi(struct ep93xx_spi_info *info,
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* EP93xx LEDs
|
* EP93xx LEDs
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
static struct gpio_led ep93xx_led_pins[] = {
|
static const struct gpio_led ep93xx_led_pins[] __initconst = {
|
||||||
{
|
{
|
||||||
.name = "platform:grled",
|
.name = "platform:grled",
|
||||||
.gpio = EP93XX_GPIO_LINE_GRLED,
|
.gpio = EP93XX_GPIO_LINE_GRLED,
|
||||||
|
@ -523,29 +492,16 @@ static struct gpio_led ep93xx_led_pins[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gpio_led_platform_data ep93xx_led_data = {
|
static const struct gpio_led_platform_data ep93xx_led_data __initconst = {
|
||||||
.num_leds = ARRAY_SIZE(ep93xx_led_pins),
|
.num_leds = ARRAY_SIZE(ep93xx_led_pins),
|
||||||
.leds = ep93xx_led_pins,
|
.leds = ep93xx_led_pins,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_leds = {
|
|
||||||
.name = "leds-gpio",
|
|
||||||
.id = -1,
|
|
||||||
.dev = {
|
|
||||||
.platform_data = &ep93xx_led_data,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* EP93xx pwm peripheral handling
|
* EP93xx pwm peripheral handling
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
static struct resource ep93xx_pwm0_resource[] = {
|
static struct resource ep93xx_pwm0_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_PWM_PHYS_BASE, 0x10),
|
||||||
.start = EP93XX_PWM_PHYS_BASE,
|
|
||||||
.end = EP93XX_PWM_PHYS_BASE + 0x10 - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_pwm0_device = {
|
static struct platform_device ep93xx_pwm0_device = {
|
||||||
|
@ -556,11 +512,7 @@ static struct platform_device ep93xx_pwm0_device = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource ep93xx_pwm1_resource[] = {
|
static struct resource ep93xx_pwm1_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_PWM_PHYS_BASE + 0x20, 0x10),
|
||||||
.start = EP93XX_PWM_PHYS_BASE + 0x20,
|
|
||||||
.end = EP93XX_PWM_PHYS_BASE + 0x30 - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_pwm1_device = {
|
static struct platform_device ep93xx_pwm1_device = {
|
||||||
|
@ -628,11 +580,7 @@ EXPORT_SYMBOL(ep93xx_pwm_release_gpio);
|
||||||
static struct ep93xxfb_mach_info ep93xxfb_data;
|
static struct ep93xxfb_mach_info ep93xxfb_data;
|
||||||
|
|
||||||
static struct resource ep93xx_fb_resource[] = {
|
static struct resource ep93xx_fb_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_RASTER_PHYS_BASE, 0x800),
|
||||||
.start = EP93XX_RASTER_PHYS_BASE,
|
|
||||||
.end = EP93XX_RASTER_PHYS_BASE + 0x800 - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_fb_device = {
|
static struct platform_device ep93xx_fb_device = {
|
||||||
|
@ -680,15 +628,8 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
|
||||||
static struct ep93xx_keypad_platform_data ep93xx_keypad_data;
|
static struct ep93xx_keypad_platform_data ep93xx_keypad_data;
|
||||||
|
|
||||||
static struct resource ep93xx_keypad_resource[] = {
|
static struct resource ep93xx_keypad_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_KEY_MATRIX_PHYS_BASE, 0x0c),
|
||||||
.start = EP93XX_KEY_MATRIX_PHYS_BASE,
|
DEFINE_RES_IRQ(IRQ_EP93XX_KEY),
|
||||||
.end = EP93XX_KEY_MATRIX_PHYS_BASE + 0x0c - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
}, {
|
|
||||||
.start = IRQ_EP93XX_KEY,
|
|
||||||
.end = IRQ_EP93XX_KEY,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_keypad_device = {
|
static struct platform_device ep93xx_keypad_device = {
|
||||||
|
@ -761,11 +702,7 @@ EXPORT_SYMBOL(ep93xx_keypad_release_gpio);
|
||||||
* EP93xx I2S audio peripheral handling
|
* EP93xx I2S audio peripheral handling
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
static struct resource ep93xx_i2s_resource[] = {
|
static struct resource ep93xx_i2s_resource[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_I2S_PHYS_BASE, 0x100),
|
||||||
.start = EP93XX_I2S_PHYS_BASE,
|
|
||||||
.end = EP93XX_I2S_PHYS_BASE + 0x100 - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_i2s_device = {
|
static struct platform_device ep93xx_i2s_device = {
|
||||||
|
@ -824,16 +761,8 @@ EXPORT_SYMBOL(ep93xx_i2s_release);
|
||||||
* EP93xx AC97 audio peripheral handling
|
* EP93xx AC97 audio peripheral handling
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
static struct resource ep93xx_ac97_resources[] = {
|
static struct resource ep93xx_ac97_resources[] = {
|
||||||
{
|
DEFINE_RES_MEM(EP93XX_AAC_PHYS_BASE, 0xac),
|
||||||
.start = EP93XX_AAC_PHYS_BASE,
|
DEFINE_RES_IRQ(IRQ_EP93XX_AACINTR),
|
||||||
.end = EP93XX_AAC_PHYS_BASE + 0xac - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.start = IRQ_EP93XX_AACINTR,
|
|
||||||
.end = IRQ_EP93XX_AACINTR,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device ep93xx_ac97_device = {
|
static struct platform_device ep93xx_ac97_device = {
|
||||||
|
@ -889,8 +818,9 @@ void __init ep93xx_init_devices(void)
|
||||||
|
|
||||||
platform_device_register(&ep93xx_rtc_device);
|
platform_device_register(&ep93xx_rtc_device);
|
||||||
platform_device_register(&ep93xx_ohci_device);
|
platform_device_register(&ep93xx_ohci_device);
|
||||||
platform_device_register(&ep93xx_leds);
|
|
||||||
platform_device_register(&ep93xx_wdt_device);
|
platform_device_register(&ep93xx_wdt_device);
|
||||||
|
|
||||||
|
gpio_led_register_device(-1, &ep93xx_led_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ep93xx_restart(char mode, const char *cmd)
|
void ep93xx_restart(char mode, const char *cmd)
|
||||||
|
|
Loading…
Reference in New Issue