9
0
Fork 0

MIPS: ath79: pbl: add pbl_ar9331_mdio_gpio_enable macro

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2016-03-07 16:30:22 +03:00 committed by Sascha Hauer
parent 30f171a94c
commit d752908d28
1 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,14 @@
| AR933X_GPIO_FUNC_RSRV15, GPIO_FUNC
.endm
#define RESET_REG_BOOTSTRAP ((KSEG1 | AR71XX_RESET_BASE) \
| AR933X_RESET_REG_BOOTSTRAP)
.macro pbl_ar9331_mdio_gpio_enable
/* Bit 18 enables MDC and MDIO function on GPIO26 and GPIO28 */
pbl_reg_set (1 << 18), RESET_REG_BOOTSTRAP
.endm
.macro hornet_mips24k_cp0_setup
.set push
.set noreorder