]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
reset: simple: Enable for ASPEED systems
authorJoel Stanley <joel@jms.id.au>
Tue, 20 Feb 2018 01:43:29 +0000 (12:13 +1030)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 20 Feb 2018 16:42:29 +0000 (17:42 +0100)
ASPEED BMC SoCs have a reset controller in the LPC IP that can be
controlled using this driver to release the UARTs from reset.

No special configuration is required, so only the compatible string is
added.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig
drivers/reset/reset-simple.c

index 7fc77696bb1eeac19d2eb03062c17635bf88d30e..18f152d251d70af61a889348e5a17699c65ee1f4 100644 (file)
@@ -83,14 +83,18 @@ config RESET_PISTACHIO
 
 config RESET_SIMPLE
        bool "Simple Reset Controller Driver" if COMPILE_TEST
-       default ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX
+       default ARCH_SOCFPGA || ARCH_STM32 || ARCH_STRATIX10 || ARCH_SUNXI || ARCH_ZX || ARCH_ASPEED
        help
          This enables a simple reset controller driver for reset lines that
          that can be asserted and deasserted by toggling bits in a contiguous,
          exclusive register space.
 
-         Currently this driver supports Altera SoCFPGAs, the RCC reset
-         controller in STM32 MCUs, Allwinner SoCs, and ZTE's zx2967 family.
+         Currently this driver supports:
+          - Altera SoCFPGAs
+          - ASPEED BMC SoCs
+          - RCC reset controller in STM32 MCUs
+          - Allwinner SoCs
+          - ZTE's zx2967 family
 
 config RESET_SUNXI
        bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI
index 2d4f362ef0255a223889d3bfbff7e2a73c26e192..f7ce8910a392ca77e235880f795e3e298ccf7eba 100644 (file)
@@ -125,6 +125,8 @@ static const struct of_device_id reset_simple_dt_ids[] = {
                .data = &reset_simple_active_low },
        { .compatible = "zte,zx296718-reset",
                .data = &reset_simple_active_low },
+       { .compatible = "aspeed,ast2400-lpc-reset" },
+       { .compatible = "aspeed,ast2500-lpc-reset" },
        { /* sentinel */ },
 };