Skip to content

Commit 64c47b6

Browse files
Mani-SadhasivampH5
authored andcommitted
reset: Add reset controller support for BM1880 SoC
Add reset controller support for Bitmain BM1880 SoC reusing the reset-simple driver. Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
1 parent ef98682 commit 64c47b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/reset/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ config RESET_QCOM_PDC
117117

118118
config RESET_SIMPLE
119119
bool "Simple Reset Controller Driver" if COMPILE_TEST
120-
default ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED
120+
default ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED || ARCH_BITMAIN
121121
help
122122
This enables a simple reset controller driver for reset lines that
123123
that can be asserted and deasserted by toggling bits in a contiguous,
@@ -129,6 +129,7 @@ config RESET_SIMPLE
129129
- RCC reset controller in STM32 MCUs
130130
- Allwinner SoCs
131131
- ZTE's zx2967 family
132+
- Bitmain BM1880 SoC
132133

133134
config RESET_STM32MP157
134135
bool "STM32MP157 Reset Driver" if COMPILE_TEST

drivers/reset/reset-simple.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ static const struct of_device_id reset_simple_dt_ids[] = {
129129
.data = &reset_simple_active_low },
130130
{ .compatible = "aspeed,ast2400-lpc-reset" },
131131
{ .compatible = "aspeed,ast2500-lpc-reset" },
132+
{ .compatible = "bitmain,bm1880-reset",
133+
.data = &reset_simple_active_low },
132134
{ /* sentinel */ },
133135
};
134136

0 commit comments

Comments
 (0)