- 06 7月, 2016 1 次提交
-
-
由 Andy Yan 提交于
This driver parses the reboot commands like "reboot bootloader" and "reboot recovery" to get a boot mode described in the device tree , then call the write interfae to store the boot mode in some place like special register or sram, which can be read by the bootloader after system reboot, then the bootloader can take different action according to the mode stored. This is commonly used on Android based devices, in order to reboot the device into fastboot or recovery mode. Reviewed-by: NMatthias Brugger <matthias.bgg@gmail.com> Reviewed-by: NMoritz Fischer <moritz.fischer@ettus.com> Tested-by: NJohn Stultz <john.stultz@linaro.org> Acked-by: NJohn Stultz <john.stultz@linaro.org> Signed-off-by: NAndy Yan <andy.yan@rock-chips.com> Reviewed-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 10 6月, 2016 1 次提交
-
-
由 Ben Dooks 提交于
The syscon_poweroff() function is not exported or declared for usage elsewhere, so make it static to avoid the folloiwing warning: drivers/power/reset/syscon-poweroff.c:33:6: warning: symbol 'syscon_poweroff' was not declared. Should it be static? Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk> Reviewed-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 03 6月, 2016 1 次提交
-
-
由 Krzysztof Kozlowski 提交于
Enable the COMPILE_TEST to get build coverage, except on platforms !HAS_IOMEM (required by selected MFD_SYSCON). Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 10 4月, 2016 1 次提交
-
-
由 Nicolas Ferre 提交于
Sama5d2 SoC has a completely new shutdown controller with new features and register layout. It thus makes sense to add a new driver for this new peripheral. This driver is Device Tree only and handles events from the wake-up pin and the RTC. As the register layout may change in the future, so some values are encoded in a configuration structure. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 15 2月, 2016 2 次提交
-
-
由 Richard Weinberger 提交于
Not every arch has io memory. So, unbreak the build by fixing the dependencies. Signed-off-by: NRichard Weinberger <richard@nod.at> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Linus Walleij 提交于
While this driver is named after the Versatile family of boards (ARM reference designs) the machine actually called Versatile was not supported. This patch makes the driver handle also that machine. We augment the register names for the reset to *VERSATILE* as well since it is the same register offsets for Versatile and RealView. Cc: Rob Herring <robh@kernel.org> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 05 12月, 2015 1 次提交
-
-
由 Julia Lawall 提交于
for_each_matching_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // <smpl> @@ expression e,e1; local idexpression np; @@ for_each_matching_node(np, e1) { ... when != of_node_put(np) when != e = np ( return np; | + of_node_put(np); ? return ...; ) ... } // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 22 9月, 2015 6 次提交
-
-
由 Nicolas Ferre 提交于
This diver doesn't applies only on SAM9 SoC families but on SAMA5 families as well. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Alexandre Belloni 提交于
Commit dca1a4b5 ("clk: at91: keep slow clk enabled to prevent system hang") added a workaround for the slow clock as it is not properly handled by its users. Get and use the slow clock as it is necessary for the at91 shutdown controller. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Alexandre Belloni 提交于
It was not possible to compile at91-poweroff as a module. Implement .remove() to allow it. Also switch to module_platform_driver_probe() as it is not hotpluggable. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Alexandre Belloni 提交于
Commit dca1a4b5 ("clk: at91: keep slow clk enabled to prevent system hang") added a workaround for the slow clock as it is not properly handled by its users. Get and use the slow clock as it is necessary for the at91 reset controller. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Alexandre Belloni 提交于
It was not possible to compile at91-reset as a module. Implement .remove() to allow it. Also switch to module_platform_driver_probe() as it is not hotpluggable. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Alexandre Belloni 提交于
Since all the at91 platforms are now DT only, at91_reset_platform_probe() is now useless, remove it. Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 27 7月, 2015 1 次提交
-
-
由 Jun Nie 提交于
Including ARM related header file cause build failure in i386 build because COMILE_TEST also involve building zx driver. Remove the unnecessary include file. Signed-off-by: NJun Nie <jun.nie@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 24 7月, 2015 1 次提交
-
-
由 Jun Nie 提交于
Register with kernel restart handler instead of setting arm_pm_restart directly. Signed-off-by: NJun Nie <jun.nie@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 21 7月, 2015 1 次提交
-
-
由 Josh Wu 提交于
This patch introduces a new compatible string: "atmel,sama5d3-rstc" and new reset function for sama5d3 and later chips. As in sama5d3 or later chips, we don't have to shutdown the DDR controller before reset. Shutdown the DDR controller before reset is a workaround to avoid DDR signal driving the bus, but since sama5d3 and later chips there is no such a conflict. So in this patch: 1. the sama5d3 reset function only need to write the rstc register and return. 2. we can remove the code related with sama5d3 DDR controller as we don't use it at all. Signed-off-by: NJosh Wu <josh.wu@atmel.com> Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com> Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 17 6月, 2015 1 次提交
-
-
由 Paul Gortmaker 提交于
This file depends on Kconfig options all of which are a bool, so we use the appropriate registration function, which avoids us relying on an implicit inclusion of <module.h> which we are doing currently. While this currently works, we really don't want to be including the module.h header in non-modular code, which we'd be forced to do, pending some upcoming code relocation from init.h into module.h. So we fix it now by using the non-modular equivalent. Cc: Sebastian Reichel <sre@kernel.org> Acked-By: NSebastian Reichel <sre@kernel.org> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: linux-pm@vger.kernel.org Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
-
- 03 6月, 2015 1 次提交
-
-
由 Heiko Stübner 提交于
gpio-restart uses a priority of 128 and currently most soc-level restart mechanisms use the same - with some exceptions even using 192. But while the soc-level restarts are provided by the soc itself, gpio-restarts will most of the time be board-specfic and be used when some special board condition makes the soc-level restart only a second choice. The problem at hand manifested itself on the rk3288-veyron devices. While the soc-level restart can sucessfully restart all other rockchip boards I have, the veyron devices use an external restart mechanism that seems to not only reset the soc but also some external needed components. With both restart handlers having priority 128 in my tests the soc-specific variant took precedent in all cases. While it could restart the soc sucessfully in all cases, firmware then got an issue when talking to an external component, resulting in the device being put into recovery mode. So, give the board-specific restart handler a slight push and move it to priority 129 to make it more important than the generic soc-specific restart-handler. Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 24 5月, 2015 3 次提交
-
-
由 Uwe Kleine-König 提交于
devm_gpiod_get_optional returns NULL if devm_gpiod_get would return an ENOENT error pointer. There is no semantic change intended. Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Uwe Kleine-König 提交于
Since 39b2bbe3 (gpio: add flags argument to gpiod_get*() functions) which appeared in v3.17-rc1, the gpiod_get* functions take an additional parameter that allows to specify direction and initial value for output. Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Krzysztof Kozlowski 提交于
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: NKrzysztof Kozlowski <k.kozlowski.k@gmail.com> Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 02 5月, 2015 1 次提交
-
-
由 Florian Fainelli 提交于
The Broadcom STB reboot driver depends on MFD_SYSCON, it uses syscon_regmap_lookup_by_phandle() which will not lookup syscon phandles if MFD_SYSCON is disabled, and instead will return -ENOSYS since it is turned into an inline stub. Fixes: 030494e7 ("power: reset: Add reboot driver for brcmstb") Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 30 4月, 2015 2 次提交
-
-
由 Thomas Gleixner 提交于
The return value of hrtimer_start() tells whether the timer was inactive or active already when hrtimer_start() was called. The code emits a bogus warning if the timer was active already claiming that the timer could not be started. Remove it. Signed-off-by: NThomas Gleixner <tglx@linutronix.de> Cc: Sebastian Reichel <sre@kernel.org> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Frans Klaver <frans.klaver@xsens.com> Cc: "René Moll" <linux@r-moll.nl> Cc: Wolfram Sang <wsa@the-dreams.de> Cc: linux-pm@vger.kernel.org Acked-by: NFrans Klaver <frans.klaver@xsens.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Wei Yongjun 提交于
In case of error, the function devm_ioremap() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: ecfe64d8 ("power: reset: Add AT91 reset driver") Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 23 4月, 2015 1 次提交
-
-
由 Thomas Gleixner 提交于
The return value of hrtimer_start() tells whether the timer was inactive or active already when hrtimer_start() was called. The code emits a bogus warning if the timer was active already claiming that the timer could not be started. Remove it along with the bogus comment in the else path. Signed-off-by: NThomas Gleixner <tglx@linutronix.de> Acked-by: NFrans Klaver <frans.klaver@xsens.com> Cc: Sebastian Reichel <sre@kernel.org> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Wolfram Sang <wsa@the-dreams.de> Cc: linux-pm@vger.kernel.org
-
- 07 4月, 2015 1 次提交
-
-
由 Moritz Fischer 提交于
Add a generic SYSCON register mapped poweroff mechanism. Signed-off-by: NMoritz Fischer <moritz.fischer@ettus.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 26 3月, 2015 1 次提交
-
-
由 Ben Dooks 提交于
Fix the passing of big endian data to routines that will be writing it to the bus in the wrong order. Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 20 3月, 2015 2 次提交
-
-
由 Fabian Frederick 提交于
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: NFabian Frederick <fabf@skynet.be> [for vexpress] Acked-by: NSudeep Holla <sudeep.holla@arm.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Richard Weinberger 提交于
Fixes: drivers/power/reset/rmobile-reset.c: In function ‘rmobile_reset_probe’: drivers/power/reset/rmobile-reset.c:61:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration] iounmap(sysc_base2); Signed-off-by: NRichard Weinberger <richard@nod.at> Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 26 1月, 2015 6 次提交
-
-
由 Guenter Roeck 提交于
This driver is now arm specific anymore, so there is no need to include an arm specific include file. Also drop unnecessary depencency on ARM from Kconfig. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
The st-poweroff driver does not really power off the system but resets it, so Kconfig should not claim that the driver would handle power-off. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
Register with kernel restart handler instead of setting arm_pm_restart directly. Select high priority since the restart handler is instantiated through devicetree, indicating that it should be used if configured. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
sun6i restart is now handled by its watchdog driver directly, so this driver is no longer needed. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NMaxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
Register with kernel restart handler instead of setting arm_pm_restart directly. Register with high priority since the driver unconditionally overwrites other restart handlers if instantiated. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
Register with kernel restart handler instead of setting arm_pm_restart directly. Select high priority since the restart handler is instantiated through devicetree, indicating that it should be used if configured. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 22 1月, 2015 4 次提交
-
-
由 Kevin Cernekee 提交于
The register bit fields are a little different, so add an entry and a compatible string to accommodate them. Signed-off-by: NKevin Cernekee <cernekee@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Kevin Cernekee 提交于
Some of the older chips used different bits to arm and trigger the reset. Add the infrastructure needed to specify this through the "compatible" string. Signed-off-by: NKevin Cernekee <cernekee@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Kevin Cernekee 提交于
Now that the driver doesn't use any ARM-specific headers, it is safe to build on MIPS or with COMPILE_TEST. Signed-off-by: NKevin Cernekee <cernekee@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Guenter Roeck 提交于
at91_poweroff_get_wakeup_mode can return a negative error code and should therefore not return an enum type. Similar, its result should not be assigned to an enum type. Otherwise, the returned value is never negative, resulting in a compiler warning and a missed error condition, which in turn results in writing bad values into a chip register. Also fix other compiler warnings which can be easily avoided. drivers/power/reset/at91-poweroff.c:74:24: warning: type qualifiers ignored on function return type drivers/power/reset/at91-poweroff.c:74:24: warning: no previous prototype for 'at91_poweroff_get_wakeup_mode' drivers/power/reset/at91-poweroff.c:83:16: warning: comparison between signed and unsigned integer expressions drivers/power/reset/at91-poweroff.c:97:2: warning: comparison of unsigned expression < 0 is always false Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NMaxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 21 1月, 2015 1 次提交
-
-
由 Geert Uytterhoeven 提交于
Add a reset driver for Renesas R-Mobile and SH-Mobile SoCs. It registers a restart handler to trigger a soft power-on reset through the R-Mobile System Controller. The priority of this restart handler is 192, to allow a watchdog driver to use priority 128. Note that we do not use syscon-reboot, as the HPB (Peripheral Bus Bridge) semaphore should be acquired on systems where both the ARM and SH core are in use. The driver can be extended later to support this, when needed. Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-