Commit 7ee15d8a authored by Gabor Juhos's avatar Gabor Juhos Committed by Ralf Baechle

MIPS: ath79: Add AR933X specific glue for ath79_device_reset_{set,clear}

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: Kathy Giori <kgiori@qca.qualcomm.com>
Cc: "Luis R.  Rodriguez" <rodrigue@qca.qualcomm.com>
Patchwork: https://patchwork.linux-mips.org/patch/2523/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 04225e1d
...@@ -64,6 +64,8 @@ void ath79_device_reset_set(u32 mask) ...@@ -64,6 +64,8 @@ void ath79_device_reset_set(u32 mask)
reg = AR724X_RESET_REG_RESET_MODULE; reg = AR724X_RESET_REG_RESET_MODULE;
else if (soc_is_ar913x()) else if (soc_is_ar913x())
reg = AR913X_RESET_REG_RESET_MODULE; reg = AR913X_RESET_REG_RESET_MODULE;
else if (soc_is_ar933x())
reg = AR933X_RESET_REG_RESET_MODULE;
else else
BUG(); BUG();
...@@ -86,6 +88,8 @@ void ath79_device_reset_clear(u32 mask) ...@@ -86,6 +88,8 @@ void ath79_device_reset_clear(u32 mask)
reg = AR724X_RESET_REG_RESET_MODULE; reg = AR724X_RESET_REG_RESET_MODULE;
else if (soc_is_ar913x()) else if (soc_is_ar913x())
reg = AR913X_RESET_REG_RESET_MODULE; reg = AR913X_RESET_REG_RESET_MODULE;
else if (soc_is_ar933x())
reg = AR933X_RESET_REG_RESET_MODULE;
else else
BUG(); BUG();
......
...@@ -173,6 +173,7 @@ ...@@ -173,6 +173,7 @@
#define AR724X_RESET_REG_RESET_MODULE 0x1c #define AR724X_RESET_REG_RESET_MODULE 0x1c
#define AR933X_RESET_REG_RESET_MODULE 0x1c
#define AR933X_RESET_REG_BOOTSTRAP 0xac #define AR933X_RESET_REG_BOOTSTRAP 0xac
#define MISC_INT_ETHSW BIT(12) #define MISC_INT_ETHSW BIT(12)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment