aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-12-20 08:28:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-12-20 08:28:39 +0000
commit7a37b799da64880d3d7a2997e116efca85e9c1ee (patch)
tree5a0146ab4fe9e05f7296049ece700663f1ba6421 /target/linux/ar71xx/files/arch
parent013387f3baab87baa39d5caae49f3c8c1a269da9 (diff)
downloadupstream-7a37b799da64880d3d7a2997e116efca85e9c1ee.tar.gz
upstream-7a37b799da64880d3d7a2997e116efca85e9c1ee.tar.bz2
upstream-7a37b799da64880d3d7a2997e116efca85e9c1ee.zip
[ar71xx] fix GPIO function select bit definitions (based on a patch by Jonas <jmajau at ubnt.com>)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13699 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c3
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/platform.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c
index f8e76c40c6..ec3ac0497d 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c
@@ -152,6 +152,9 @@ static inline void rb433_add_device_spi(void) {}
static void __init rb4xx_generic_setup(void)
{
+ ar71xx_gpio_function_enable(GPIO_FUNC_SPI_CS1_EN |
+ GPIO_FUNC_SPI_CS2_EN);
+
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),
rb4xx_leds_gpio);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
index ab9cabb1b7..705f24315a 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
@@ -481,8 +481,6 @@ void __init ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
struct spi_board_info const *info,
unsigned n)
{
- ar71xx_gpio_function_enable(GPIO_FUNC_SPI_EN);
-
spi_register_board_info(info, n);
ar71xx_spi_device.dev.platform_data = pdata;
platform_device_register(&ar71xx_spi_device);