diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 76 |
1 files changed, 37 insertions, 39 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index 50bda79194e5..a3a572352769 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -36,7 +36,7 @@ const char bfin_board_name[] = "ADI BF526-EZBRD"; | |||
36 | * Driver needs to know address, irq and flag pin. | 36 | * Driver needs to know address, irq and flag pin. |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) | 39 | #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) |
40 | static struct resource musb_resources[] = { | 40 | static struct resource musb_resources[] = { |
41 | [0] = { | 41 | [0] = { |
42 | .start = 0xffc03800, | 42 | .start = 0xffc03800, |
@@ -98,7 +98,7 @@ static struct platform_device musb_device = { | |||
98 | }; | 98 | }; |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 101 | #if IS_ENABLED(CONFIG_MTD_PHYSMAP) |
102 | static struct mtd_partition ezbrd_partitions[] = { | 102 | static struct mtd_partition ezbrd_partitions[] = { |
103 | { | 103 | { |
104 | .name = "bootloader(nor)", | 104 | .name = "bootloader(nor)", |
@@ -138,7 +138,7 @@ static struct platform_device ezbrd_flash_device = { | |||
138 | }; | 138 | }; |
139 | #endif | 139 | #endif |
140 | 140 | ||
141 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 141 | #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) |
142 | static struct mtd_partition partition_info[] = { | 142 | static struct mtd_partition partition_info[] = { |
143 | { | 143 | { |
144 | .name = "bootloader(nand)", | 144 | .name = "bootloader(nand)", |
@@ -188,7 +188,7 @@ static struct platform_device bf5xx_nand_device = { | |||
188 | }; | 188 | }; |
189 | #endif | 189 | #endif |
190 | 190 | ||
191 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 191 | #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) |
192 | static struct platform_device rtc_device = { | 192 | static struct platform_device rtc_device = { |
193 | .name = "rtc-bfin", | 193 | .name = "rtc-bfin", |
194 | .id = -1, | 194 | .id = -1, |
@@ -196,7 +196,7 @@ static struct platform_device rtc_device = { | |||
196 | #endif | 196 | #endif |
197 | 197 | ||
198 | 198 | ||
199 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 199 | #if IS_ENABLED(CONFIG_BFIN_MAC) |
200 | #include <linux/bfin_mac.h> | 200 | #include <linux/bfin_mac.h> |
201 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | 201 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; |
202 | 202 | ||
@@ -229,8 +229,7 @@ static struct platform_device bfin_mac_device = { | |||
229 | }; | 229 | }; |
230 | #endif | 230 | #endif |
231 | 231 | ||
232 | #if defined(CONFIG_MTD_M25P80) \ | 232 | #if IS_ENABLED(CONFIG_MTD_M25P80) |
233 | || defined(CONFIG_MTD_M25P80_MODULE) | ||
234 | static struct mtd_partition bfin_spi_flash_partitions[] = { | 233 | static struct mtd_partition bfin_spi_flash_partitions[] = { |
235 | { | 234 | { |
236 | .name = "bootloader(spi)", | 235 | .name = "bootloader(spi)", |
@@ -257,13 +256,13 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { | |||
257 | }; | 256 | }; |
258 | #endif | 257 | #endif |
259 | 258 | ||
260 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 259 | #if IS_ENABLED(CONFIG_MMC_SPI) |
261 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 260 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
262 | .enable_dma = 0, | 261 | .enable_dma = 0, |
263 | }; | 262 | }; |
264 | #endif | 263 | #endif |
265 | 264 | ||
266 | #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) | 265 | #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) |
267 | static const struct ad7877_platform_data bfin_ad7877_ts_info = { | 266 | static const struct ad7877_platform_data bfin_ad7877_ts_info = { |
268 | .model = 7877, | 267 | .model = 7877, |
269 | .vref_delay_usecs = 50, /* internal, no capacitor */ | 268 | .vref_delay_usecs = 50, /* internal, no capacitor */ |
@@ -279,7 +278,7 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = { | |||
279 | }; | 278 | }; |
280 | #endif | 279 | #endif |
281 | 280 | ||
282 | #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) | 281 | #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) |
283 | #include <linux/spi/ad7879.h> | 282 | #include <linux/spi/ad7879.h> |
284 | static const struct ad7879_platform_data bfin_ad7879_ts_info = { | 283 | static const struct ad7879_platform_data bfin_ad7879_ts_info = { |
285 | .model = 7879, /* Model = AD7879 */ | 284 | .model = 7879, /* Model = AD7879 */ |
@@ -297,8 +296,7 @@ static const struct ad7879_platform_data bfin_ad7879_ts_info = { | |||
297 | #endif | 296 | #endif |
298 | 297 | ||
299 | static struct spi_board_info bfin_spi_board_info[] __initdata = { | 298 | static struct spi_board_info bfin_spi_board_info[] __initdata = { |
300 | #if defined(CONFIG_MTD_M25P80) \ | 299 | #if IS_ENABLED(CONFIG_MTD_M25P80) |
301 | || defined(CONFIG_MTD_M25P80_MODULE) | ||
302 | { | 300 | { |
303 | /* the modalias must be the same as spi device driver name */ | 301 | /* the modalias must be the same as spi device driver name */ |
304 | .modalias = "m25p80", /* Name of spi_driver for this device */ | 302 | .modalias = "m25p80", /* Name of spi_driver for this device */ |
@@ -311,7 +309,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
311 | }, | 309 | }, |
312 | #endif | 310 | #endif |
313 | 311 | ||
314 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 312 | #if IS_ENABLED(CONFIG_MMC_SPI) |
315 | { | 313 | { |
316 | .modalias = "mmc_spi", | 314 | .modalias = "mmc_spi", |
317 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 315 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ |
@@ -321,7 +319,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
321 | .mode = SPI_MODE_3, | 319 | .mode = SPI_MODE_3, |
322 | }, | 320 | }, |
323 | #endif | 321 | #endif |
324 | #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) | 322 | #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) |
325 | { | 323 | { |
326 | .modalias = "ad7877", | 324 | .modalias = "ad7877", |
327 | .platform_data = &bfin_ad7877_ts_info, | 325 | .platform_data = &bfin_ad7877_ts_info, |
@@ -331,7 +329,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
331 | .chip_select = 2, | 329 | .chip_select = 2, |
332 | }, | 330 | }, |
333 | #endif | 331 | #endif |
334 | #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) | 332 | #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) |
335 | { | 333 | { |
336 | .modalias = "ad7879", | 334 | .modalias = "ad7879", |
337 | .platform_data = &bfin_ad7879_ts_info, | 335 | .platform_data = &bfin_ad7879_ts_info, |
@@ -342,7 +340,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
342 | .mode = SPI_CPHA | SPI_CPOL, | 340 | .mode = SPI_CPHA | SPI_CPOL, |
343 | }, | 341 | }, |
344 | #endif | 342 | #endif |
345 | #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ | 343 | #if IS_ENABLED(CONFIG_SND_SOC_WM8731) \ |
346 | && defined(CONFIG_SND_SOC_WM8731_SPI) | 344 | && defined(CONFIG_SND_SOC_WM8731_SPI) |
347 | { | 345 | { |
348 | .modalias = "wm8731", | 346 | .modalias = "wm8731", |
@@ -352,7 +350,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
352 | .mode = SPI_MODE_0, | 350 | .mode = SPI_MODE_0, |
353 | }, | 351 | }, |
354 | #endif | 352 | #endif |
355 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | 353 | #if IS_ENABLED(CONFIG_SPI_SPIDEV) |
356 | { | 354 | { |
357 | .modalias = "spidev", | 355 | .modalias = "spidev", |
358 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 356 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
@@ -360,7 +358,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
360 | .chip_select = 1, | 358 | .chip_select = 1, |
361 | }, | 359 | }, |
362 | #endif | 360 | #endif |
363 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | 361 | #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) |
364 | { | 362 | { |
365 | .modalias = "bfin-lq035q1-spi", | 363 | .modalias = "bfin-lq035q1-spi", |
366 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | 364 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ |
@@ -371,7 +369,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
371 | #endif | 369 | #endif |
372 | }; | 370 | }; |
373 | 371 | ||
374 | #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) | 372 | #if IS_ENABLED(CONFIG_SPI_BFIN5XX) |
375 | /* SPI controller data */ | 373 | /* SPI controller data */ |
376 | static struct bfin5xx_spi_master bfin_spi0_info = { | 374 | static struct bfin5xx_spi_master bfin_spi0_info = { |
377 | .num_chipselect = 8, | 375 | .num_chipselect = 8, |
@@ -409,7 +407,7 @@ static struct platform_device bfin_spi0_device = { | |||
409 | }; | 407 | }; |
410 | #endif /* spi master and devices */ | 408 | #endif /* spi master and devices */ |
411 | 409 | ||
412 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 410 | #if IS_ENABLED(CONFIG_SERIAL_BFIN) |
413 | #ifdef CONFIG_SERIAL_BFIN_UART0 | 411 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
414 | static struct resource bfin_uart0_resources[] = { | 412 | static struct resource bfin_uart0_resources[] = { |
415 | { | 413 | { |
@@ -520,7 +518,7 @@ static struct platform_device bfin_uart1_device = { | |||
520 | #endif | 518 | #endif |
521 | #endif | 519 | #endif |
522 | 520 | ||
523 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 521 | #if IS_ENABLED(CONFIG_BFIN_SIR) |
524 | #ifdef CONFIG_BFIN_SIR0 | 522 | #ifdef CONFIG_BFIN_SIR0 |
525 | static struct resource bfin_sir0_resources[] = { | 523 | static struct resource bfin_sir0_resources[] = { |
526 | { | 524 | { |
@@ -575,7 +573,7 @@ static struct platform_device bfin_sir1_device = { | |||
575 | #endif | 573 | #endif |
576 | #endif | 574 | #endif |
577 | 575 | ||
578 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 576 | #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) |
579 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; | 577 | static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; |
580 | 578 | ||
581 | static struct resource bfin_twi0_resource[] = { | 579 | static struct resource bfin_twi0_resource[] = { |
@@ -603,12 +601,12 @@ static struct platform_device i2c_bfin_twi_device = { | |||
603 | #endif | 601 | #endif |
604 | 602 | ||
605 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | 603 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { |
606 | #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) | 604 | #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) |
607 | { | 605 | { |
608 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | 606 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), |
609 | }, | 607 | }, |
610 | #endif | 608 | #endif |
611 | #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) | 609 | #if IS_ENABLED(CONFIG_INPUT_PCF8574) |
612 | { | 610 | { |
613 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), | 611 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), |
614 | .irq = IRQ_PF8, | 612 | .irq = IRQ_PF8, |
@@ -616,7 +614,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
616 | #endif | 614 | #endif |
617 | }; | 615 | }; |
618 | 616 | ||
619 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 617 | #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) |
620 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | 618 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART |
621 | static struct resource bfin_sport0_uart_resources[] = { | 619 | static struct resource bfin_sport0_uart_resources[] = { |
622 | { | 620 | { |
@@ -687,7 +685,7 @@ static struct platform_device bfin_sport1_uart_device = { | |||
687 | #endif | 685 | #endif |
688 | #endif | 686 | #endif |
689 | 687 | ||
690 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 688 | #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) |
691 | #include <linux/input.h> | 689 | #include <linux/input.h> |
692 | #include <linux/gpio_keys.h> | 690 | #include <linux/gpio_keys.h> |
693 | 691 | ||
@@ -731,7 +729,7 @@ static struct platform_device bfin_dpmc = { | |||
731 | }, | 729 | }, |
732 | }; | 730 | }; |
733 | 731 | ||
734 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | 732 | #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) |
735 | #include <asm/bfin-lq035q1.h> | 733 | #include <asm/bfin-lq035q1.h> |
736 | 734 | ||
737 | static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { | 735 | static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { |
@@ -764,28 +762,28 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
764 | 762 | ||
765 | &bfin_dpmc, | 763 | &bfin_dpmc, |
766 | 764 | ||
767 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 765 | #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) |
768 | &bf5xx_nand_device, | 766 | &bf5xx_nand_device, |
769 | #endif | 767 | #endif |
770 | 768 | ||
771 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 769 | #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) |
772 | &rtc_device, | 770 | &rtc_device, |
773 | #endif | 771 | #endif |
774 | 772 | ||
775 | #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) | 773 | #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) |
776 | &musb_device, | 774 | &musb_device, |
777 | #endif | 775 | #endif |
778 | 776 | ||
779 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 777 | #if IS_ENABLED(CONFIG_BFIN_MAC) |
780 | &bfin_mii_bus, | 778 | &bfin_mii_bus, |
781 | &bfin_mac_device, | 779 | &bfin_mac_device, |
782 | #endif | 780 | #endif |
783 | 781 | ||
784 | #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) | 782 | #if IS_ENABLED(CONFIG_SPI_BFIN5XX) |
785 | &bfin_spi0_device, | 783 | &bfin_spi0_device, |
786 | #endif | 784 | #endif |
787 | 785 | ||
788 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 786 | #if IS_ENABLED(CONFIG_SERIAL_BFIN) |
789 | #ifdef CONFIG_SERIAL_BFIN_UART0 | 787 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
790 | &bfin_uart0_device, | 788 | &bfin_uart0_device, |
791 | #endif | 789 | #endif |
@@ -794,11 +792,11 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
794 | #endif | 792 | #endif |
795 | #endif | 793 | #endif |
796 | 794 | ||
797 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | 795 | #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) |
798 | &bfin_lq035q1_device, | 796 | &bfin_lq035q1_device, |
799 | #endif | 797 | #endif |
800 | 798 | ||
801 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 799 | #if IS_ENABLED(CONFIG_BFIN_SIR) |
802 | #ifdef CONFIG_BFIN_SIR0 | 800 | #ifdef CONFIG_BFIN_SIR0 |
803 | &bfin_sir0_device, | 801 | &bfin_sir0_device, |
804 | #endif | 802 | #endif |
@@ -807,11 +805,11 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
807 | #endif | 805 | #endif |
808 | #endif | 806 | #endif |
809 | 807 | ||
810 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 808 | #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) |
811 | &i2c_bfin_twi_device, | 809 | &i2c_bfin_twi_device, |
812 | #endif | 810 | #endif |
813 | 811 | ||
814 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 812 | #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) |
815 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | 813 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART |
816 | &bfin_sport0_uart_device, | 814 | &bfin_sport0_uart_device, |
817 | #endif | 815 | #endif |
@@ -820,11 +818,11 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
820 | #endif | 818 | #endif |
821 | #endif | 819 | #endif |
822 | 820 | ||
823 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 821 | #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) |
824 | &bfin_device_gpiokeys, | 822 | &bfin_device_gpiokeys, |
825 | #endif | 823 | #endif |
826 | 824 | ||
827 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 825 | #if IS_ENABLED(CONFIG_MTD_PHYSMAP) |
828 | &ezbrd_flash_device, | 826 | &ezbrd_flash_device, |
829 | #endif | 827 | #endif |
830 | }; | 828 | }; |