diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2016-03-07 16:30:22 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-09 19:58:51 +0100 |
commit | d752908d284bd08304c2650bc4a3525fe69dab3d (patch) | |
tree | a3f96f59cb8a592cde31cf40d6d9104a7074234b /arch/mips | |
parent | 30f171a94c0fd376e19e810a58b06f936ce028c2 (diff) | |
download | barebox-d752908d284bd08304c2650bc4a3525fe69dab3d.tar.gz barebox-d752908d284bd08304c2650bc4a3525fe69dab3d.tar.xz |
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mach-ath79/include/mach/pbl_macros.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/mach-ath79/include/mach/pbl_macros.h b/arch/mips/mach-ath79/include/mach/pbl_macros.h index 24cfd605f8..8f4d09aec4 100644 --- a/arch/mips/mach-ath79/include/mach/pbl_macros.h +++ b/arch/mips/mach-ath79/include/mach/pbl_macros.h @@ -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 |