- 24 10月, 2016 3 次提交
-
-
由 Paul Gortmaker 提交于
The Kconfig currently controlling compilation of this code is: drivers/reset/Kconfig:config RESET_SUNXI drivers/reset/Kconfig: bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI drivers/reset/Kconfig: default ARCH_SUNXI or arch/arm/mach-sunxi/Kconfig:menuconfig ARCH_SUNXI arch/arm/mach-sunxi/Kconfig: bool "Allwinner SoCs" if ARCH_MULTI_V7 ...meaning that it currently is not being built as a module by anyone. Lets remove the few remaining traces of modular macro usage, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Paul Gortmaker 提交于
The Kconfig currently controlling compilation of this code is: drivers/reset/Kconfig:config RESET_SOCFPGA drivers/reset/Kconfig: bool "SoCFPGA Reset Driver" if COMPILE_TEST drivers/reset/Kconfig: default ARCH_SOCFPGA or arch/arm/mach-socfpga/Kconfig:menuconfig ARCH_SOCFPGA arch/arm/mach-socfpga/Kconfig: bool "Altera SOCFPGA family" if ARCH_MULTI_V7 ...meaning that it currently is not being built as a module by anyone. Lets remove the small amount of modular evidence that remains, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments. Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Paul Gortmaker 提交于
The Kconfig currently controlling compilation of this code is: drivers/reset/Kconfig:config RESET_BERLIN drivers/reset/Kconfig: bool "Berlin Reset Driver" if COMPILE_TEST drivers/reset/Kconfig: default ARCH_BERLIN or arch/arm/mach-berlin/Kconfig:menuconfig ARCH_BERLIN arch/arm/mach-berlin/Kconfig: bool "Marvell Berlin SoCs" if ARCH_MULTI_V7 or arch/arm64/Kconfig.platforms:config ARCH_BERLIN arch/arm64/Kconfig.platforms: bool "Marvell Berlin SoC Family" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments. Cc: Antoine Tenart <antoine.tenart@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 20 10月, 2016 2 次提交
-
-
由 Neil Armstrong 提交于
In order to support the Oxford Semiconductor OX820 SoC, add a new compatible string. Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Peter Griffin 提交于
Support for STiH415/6 SoCs is being removed from the kernel because the platforms are obsolete. This patch removes the reset drivers for these SoC's. Signed-off-by: NPeter Griffin <peter.griffin@linaro.org> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 30 8月, 2016 6 次提交
-
-
由 Philipp Zabel 提交于
Also remove the RESET_CONTROLLER dependency, this Kconfig file is included inside the menuconfig already. Cc: Chen Feng <puck.chen@hisilicon.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Cc: Moritz Fischer <moritz.fischer@ettus.com> Cc: Sören Brinkmann <soren.brinkmann@xilinx.com> Acked-by: NMichal Simek <michal.simek@xilinx.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: Gabriel Fernandez <gabriel.fernandez@st.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Acked-by: NDinh Nguyen <dinguyen@opensource.altera.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Cc: Damien Horsley <Damien.Horsley@imgtec.com> Acked-by: NJames Hartley <james.hartley@imgtec.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 25 8月, 2016 5 次提交
-
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Acked-by: NNeil Armstrong <narmstrong@baylibre.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Acked-by: NJoachim Eastwood <manabian@gmail.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Cc: Antoine Tenart <antoine.tenart@free-electrons.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
Visible only if COMPILE_TEST is enabled, this allows to include the driver in build tests. Acked-by: NAban Bedel <albeu@free.fr> Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
The driver uses readl/writel, so it should include linux/io.h. Acked-by: NAban Bedel <albeu@free.fr> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 24 8月, 2016 3 次提交
-
-
由 Philipp Zabel 提交于
Instead of potentially crashing, dump a backtrace and return -EINVAL if rstc is NULL or an error code. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
This is the initial commit for UniPhier reset controller driver. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Maxime Coquelin 提交于
The STM32 MCUs family IPs can be reset by accessing some registers from the RCC block. The list of available reset lines is documented in the DT bindings. Signed-off-by: NMaxime Coquelin <mcoquelin.stm32@gmail.com> Signed-off-by: NGabriel Fernandez <gabriel.fernandez@st.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 09 8月, 2016 1 次提交
-
-
由 Philipp Zabel 提交于
Since we can just add it to membase once, there is no need to store modrst_offset separately, and to repeat the addition with every access. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Tested-by: NDinh Nguyen <dinguyen@opensource.altera.com>
-
- 30 6月, 2016 3 次提交
-
-
由 Andrew F. Davis 提交于
Add a reset-controller driver for performing reset management of various devices present on the SoC, with the reset registers shared between devices in a common register memory space. This driver uses the syscon/regmap frameworks to actually implement the various reset functionalities needed by the reset consumer devices. Signed-off-by: NAndrew F. Davis <afd@ti.com> [s-anna@ti.com: add documentation, syscon name change] Signed-off-by: NSuman Anna <s-anna@ti.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Xinliang Liu 提交于
Add hi6220 media subsystem reset controller. Signed-off-by: NChen Feng <puck.chen@hisilicon.com> Signed-off-by: NXia Qing <saberlily.xia@hisilicon.com> Signed-off-by: NXinliang Liu <xinliang.liu@linaro.org> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Chen Feng 提交于
There are two reset controllers in hi6220 SoC: The peripheral reset controller bits are part of sysctrl registers. The media reset controller bits are part of mediactrl registers. So change register access to syscon way. And rename current reset controller to peripheral one. Signed-off-by: NChen Feng <puck.chen@hisilicon.com> Signed-off-by: NXia Qing <saberlily.xia@hisilicon.com> Signed-off-by: NXinliang Liu <xinliang.liu@linaro.org> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 01 6月, 2016 1 次提交
-
-
由 Neil Armstrong 提交于
This patch adds the platform driver for the Amlogic Meson SoC Reset Controller. The Meson8b and GXBB SoCs are supported. Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 30 5月, 2016 8 次提交
-
-
由 Neil Armstrong 提交于
Use the brand new devm_reset_controller_register() API to get rid of the platform driver remove callback. Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
In "make menuconfig", reset drivers are currently lined up together with the reset sub-system menu, like this: -*- Reset Controller Support ---- < > Hi6220 Reset Driver (It also means, the menu "Reset Controller Support" is always empty.) "Hi6220 Reset Driver" should go into the sub-menu of the "Reset Controller Support". Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Use devm_reset_controller_register() for the reset controller registration and drop the .remove callback. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Use devm_reset_controller_register() for the reset controller registration and drop the .remove callback. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Use devm_reset_controller_register() for the reset controller registration and drop the .remove callback. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Use devm_reset_controller_register() for the reset controller registration and drop the .remove callback. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Use devm_reset_controller_register() for the reset controller registration and remove the unregister call from the .remove callback. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Masahiro Yamada 提交于
Add a device managed API for reset_controller_register(). This helps in reducing code in .remove callbacks and sometimes dropping .remove callbacks entirely. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Acked-by: NLaxman Dewangan <ldewangan@nvidia.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 01 4月, 2016 1 次提交
-
-
由 Neil Armstrong 提交于
Add System reset controller driver for Oxford Semiconductor OXNAS SoC Family. CC: Ma Haijun <mahaijuns@gmail.com> Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 30 3月, 2016 4 次提交
-
-
由 Joachim Eastwood 提交于
Moving the notifier_block into the drivers priv struct allows us to retrive the priv struct with container_of and remove the global variables. Signed-off-by: NJoachim Eastwood <manabian@gmail.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Hans de Goede 提交于
In some SoCs some hw-blocks share a reset control. Add support for this setup by adding new: reset_control_get_shared() devm_reset_control_get_shared() devm_reset_control_get_shared_by_index() methods to get a reset_control. Note that this patch omits adding of_ variants, if these are needed later they can be easily added. This patch also changes the behavior of the existing exclusive reset_control_get() variants, if these are now called more then once for the same reset_control they will return -EBUSY. To catch existing drivers triggering this error (there should not be any) a WARN_ON(1) is added in this path. When a reset_control is shared, the behavior of reset_control_assert / deassert is changed, for shared reset_controls these will work like the clock-enable/disable and regulator-on/off functions. They will keep a deassert_count, and only (re-)assert the reset after reset_control_assert has been called as many times as reset_control_deassert was called. Calling reset_control_assert without first calling reset_control_deassert is not allowed on a shared reset control. Calling reset_control_reset is also not allowed on a shared reset control. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Hans de Goede 提交于
Now that struct reset_control no longer stores the device pointer for the device calling reset_control_get we can share a single struct reset_control when multiple calls to reset_control_get are made for the same reset line (same id / index). This is a preparation patch for adding support for shared reset lines. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Hans de Goede 提交于
With both the regular, _by_index and _optional variants we already have quite a few variants of [of_]reset_control_get[_foo], the upcoming addition of shared reset lines support makes this worse. This commit changes all the variants into wrappers around common core functions. For completeness sake this commit also adds a new devm_get_reset_control_by_index wrapper. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
- 10 2月, 2016 3 次提交
-
-
由 Philipp Zabel 提交于
The syscfg_reset_ops structure is never modified. Make it const. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
The zynq_reset_ops structure is never modified. Make it const. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-
由 Philipp Zabel 提交于
The socfpga_reset_ops structure is never modified. Make it const. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
-