reset: socfpga: Update reset-socfpga to read the altr,modrst-offset property
authorDinh Nguyen <dinguyen@opensource.altera.com>
Fri, 31 Jul 2015 21:03:10 +0000 (16:03 -0500)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 3 Aug 2015 11:13:59 +0000 (13:13 +0200)
commit27e44646dc0083c931b71bbb8e179aeb38010d31
tree26cbe20244e4bd706de9daf7f9d0d223a984431a
parent27dc2fb18fe814fab0a5035859c77b279cdaec80
reset: socfpga: Update reset-socfpga to read the altr,modrst-offset property

In order for the Arria10 to be able to re-use the reset driver for SoCFPGA
Cyclone5/Arria5, we need to read the 'altr,modrst-offset' property from the
device tree entry. The 'altr,modrst-offset' property is the first register
into the reset manager that is used for bringing peripherals out of reset.

The driver assumes a modrst-offset of 0x10 in order to support legacy
Cyclone5/Arria5 hardware.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
drivers/reset/reset-socfpga.c