mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
ar71xx: fix USB LED on the DB120 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29126 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8f09b983e5
commit
2ba51b8c17
@ -116,6 +116,8 @@ static void __init db120_setup(void)
|
|||||||
{
|
{
|
||||||
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
|
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
|
||||||
|
|
||||||
|
ar71xx_gpio_output_select(DB120_GPIO_LED_USB, AR934X_GPIO_OUT_GPIO);
|
||||||
|
|
||||||
ar71xx_add_device_usb();
|
ar71xx_add_device_usb();
|
||||||
|
|
||||||
ar71xx_add_device_m25p80(&db120_flash_data);
|
ar71xx_add_device_m25p80(&db120_flash_data);
|
||||||
|
@ -489,6 +489,8 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg)
|
|||||||
#define AR934X_GPIO_COUNT 23
|
#define AR934X_GPIO_COUNT 23
|
||||||
#define AR934X_GPIO_FUNC_DDR_DQOE_EN BIT(17)
|
#define AR934X_GPIO_FUNC_DDR_DQOE_EN BIT(17)
|
||||||
|
|
||||||
|
#define AR934X_GPIO_OUT_GPIO 0x00
|
||||||
|
|
||||||
extern void __iomem *ar71xx_gpio_base;
|
extern void __iomem *ar71xx_gpio_base;
|
||||||
|
|
||||||
static inline void ar71xx_gpio_wr(unsigned reg, u32 value)
|
static inline void ar71xx_gpio_wr(unsigned reg, u32 value)
|
||||||
|
Loading…
Reference in New Issue
Block a user