]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: renesas: Add R-Car RST driver
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 27 May 2016 09:56:53 +0000 (11:56 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 2 Nov 2016 19:43:07 +0000 (20:43 +0100)
commit527c02f66d263d2eeff237a2326c3278cfc03d3b
treee75cda08981b8d80659e7fab95d8cac03ca56161
parent362922a1a5345d17a9d4ad7e3f848aa4fdf79d75
soc: renesas: Add R-Car RST driver

Add a driver for the Renesas R-Car Gen1 RESET/WDT and R-Car Gen2/Gen3
and RZ/G RST module.

For now this driver just provides an API to obtain the state of the mode
pins, as latched at reset time.  As this is typically called from the
probe function of a clock driver, which can run much earlier than any
initcall, calling rcar_rst_read_mode_pins() just forces an early
initialization of the driver.

Despite the current simple and almost identical handling for all
supported SoCs, the driver matches against SoC-specific compatible
values, as the features provided by the hardware module differ a lot
across the various SoC families and members.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
drivers/soc/renesas/Makefile
drivers/soc/renesas/rcar-rst.c [new file with mode: 0644]
include/linux/soc/renesas/rcar-rst.h [new file with mode: 0644]