diff options
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 8482d22321f3..ccfa08801840 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -582,6 +582,13 @@ static struct bfin5xx_spi_chip spidev_chip_info = { | |||
582 | }; | 582 | }; |
583 | #endif | 583 | #endif |
584 | 584 | ||
585 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | ||
586 | static struct bfin5xx_spi_chip lq035q1_spi_chip_info = { | ||
587 | .enable_dma = 0, | ||
588 | .bits_per_word = 8, | ||
589 | }; | ||
590 | #endif | ||
591 | |||
585 | #if defined(CONFIG_MTD_DATAFLASH) \ | 592 | #if defined(CONFIG_MTD_DATAFLASH) \ |
586 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | 593 | || defined(CONFIG_MTD_DATAFLASH_MODULE) |
587 | 594 | ||
@@ -730,6 +737,16 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
730 | .controller_data = &spidev_chip_info, | 737 | .controller_data = &spidev_chip_info, |
731 | }, | 738 | }, |
732 | #endif | 739 | #endif |
740 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | ||
741 | { | ||
742 | .modalias = "bfin-lq035q1-spi", | ||
743 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
744 | .bus_num = 0, | ||
745 | .chip_select = 1, | ||
746 | .controller_data = &lq035q1_spi_chip_info, | ||
747 | .mode = SPI_CPHA | SPI_CPOL, | ||
748 | }, | ||
749 | #endif | ||
733 | }; | 750 | }; |
734 | 751 | ||
735 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 752 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
@@ -777,6 +794,34 @@ static struct platform_device bfin_fb_adv7393_device = { | |||
777 | }; | 794 | }; |
778 | #endif | 795 | #endif |
779 | 796 | ||
797 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | ||
798 | #include <asm/bfin-lq035q1.h> | ||
799 | |||
800 | static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { | ||
801 | .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, | ||
802 | .use_bl = 1, | ||
803 | .gpio_bl = GPIO_PF7, | ||
804 | }; | ||
805 | |||
806 | static struct resource bfin_lq035q1_resources[] = { | ||
807 | { | ||
808 | .start = IRQ_PPI_ERROR, | ||
809 | .end = IRQ_PPI_ERROR, | ||
810 | .flags = IORESOURCE_IRQ, | ||
811 | }, | ||
812 | }; | ||
813 | |||
814 | static struct platform_device bfin_lq035q1_device = { | ||
815 | .name = "bfin-lq035q1", | ||
816 | .id = -1, | ||
817 | .num_resources = ARRAY_SIZE(bfin_lq035q1_resources), | ||
818 | .resource = bfin_lq035q1_resources, | ||
819 | .dev = { | ||
820 | .platform_data = &bfin_lq035q1_data, | ||
821 | }, | ||
822 | }; | ||
823 | #endif | ||
824 | |||
780 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 825 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
781 | static struct resource bfin_uart_resources[] = { | 826 | static struct resource bfin_uart_resources[] = { |
782 | #ifdef CONFIG_SERIAL_BFIN_UART0 | 827 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
@@ -997,6 +1042,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
997 | &bfin_fb_device, | 1042 | &bfin_fb_device, |
998 | #endif | 1043 | #endif |
999 | 1044 | ||
1045 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) | ||
1046 | &bfin_lq035q1_device, | ||
1047 | #endif | ||
1048 | |||
1000 | #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) | 1049 | #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) |
1001 | &bfin_fb_adv7393_device, | 1050 | &bfin_fb_adv7393_device, |
1002 | #endif | 1051 | #endif |