diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/cm_bf527.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 61 |
1 files changed, 10 insertions, 51 deletions
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 08a3f01c9886..f1996b13a3da 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
@@ -1,31 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * File: arch/blackfin/mach-bf527/boards/cm-bf527.c | 2 | * Copyright 2004-2009 Analog Devices Inc. |
3 | * Based on: arch/blackfin/mach-bf537/boards/stamp.c | 3 | * 2008-2009 Bluetechnix |
4 | * Author: Aidan Williams <aidan@nicta.com.au> | 4 | * 2005 National ICT Australia (NICTA) |
5 | * Aidan Williams <aidan@nicta.com.au> | ||
5 | * | 6 | * |
6 | * Created: | 7 | * Licensed under the GPL-2 or later. |
7 | * Description: | ||
8 | * | ||
9 | * Modified: | ||
10 | * Copyright 2005 National ICT Australia (NICTA) | ||
11 | * Copyright 2004-2008 Analog Devices Inc. | ||
12 | * | ||
13 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify | ||
16 | * it under the terms of the GNU General Public License as published by | ||
17 | * the Free Software Foundation; either version 2 of the License, or | ||
18 | * (at your option) any later version. | ||
19 | * | ||
20 | * This program is distributed in the hope that it will be useful, | ||
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | * GNU General Public License for more details. | ||
24 | * | ||
25 | * You should have received a copy of the GNU General Public License | ||
26 | * along with this program; if not, see the file COPYING, or write | ||
27 | * to the Free Software Foundation, Inc., | ||
28 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
29 | */ | 8 | */ |
30 | 9 | ||
31 | #include <linux/device.h> | 10 | #include <linux/device.h> |
@@ -616,12 +595,6 @@ static struct platform_device bfin_spi0_device = { | |||
616 | }; | 595 | }; |
617 | #endif /* spi master and devices */ | 596 | #endif /* spi master and devices */ |
618 | 597 | ||
619 | #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) | ||
620 | static struct platform_device bfin_fb_adv7393_device = { | ||
621 | .name = "bfin-adv7393", | ||
622 | }; | ||
623 | #endif | ||
624 | |||
625 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 598 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
626 | static struct mtd_partition cm_partitions[] = { | 599 | static struct mtd_partition cm_partitions[] = { |
627 | { | 600 | { |
@@ -786,6 +759,11 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
786 | .irq = IRQ_PF8, | 759 | .irq = IRQ_PF8, |
787 | }, | 760 | }, |
788 | #endif | 761 | #endif |
762 | #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) | ||
763 | { | ||
764 | I2C_BOARD_INFO("bfin-adv7393", 0x2B), | ||
765 | }, | ||
766 | #endif | ||
789 | }; | 767 | }; |
790 | 768 | ||
791 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 769 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
@@ -821,19 +799,6 @@ static struct platform_device bfin_device_gpiokeys = { | |||
821 | }; | 799 | }; |
822 | #endif | 800 | #endif |
823 | 801 | ||
824 | static struct resource bfin_gpios_resources = { | ||
825 | .start = 0, | ||
826 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
827 | .flags = IORESOURCE_IRQ, | ||
828 | }; | ||
829 | |||
830 | static struct platform_device bfin_gpios_device = { | ||
831 | .name = "simple-gpio", | ||
832 | .id = -1, | ||
833 | .num_resources = 1, | ||
834 | .resource = &bfin_gpios_resources, | ||
835 | }; | ||
836 | |||
837 | static const unsigned int cclk_vlev_datasheet[] = | 802 | static const unsigned int cclk_vlev_datasheet[] = |
838 | { | 803 | { |
839 | VRPAIR(VLEV_100, 400000000), | 804 | VRPAIR(VLEV_100, 400000000), |
@@ -909,10 +874,6 @@ static struct platform_device *cmbf527_devices[] __initdata = { | |||
909 | &bfin_spi0_device, | 874 | &bfin_spi0_device, |
910 | #endif | 875 | #endif |
911 | 876 | ||
912 | #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) | ||
913 | &bfin_fb_adv7393_device, | ||
914 | #endif | ||
915 | |||
916 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 877 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
917 | &bfin_uart_device, | 878 | &bfin_uart_device, |
918 | #endif | 879 | #endif |
@@ -942,8 +903,6 @@ static struct platform_device *cmbf527_devices[] __initdata = { | |||
942 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 903 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
943 | &cm_flash_device, | 904 | &cm_flash_device, |
944 | #endif | 905 | #endif |
945 | |||
946 | &bfin_gpios_device, | ||
947 | }; | 906 | }; |
948 | 907 | ||
949 | static int __init cm_init(void) | 908 | static int __init cm_init(void) |