Add AR934x specific GPIO functions and output MUX configuration.

Obtained from:	Linux OpenWRT
This commit is contained in:
Adrian Chadd 2015-01-03 06:35:53 +00:00
parent e2fa3a330a
commit 0bd5971780
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276609

View File

@ -188,6 +188,28 @@
#define AR934X_GPIO_REG_FUNC 0x6c
#define AR934X_GPIO_COUNT 23
/* GPIO functions */
#define AR934X_GPIO_FUNC_CLK_OBS7_EN (1 << 9)
#define AR934X_GPIO_FUNC_CLK_OBS6_EN (1 << 8)
#define AR934X_GPIO_FUNC_CLK_OBS5_EN (1 << 7)
#define AR934X_GPIO_FUNC_CLK_OBS4_EN (1 << 6)
#define AR934X_GPIO_FUNC_CLK_OBS3_EN (1 << 5)
#define AR934X_GPIO_FUNC_CLK_OBS2_EN (1 << 4)
#define AR934X_GPIO_FUNC_CLK_OBS1_EN (1 << 3)
#define AR934X_GPIO_FUNC_CLK_OBS0_EN (1 << 2)
#define AR934X_GPIO_FUNC_JTAG_DISABLE (1 << 1)
/* GPIO MUX output function: AR934X_GPIO_REG_OUT_FUNCx */
#define AR934X_GPIO_OUT_GPIO 0 /* I'm a GPIO */
#define AR934X_GPIO_OUT_SPI_CS1 7 /* I'm SPI CS1 */
#define AR934X_GPIO_OUT_LED_LINK0 41 /* I'm switch phy link0 */
#define AR934X_GPIO_OUT_LED_LINK1 42
#define AR934X_GPIO_OUT_LED_LINK2 43
#define AR934X_GPIO_OUT_LED_LINK3 44
#define AR934X_GPIO_OUT_LED_LINK4 45
#define AR934X_GPIO_OUT_EXT_LNA0 46 /* I'm WMAC EXT LNA chain 0 */
#define AR934X_GPIO_OUT_EXT_LNA1 47 /* I'm WMAC EXT LNA chain 1 */
/*
* SRIF block
*/