Skip to content

Commit a6166a4

Browse files
unicornxpH5
authored andcommitted
reset: simple: add support for Sophgo SG2042
Reuse reset-simple driver for the Sophgo SG2042 reset generator. Signed-off-by: Chen Wang <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Link: https://lore.kernel.org/r/1cfd7b3ba447942784c4f7aa595e962399e9f617.1706577450.git.unicorn_wang@outlook.com Signed-off-by: Philipp Zabel <[email protected]>
1 parent 41197eb commit a6166a4

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
@@ -213,7 +213,7 @@ config RESET_SCMI
213213

214214
config RESET_SIMPLE
215215
bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT
216-
default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC
216+
default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_SOPHGO || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC
217217
depends on HAS_IOMEM
218218
help
219219
This enables a simple reset controller driver for reset lines that
@@ -228,6 +228,7 @@ config RESET_SIMPLE
228228
- RCC reset controller in STM32 MCUs
229229
- Allwinner SoCs
230230
- SiFive FU740 SoCs
231+
- Sophgo SoCs
231232

232233
config RESET_SOCFPGA
233234
bool "SoCFPGA Reset Driver" if COMPILE_TEST && (!ARM || !ARCH_INTEL_SOCFPGA)

drivers/reset/reset-simple.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ static const struct of_device_id reset_simple_dt_ids[] = {
151151
{ .compatible = "snps,dw-high-reset" },
152152
{ .compatible = "snps,dw-low-reset",
153153
.data = &reset_simple_active_low },
154+
{ .compatible = "sophgo,sg2042-reset",
155+
.data = &reset_simple_active_low },
154156
{ /* sentinel */ },
155157
};
156158

0 commit comments

Comments
 (0)