aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-14 17:43:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-14 17:43:15 +0000
commitf27548448b907a08f6a83aab1664b7ce5f52fe6e (patch)
treec3904810d97633e5e0a3977563b7b7e02cfa76fa
parent6ebbb1329da150f18d048e856e8930738d5f3382 (diff)
downloadupstream-f27548448b907a08f6a83aab1664b7ce5f52fe6e.tar.gz
upstream-f27548448b907a08f6a83aab1664b7ce5f52fe6e.tar.bz2
upstream-f27548448b907a08f6a83aab1664b7ce5f52fe6e.zip
ar71xx: fix USB LED on the DB120 board
SVN-Revision: 29126
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
index 3e7b60015e..b997f3cb5a 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
@@ -116,6 +116,8 @@ static void __init db120_setup(void)
{
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
+ ar71xx_gpio_output_select(DB120_GPIO_LED_USB, AR934X_GPIO_OUT_GPIO);
+
ar71xx_add_device_usb();
ar71xx_add_device_m25p80(&db120_flash_data);
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
index 1f7f9eaf6c..d9c5e87f3f 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
@@ -489,6 +489,8 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg)
#define AR934X_GPIO_COUNT 23
#define AR934X_GPIO_FUNC_DDR_DQOE_EN BIT(17)
+#define AR934X_GPIO_OUT_GPIO 0x00
+
extern void __iomem *ar71xx_gpio_base;
static inline void ar71xx_gpio_wr(unsigned reg, u32 value)