mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 12:59:43 +02:00
[ar71xx] initialize GPIO for the AR7240 SoC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16647 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d50a571483
commit
b76d0eff6f
@ -139,6 +139,10 @@ void __init ar71xx_gpio_init(void)
|
|||||||
ar71xx_gpio_chip.ngpio = AR71XX_GPIO_COUNT;
|
ar71xx_gpio_chip.ngpio = AR71XX_GPIO_COUNT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case AR71XX_SOC_AR7240:
|
||||||
|
ar71xx_gpio_chip.ngpio = AR724X_GPIO_COUNT;
|
||||||
|
break;
|
||||||
|
|
||||||
case AR71XX_SOC_AR9130:
|
case AR71XX_SOC_AR9130:
|
||||||
case AR71XX_SOC_AR9132:
|
case AR71XX_SOC_AR9132:
|
||||||
ar71xx_gpio_chip.ngpio = AR91XX_GPIO_COUNT;
|
ar71xx_gpio_chip.ngpio = AR91XX_GPIO_COUNT;
|
||||||
|
@ -238,6 +238,8 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg)
|
|||||||
|
|
||||||
#define AR71XX_GPIO_COUNT 16
|
#define AR71XX_GPIO_COUNT 16
|
||||||
|
|
||||||
|
#define AR724X_GPIO_COUNT 16
|
||||||
|
|
||||||
#define AR91XX_GPIO_FUNC_WMAC_LED_EN BIT(22)
|
#define AR91XX_GPIO_FUNC_WMAC_LED_EN BIT(22)
|
||||||
#define AR91XX_GPIO_FUNC_EXP_PORT_CS_EN BIT(21)
|
#define AR91XX_GPIO_FUNC_EXP_PORT_CS_EN BIT(21)
|
||||||
#define AR91XX_GPIO_FUNC_I2S_REFCLKEN BIT(20)
|
#define AR91XX_GPIO_FUNC_I2S_REFCLKEN BIT(20)
|
||||||
|
Loading…
Reference in New Issue
Block a user