diff options
Diffstat (limited to 'arch/arm/mach-ep93xx')
-rw-r--r-- | arch/arm/mach-ep93xx/adssphere.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/clock.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/core.c | 123 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/edb93xx.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/gesbc9312.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/platform.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/micro9.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/simone.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/snappercl15.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/ts72xx.c | 2 |
11 files changed, 148 insertions, 25 deletions
diff --git a/arch/arm/mach-ep93xx/adssphere.c b/arch/arm/mach-ep93xx/adssphere.c index caf6d5154aec..3a1a855bfdca 100644 --- a/arch/arm/mach-ep93xx/adssphere.c +++ b/arch/arm/mach-ep93xx/adssphere.c | |||
@@ -41,7 +41,7 @@ static struct platform_device adssphere_flash = { | |||
41 | .resource = &adssphere_flash_resource, | 41 | .resource = &adssphere_flash_resource, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct ep93xx_eth_data adssphere_eth_data = { | 44 | static struct ep93xx_eth_data __initdata adssphere_eth_data = { |
45 | .phy_id = 1, | 45 | .phy_id = 1, |
46 | }; | 46 | }; |
47 | 47 | ||
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 5f80092b6ace..e29bdef9b2e2 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -96,6 +96,10 @@ static struct clk clk_keypad = { | |||
96 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, | 96 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, |
97 | .set_rate = set_keytchclk_rate, | 97 | .set_rate = set_keytchclk_rate, |
98 | }; | 98 | }; |
99 | static struct clk clk_spi = { | ||
100 | .parent = &clk_xtali, | ||
101 | .rate = EP93XX_EXT_CLK_RATE, | ||
102 | }; | ||
99 | static struct clk clk_pwm = { | 103 | static struct clk clk_pwm = { |
100 | .parent = &clk_xtali, | 104 | .parent = &clk_xtali, |
101 | .rate = EP93XX_EXT_CLK_RATE, | 105 | .rate = EP93XX_EXT_CLK_RATE, |
@@ -186,6 +190,7 @@ static struct clk_lookup clocks[] = { | |||
186 | INIT_CK("ep93xx-ohci", NULL, &clk_usb_host), | 190 | INIT_CK("ep93xx-ohci", NULL, &clk_usb_host), |
187 | INIT_CK("ep93xx-keypad", NULL, &clk_keypad), | 191 | INIT_CK("ep93xx-keypad", NULL, &clk_keypad), |
188 | INIT_CK("ep93xx-fb", NULL, &clk_video), | 192 | INIT_CK("ep93xx-fb", NULL, &clk_video), |
193 | INIT_CK("ep93xx-spi.0", NULL, &clk_spi), | ||
189 | INIT_CK(NULL, "pwm_clk", &clk_pwm), | 194 | INIT_CK(NULL, "pwm_clk", &clk_pwm), |
190 | INIT_CK(NULL, "m2p0", &clk_m2p0), | 195 | INIT_CK(NULL, "m2p0", &clk_m2p0), |
191 | INIT_CK(NULL, "m2p1", &clk_m2p1), | 196 | INIT_CK(NULL, "m2p1", &clk_m2p1), |
@@ -473,6 +478,14 @@ static int __init ep93xx_clock_init(void) | |||
473 | /* Initialize the pll2 derived clocks */ | 478 | /* Initialize the pll2 derived clocks */ |
474 | clk_usb_host.rate = clk_pll2.rate / (((value >> 28) & 0xf) + 1); | 479 | clk_usb_host.rate = clk_pll2.rate / (((value >> 28) & 0xf) + 1); |
475 | 480 | ||
481 | /* | ||
482 | * EP93xx SSP clock rate was doubled in version E2. For more information | ||
483 | * see: | ||
484 | * http://www.cirrus.com/en/pubs/appNote/AN273REV4.pdf | ||
485 | */ | ||
486 | if (ep93xx_chip_revision() < EP93XX_CHIP_REV_E2) | ||
487 | clk_spi.rate /= 2; | ||
488 | |||
476 | pr_info("PLL1 running at %ld MHz, PLL2 at %ld MHz\n", | 489 | pr_info("PLL1 running at %ld MHz, PLL2 at %ld MHz\n", |
477 | clk_pll1.rate / 1000000, clk_pll2.rate / 1000000); | 490 | clk_pll1.rate / 1000000, clk_pll2.rate / 1000000); |
478 | pr_info("FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", | 491 | pr_info("FCLK %ld MHz, HCLK %ld MHz, PCLK %ld MHz\n", |
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 90fb591cbffa..9092677f63eb 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -31,10 +31,12 @@ | |||
31 | #include <linux/amba/serial.h> | 31 | #include <linux/amba/serial.h> |
32 | #include <linux/i2c.h> | 32 | #include <linux/i2c.h> |
33 | #include <linux/i2c-gpio.h> | 33 | #include <linux/i2c-gpio.h> |
34 | #include <linux/spi/spi.h> | ||
34 | 35 | ||
35 | #include <mach/hardware.h> | 36 | #include <mach/hardware.h> |
36 | #include <mach/fb.h> | 37 | #include <mach/fb.h> |
37 | #include <mach/ep93xx_keypad.h> | 38 | #include <mach/ep93xx_keypad.h> |
39 | #include <mach/ep93xx_spi.h> | ||
38 | 40 | ||
39 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
40 | #include <asm/mach/time.h> | 42 | #include <asm/mach/time.h> |
@@ -222,6 +224,20 @@ void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits) | |||
222 | } | 224 | } |
223 | EXPORT_SYMBOL(ep93xx_devcfg_set_clear); | 225 | EXPORT_SYMBOL(ep93xx_devcfg_set_clear); |
224 | 226 | ||
227 | /** | ||
228 | * ep93xx_chip_revision() - returns the EP93xx chip revision | ||
229 | * | ||
230 | * See <mach/platform.h> for more information. | ||
231 | */ | ||
232 | unsigned int ep93xx_chip_revision(void) | ||
233 | { | ||
234 | unsigned int v; | ||
235 | |||
236 | v = __raw_readl(EP93XX_SYSCON_SYSCFG); | ||
237 | v &= EP93XX_SYSCON_SYSCFG_REV_MASK; | ||
238 | v >>= EP93XX_SYSCON_SYSCFG_REV_SHIFT; | ||
239 | return v; | ||
240 | } | ||
225 | 241 | ||
226 | /************************************************************************* | 242 | /************************************************************************* |
227 | * EP93xx peripheral handling | 243 | * EP93xx peripheral handling |
@@ -330,6 +346,10 @@ static struct platform_device ep93xx_ohci_device = { | |||
330 | .resource = ep93xx_ohci_resources, | 346 | .resource = ep93xx_ohci_resources, |
331 | }; | 347 | }; |
332 | 348 | ||
349 | |||
350 | /************************************************************************* | ||
351 | * EP93xx ethernet peripheral handling | ||
352 | *************************************************************************/ | ||
333 | static struct ep93xx_eth_data ep93xx_eth_data; | 353 | static struct ep93xx_eth_data ep93xx_eth_data; |
334 | 354 | ||
335 | static struct resource ep93xx_eth_resource[] = { | 355 | static struct resource ep93xx_eth_resource[] = { |
@@ -354,6 +374,12 @@ static struct platform_device ep93xx_eth_device = { | |||
354 | .resource = ep93xx_eth_resource, | 374 | .resource = ep93xx_eth_resource, |
355 | }; | 375 | }; |
356 | 376 | ||
377 | /** | ||
378 | * ep93xx_register_eth - Register the built-in ethernet platform device. | ||
379 | * @data: platform specific ethernet configuration (__initdata) | ||
380 | * @copy_addr: flag indicating that the MAC address should be copied | ||
381 | * from the IndAd registers (as programmed by the bootloader) | ||
382 | */ | ||
357 | void __init ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr) | 383 | void __init ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr) |
358 | { | 384 | { |
359 | if (copy_addr) | 385 | if (copy_addr) |
@@ -370,11 +396,19 @@ void __init ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr) | |||
370 | static struct i2c_gpio_platform_data ep93xx_i2c_data; | 396 | static struct i2c_gpio_platform_data ep93xx_i2c_data; |
371 | 397 | ||
372 | static struct platform_device ep93xx_i2c_device = { | 398 | static struct platform_device ep93xx_i2c_device = { |
373 | .name = "i2c-gpio", | 399 | .name = "i2c-gpio", |
374 | .id = 0, | 400 | .id = 0, |
375 | .dev.platform_data = &ep93xx_i2c_data, | 401 | .dev = { |
402 | .platform_data = &ep93xx_i2c_data, | ||
403 | }, | ||
376 | }; | 404 | }; |
377 | 405 | ||
406 | /** | ||
407 | * ep93xx_register_i2c - Register the i2c platform device. | ||
408 | * @data: platform specific i2c-gpio configuration (__initdata) | ||
409 | * @devices: platform specific i2c bus device information (__initdata) | ||
410 | * @num: the number of devices on the i2c bus | ||
411 | */ | ||
378 | void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, | 412 | void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
379 | struct i2c_board_info *devices, int num) | 413 | struct i2c_board_info *devices, int num) |
380 | { | 414 | { |
@@ -398,17 +432,67 @@ void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, | |||
398 | platform_device_register(&ep93xx_i2c_device); | 432 | platform_device_register(&ep93xx_i2c_device); |
399 | } | 433 | } |
400 | 434 | ||
435 | /************************************************************************* | ||
436 | * EP93xx SPI peripheral handling | ||
437 | *************************************************************************/ | ||
438 | static struct ep93xx_spi_info ep93xx_spi_master_data; | ||
439 | |||
440 | static struct resource ep93xx_spi_resources[] = { | ||
441 | { | ||
442 | .start = EP93XX_SPI_PHYS_BASE, | ||
443 | .end = EP93XX_SPI_PHYS_BASE + 0x18 - 1, | ||
444 | .flags = IORESOURCE_MEM, | ||
445 | }, | ||
446 | { | ||
447 | .start = IRQ_EP93XX_SSP, | ||
448 | .end = IRQ_EP93XX_SSP, | ||
449 | .flags = IORESOURCE_IRQ, | ||
450 | }, | ||
451 | }; | ||
452 | |||
453 | static struct platform_device ep93xx_spi_device = { | ||
454 | .name = "ep93xx-spi", | ||
455 | .id = 0, | ||
456 | .dev = { | ||
457 | .platform_data = &ep93xx_spi_master_data, | ||
458 | }, | ||
459 | .num_resources = ARRAY_SIZE(ep93xx_spi_resources), | ||
460 | .resource = ep93xx_spi_resources, | ||
461 | }; | ||
462 | |||
463 | /** | ||
464 | * ep93xx_register_spi() - registers spi platform device | ||
465 | * @info: ep93xx board specific spi master info (__initdata) | ||
466 | * @devices: SPI devices to register (__initdata) | ||
467 | * @num: number of SPI devices to register | ||
468 | * | ||
469 | * This function registers platform device for the EP93xx SPI controller and | ||
470 | * also makes sure that SPI pins are muxed so that I2S is not using those pins. | ||
471 | */ | ||
472 | void __init ep93xx_register_spi(struct ep93xx_spi_info *info, | ||
473 | struct spi_board_info *devices, int num) | ||
474 | { | ||
475 | /* | ||
476 | * When SPI is used, we need to make sure that I2S is muxed off from | ||
477 | * SPI pins. | ||
478 | */ | ||
479 | ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_I2SONSSP); | ||
480 | |||
481 | ep93xx_spi_master_data = *info; | ||
482 | spi_register_board_info(devices, num); | ||
483 | platform_device_register(&ep93xx_spi_device); | ||
484 | } | ||
401 | 485 | ||
402 | /************************************************************************* | 486 | /************************************************************************* |
403 | * EP93xx LEDs | 487 | * EP93xx LEDs |
404 | *************************************************************************/ | 488 | *************************************************************************/ |
405 | static struct gpio_led ep93xx_led_pins[] = { | 489 | static struct gpio_led ep93xx_led_pins[] = { |
406 | { | 490 | { |
407 | .name = "platform:grled", | 491 | .name = "platform:grled", |
408 | .gpio = EP93XX_GPIO_LINE_GRLED, | 492 | .gpio = EP93XX_GPIO_LINE_GRLED, |
409 | }, { | 493 | }, { |
410 | .name = "platform:rdled", | 494 | .name = "platform:rdled", |
411 | .gpio = EP93XX_GPIO_LINE_RDLED, | 495 | .gpio = EP93XX_GPIO_LINE_RDLED, |
412 | }, | 496 | }, |
413 | }; | 497 | }; |
414 | 498 | ||
@@ -528,7 +612,7 @@ static struct platform_device ep93xx_fb_device = { | |||
528 | .name = "ep93xx-fb", | 612 | .name = "ep93xx-fb", |
529 | .id = -1, | 613 | .id = -1, |
530 | .dev = { | 614 | .dev = { |
531 | .platform_data = &ep93xxfb_data, | 615 | .platform_data = &ep93xxfb_data, |
532 | .coherent_dma_mask = DMA_BIT_MASK(32), | 616 | .coherent_dma_mask = DMA_BIT_MASK(32), |
533 | .dma_mask = &ep93xx_fb_device.dev.coherent_dma_mask, | 617 | .dma_mask = &ep93xx_fb_device.dev.coherent_dma_mask, |
534 | }, | 618 | }, |
@@ -536,6 +620,10 @@ static struct platform_device ep93xx_fb_device = { | |||
536 | .resource = ep93xx_fb_resource, | 620 | .resource = ep93xx_fb_resource, |
537 | }; | 621 | }; |
538 | 622 | ||
623 | /** | ||
624 | * ep93xx_register_fb - Register the framebuffer platform device. | ||
625 | * @data: platform specific framebuffer configuration (__initdata) | ||
626 | */ | ||
539 | void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data) | 627 | void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data) |
540 | { | 628 | { |
541 | ep93xxfb_data = *data; | 629 | ep93xxfb_data = *data; |
@@ -546,6 +634,8 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data) | |||
546 | /************************************************************************* | 634 | /************************************************************************* |
547 | * EP93xx matrix keypad peripheral handling | 635 | * EP93xx matrix keypad peripheral handling |
548 | *************************************************************************/ | 636 | *************************************************************************/ |
637 | static struct ep93xx_keypad_platform_data ep93xx_keypad_data; | ||
638 | |||
549 | static struct resource ep93xx_keypad_resource[] = { | 639 | static struct resource ep93xx_keypad_resource[] = { |
550 | { | 640 | { |
551 | .start = EP93XX_KEY_MATRIX_PHYS_BASE, | 641 | .start = EP93XX_KEY_MATRIX_PHYS_BASE, |
@@ -559,15 +649,22 @@ static struct resource ep93xx_keypad_resource[] = { | |||
559 | }; | 649 | }; |
560 | 650 | ||
561 | static struct platform_device ep93xx_keypad_device = { | 651 | static struct platform_device ep93xx_keypad_device = { |
562 | .name = "ep93xx-keypad", | 652 | .name = "ep93xx-keypad", |
563 | .id = -1, | 653 | .id = -1, |
564 | .num_resources = ARRAY_SIZE(ep93xx_keypad_resource), | 654 | .dev = { |
565 | .resource = ep93xx_keypad_resource, | 655 | .platform_data = &ep93xx_keypad_data, |
656 | }, | ||
657 | .num_resources = ARRAY_SIZE(ep93xx_keypad_resource), | ||
658 | .resource = ep93xx_keypad_resource, | ||
566 | }; | 659 | }; |
567 | 660 | ||
661 | /** | ||
662 | * ep93xx_register_keypad - Register the keypad platform device. | ||
663 | * @data: platform specific keypad configuration (__initdata) | ||
664 | */ | ||
568 | void __init ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data) | 665 | void __init ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data) |
569 | { | 666 | { |
570 | ep93xx_keypad_device.dev.platform_data = data; | 667 | ep93xx_keypad_data = *data; |
571 | platform_device_register(&ep93xx_keypad_device); | 668 | platform_device_register(&ep93xx_keypad_device); |
572 | } | 669 | } |
573 | 670 | ||
diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c index d22d67ac8b99..3884182cd362 100644 --- a/arch/arm/mach-ep93xx/edb93xx.c +++ b/arch/arm/mach-ep93xx/edb93xx.c | |||
@@ -74,7 +74,7 @@ static void __init edb93xx_register_flash(void) | |||
74 | } | 74 | } |
75 | } | 75 | } |
76 | 76 | ||
77 | static struct ep93xx_eth_data edb93xx_eth_data = { | 77 | static struct ep93xx_eth_data __initdata edb93xx_eth_data = { |
78 | .phy_id = 1, | 78 | .phy_id = 1, |
79 | }; | 79 | }; |
80 | 80 | ||
@@ -82,7 +82,7 @@ static struct ep93xx_eth_data edb93xx_eth_data = { | |||
82 | /************************************************************************* | 82 | /************************************************************************* |
83 | * EDB93xx i2c peripheral handling | 83 | * EDB93xx i2c peripheral handling |
84 | *************************************************************************/ | 84 | *************************************************************************/ |
85 | static struct i2c_gpio_platform_data edb93xx_i2c_gpio_data = { | 85 | static struct i2c_gpio_platform_data __initdata edb93xx_i2c_gpio_data = { |
86 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | 86 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, |
87 | .sda_is_open_drain = 0, | 87 | .sda_is_open_drain = 0, |
88 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | 88 | .scl_pin = EP93XX_GPIO_LINE_EECLK, |
diff --git a/arch/arm/mach-ep93xx/gesbc9312.c b/arch/arm/mach-ep93xx/gesbc9312.c index 3da7ca816d19..a809618e9f05 100644 --- a/arch/arm/mach-ep93xx/gesbc9312.c +++ b/arch/arm/mach-ep93xx/gesbc9312.c | |||
@@ -41,7 +41,7 @@ static struct platform_device gesbc9312_flash = { | |||
41 | .resource = &gesbc9312_flash_resource, | 41 | .resource = &gesbc9312_flash_resource, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct ep93xx_eth_data gesbc9312_eth_data = { | 44 | static struct ep93xx_eth_data __initdata gesbc9312_eth_data = { |
45 | .phy_id = 1, | 45 | .phy_id = 1, |
46 | }; | 46 | }; |
47 | 47 | ||
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 93e2ecc79ceb..b1e096f0c2d2 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -106,6 +106,7 @@ | |||
106 | 106 | ||
107 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) | 107 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) |
108 | 108 | ||
109 | #define EP93XX_SPI_PHYS_BASE EP93XX_APB_PHYS(0x000a0000) | ||
109 | #define EP93XX_SPI_BASE EP93XX_APB_IOMEM(0x000a0000) | 110 | #define EP93XX_SPI_BASE EP93XX_APB_IOMEM(0x000a0000) |
110 | 111 | ||
111 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) | 112 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) |
diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h index c6dc14dbca18..9a4413dd44bb 100644 --- a/arch/arm/mach-ep93xx/include/mach/platform.h +++ b/arch/arm/mach-ep93xx/include/mach/platform.h | |||
@@ -6,9 +6,11 @@ | |||
6 | 6 | ||
7 | struct i2c_gpio_platform_data; | 7 | struct i2c_gpio_platform_data; |
8 | struct i2c_board_info; | 8 | struct i2c_board_info; |
9 | struct spi_board_info; | ||
9 | struct platform_device; | 10 | struct platform_device; |
10 | struct ep93xxfb_mach_info; | 11 | struct ep93xxfb_mach_info; |
11 | struct ep93xx_keypad_platform_data; | 12 | struct ep93xx_keypad_platform_data; |
13 | struct ep93xx_spi_info; | ||
12 | 14 | ||
13 | struct ep93xx_eth_data | 15 | struct ep93xx_eth_data |
14 | { | 16 | { |
@@ -33,9 +35,19 @@ static inline void ep93xx_devcfg_clear_bits(unsigned int bits) | |||
33 | ep93xx_devcfg_set_clear(0x00, bits); | 35 | ep93xx_devcfg_set_clear(0x00, bits); |
34 | } | 36 | } |
35 | 37 | ||
38 | #define EP93XX_CHIP_REV_D0 3 | ||
39 | #define EP93XX_CHIP_REV_D1 4 | ||
40 | #define EP93XX_CHIP_REV_E0 5 | ||
41 | #define EP93XX_CHIP_REV_E1 6 | ||
42 | #define EP93XX_CHIP_REV_E2 7 | ||
43 | |||
44 | unsigned int ep93xx_chip_revision(void); | ||
45 | |||
36 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); | 46 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); |
37 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, | 47 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
38 | struct i2c_board_info *devices, int num); | 48 | struct i2c_board_info *devices, int num); |
49 | void ep93xx_register_spi(struct ep93xx_spi_info *info, | ||
50 | struct spi_board_info *devices, int num); | ||
39 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); | 51 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); |
40 | void ep93xx_register_pwm(int pwm0, int pwm1); | 52 | void ep93xx_register_pwm(int pwm0, int pwm1); |
41 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); | 53 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); |
diff --git a/arch/arm/mach-ep93xx/micro9.c b/arch/arm/mach-ep93xx/micro9.c index c33360e82868..1cc911b4efa6 100644 --- a/arch/arm/mach-ep93xx/micro9.c +++ b/arch/arm/mach-ep93xx/micro9.c | |||
@@ -80,7 +80,7 @@ static void __init micro9_register_flash(void) | |||
80 | /************************************************************************* | 80 | /************************************************************************* |
81 | * Micro9 Ethernet | 81 | * Micro9 Ethernet |
82 | *************************************************************************/ | 82 | *************************************************************************/ |
83 | static struct ep93xx_eth_data micro9_eth_data = { | 83 | static struct ep93xx_eth_data __initdata micro9_eth_data = { |
84 | .phy_id = 0x1f, | 84 | .phy_id = 0x1f, |
85 | }; | 85 | }; |
86 | 86 | ||
diff --git a/arch/arm/mach-ep93xx/simone.c b/arch/arm/mach-ep93xx/simone.c index cd93990f1b99..388aec95f60e 100644 --- a/arch/arm/mach-ep93xx/simone.c +++ b/arch/arm/mach-ep93xx/simone.c | |||
@@ -49,17 +49,17 @@ static struct platform_device simone_flash = { | |||
49 | }, | 49 | }, |
50 | }; | 50 | }; |
51 | 51 | ||
52 | static struct ep93xx_eth_data simone_eth_data = { | 52 | static struct ep93xx_eth_data __initdata simone_eth_data = { |
53 | .phy_id = 1, | 53 | .phy_id = 1, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static struct ep93xxfb_mach_info simone_fb_info = { | 56 | static struct ep93xxfb_mach_info __initdata simone_fb_info = { |
57 | .num_modes = EP93XXFB_USE_MODEDB, | 57 | .num_modes = EP93XXFB_USE_MODEDB, |
58 | .bpp = 16, | 58 | .bpp = 16, |
59 | .flags = EP93XXFB_USE_SDCSN0 | EP93XXFB_PCLK_FALLING, | 59 | .flags = EP93XXFB_USE_SDCSN0 | EP93XXFB_PCLK_FALLING, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct i2c_gpio_platform_data simone_i2c_gpio_data = { | 62 | static struct i2c_gpio_platform_data __initdata simone_i2c_gpio_data = { |
63 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | 63 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, |
64 | .sda_is_open_drain = 0, | 64 | .sda_is_open_drain = 0, |
65 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | 65 | .scl_pin = EP93XX_GPIO_LINE_EECLK, |
diff --git a/arch/arm/mach-ep93xx/snappercl15.c b/arch/arm/mach-ep93xx/snappercl15.c index 51134b0382ca..38deaee40397 100644 --- a/arch/arm/mach-ep93xx/snappercl15.c +++ b/arch/arm/mach-ep93xx/snappercl15.c | |||
@@ -125,11 +125,11 @@ static struct platform_device snappercl15_nand_device = { | |||
125 | .num_resources = ARRAY_SIZE(snappercl15_nand_resource), | 125 | .num_resources = ARRAY_SIZE(snappercl15_nand_resource), |
126 | }; | 126 | }; |
127 | 127 | ||
128 | static struct ep93xx_eth_data snappercl15_eth_data = { | 128 | static struct ep93xx_eth_data __initdata snappercl15_eth_data = { |
129 | .phy_id = 1, | 129 | .phy_id = 1, |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static struct i2c_gpio_platform_data snappercl15_i2c_gpio_data = { | 132 | static struct i2c_gpio_platform_data __initdata snappercl15_i2c_gpio_data = { |
133 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | 133 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, |
134 | .sda_is_open_drain = 0, | 134 | .sda_is_open_drain = 0, |
135 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | 135 | .scl_pin = EP93XX_GPIO_LINE_EECLK, |
@@ -145,7 +145,7 @@ static struct i2c_board_info __initdata snappercl15_i2c_data[] = { | |||
145 | }, | 145 | }, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | static struct ep93xxfb_mach_info snappercl15_fb_info = { | 148 | static struct ep93xxfb_mach_info __initdata snappercl15_fb_info = { |
149 | .num_modes = EP93XXFB_USE_MODEDB, | 149 | .num_modes = EP93XXFB_USE_MODEDB, |
150 | .bpp = 16, | 150 | .bpp = 16, |
151 | }; | 151 | }; |
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index fac1ec7a60fb..9553031900b0 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c | |||
@@ -186,7 +186,7 @@ static struct platform_device ts72xx_wdt_device = { | |||
186 | .resource = ts72xx_wdt_resources, | 186 | .resource = ts72xx_wdt_resources, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct ep93xx_eth_data ts72xx_eth_data = { | 189 | static struct ep93xx_eth_data __initdata ts72xx_eth_data = { |
190 | .phy_id = 1, | 190 | .phy_id = 1, |
191 | }; | 191 | }; |
192 | 192 | ||