diff options
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 67 |
1 files changed, 65 insertions, 2 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 554f82d6f9da..df4b6b5c08d4 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -1677,16 +1677,75 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
1677 | }; | 1677 | }; |
1678 | 1678 | ||
1679 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 1679 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
1680 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
1681 | static struct resource bfin_sport0_uart_resources[] = { | ||
1682 | { | ||
1683 | .start = SPORT0_TCR1, | ||
1684 | .end = SPORT0_MRCS3+4, | ||
1685 | .flags = IORESOURCE_MEM, | ||
1686 | }, | ||
1687 | { | ||
1688 | .start = IRQ_SPORT0_RX, | ||
1689 | .end = IRQ_SPORT0_RX+1, | ||
1690 | .flags = IORESOURCE_IRQ, | ||
1691 | }, | ||
1692 | { | ||
1693 | .start = IRQ_SPORT0_ERROR, | ||
1694 | .end = IRQ_SPORT0_ERROR, | ||
1695 | .flags = IORESOURCE_IRQ, | ||
1696 | }, | ||
1697 | }; | ||
1698 | |||
1699 | unsigned short bfin_sport0_peripherals[] = { | ||
1700 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | ||
1701 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | ||
1702 | }; | ||
1703 | |||
1680 | static struct platform_device bfin_sport0_uart_device = { | 1704 | static struct platform_device bfin_sport0_uart_device = { |
1681 | .name = "bfin-sport-uart", | 1705 | .name = "bfin-sport-uart", |
1682 | .id = 0, | 1706 | .id = 0, |
1707 | .num_resources = ARRAY_SIZE(bfin_sport0_uart_resources), | ||
1708 | .resource = bfin_sport0_uart_resources, | ||
1709 | .dev = { | ||
1710 | .platform_data = &bfin_sport0_peripherals, /* Passed to driver */ | ||
1711 | }, | ||
1712 | }; | ||
1713 | #endif | ||
1714 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
1715 | static struct resource bfin_sport1_uart_resources[] = { | ||
1716 | { | ||
1717 | .start = SPORT1_TCR1, | ||
1718 | .end = SPORT1_MRCS3+4, | ||
1719 | .flags = IORESOURCE_MEM, | ||
1720 | }, | ||
1721 | { | ||
1722 | .start = IRQ_SPORT1_RX, | ||
1723 | .end = IRQ_SPORT1_RX+1, | ||
1724 | .flags = IORESOURCE_IRQ, | ||
1725 | }, | ||
1726 | { | ||
1727 | .start = IRQ_SPORT1_ERROR, | ||
1728 | .end = IRQ_SPORT1_ERROR, | ||
1729 | .flags = IORESOURCE_IRQ, | ||
1730 | }, | ||
1731 | }; | ||
1732 | |||
1733 | unsigned short bfin_sport1_peripherals[] = { | ||
1734 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | ||
1735 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | ||
1683 | }; | 1736 | }; |
1684 | 1737 | ||
1685 | static struct platform_device bfin_sport1_uart_device = { | 1738 | static struct platform_device bfin_sport1_uart_device = { |
1686 | .name = "bfin-sport-uart", | 1739 | .name = "bfin-sport-uart", |
1687 | .id = 1, | 1740 | .id = 1, |
1741 | .num_resources = ARRAY_SIZE(bfin_sport1_uart_resources), | ||
1742 | .resource = bfin_sport1_uart_resources, | ||
1743 | .dev = { | ||
1744 | .platform_data = &bfin_sport1_peripherals, /* Passed to driver */ | ||
1745 | }, | ||
1688 | }; | 1746 | }; |
1689 | #endif | 1747 | #endif |
1748 | #endif | ||
1690 | 1749 | ||
1691 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 1750 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
1692 | #define CF_IDE_NAND_CARD_USE_HDD_INTERFACE | 1751 | #define CF_IDE_NAND_CARD_USE_HDD_INTERFACE |
@@ -1867,9 +1926,13 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
1867 | #endif | 1926 | #endif |
1868 | 1927 | ||
1869 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 1928 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
1929 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART | ||
1870 | &bfin_sport0_uart_device, | 1930 | &bfin_sport0_uart_device, |
1931 | #endif | ||
1932 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART | ||
1871 | &bfin_sport1_uart_device, | 1933 | &bfin_sport1_uart_device, |
1872 | #endif | 1934 | #endif |
1935 | #endif | ||
1873 | 1936 | ||
1874 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 1937 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
1875 | &bfin_pata_device, | 1938 | &bfin_pata_device, |
@@ -1895,10 +1958,10 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
1895 | static int __init stamp_init(void) | 1958 | static int __init stamp_init(void) |
1896 | { | 1959 | { |
1897 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | 1960 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
1898 | i2c_register_board_info(0, bfin_i2c_board_info, | ||
1899 | ARRAY_SIZE(bfin_i2c_board_info)); | ||
1900 | bfin_plat_nand_init(); | 1961 | bfin_plat_nand_init(); |
1901 | platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); | 1962 | platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); |
1963 | i2c_register_board_info(0, bfin_i2c_board_info, | ||
1964 | ARRAY_SIZE(bfin_i2c_board_info)); | ||
1902 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 1965 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
1903 | 1966 | ||
1904 | return 0; | 1967 | return 0; |