]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: designware_spi: Add reset ctrl to driver
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 7 Sep 2018 06:25:29 +0000 (14:25 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 2 Oct 2018 16:43:58 +0000 (22:13 +0530)
commit6ac5909f51fb4e50604f1a89d0535aefcc51f476
treef313cc5a30840777da11ff1e4f00bb825215e637
parent938db6fe5da3581ed2c17d64c7e016a7a8df5237
spi: designware_spi: Add reset ctrl to driver

Add code to reset all reset signals as in SPI DT node. A reset property
is an optional feature, so only print out a warning and do not fail if a
reset property is not present.

If a reset property is discovered, then use it to deassert, thus
bringing the IP out of reset.

Release reset when _remove().

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/designware_spi.c