summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-lpc18xx.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-30reset: lpc18xx: get rid of global variables for restart notifierJoachim Eastwood1-12/+10
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: Joachim Eastwood <manabian@gmail.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2016-02-08reset: lpc18xx: Make reset_control_ops constPhilipp Zabel1-1/+1
The lpc18xx_rgu_ops structure is never modified. Make it const. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Joachim Eastwood <manabian@gmail.com>
2015-08-03reset: add driver for lpc18xx rguJoachim Eastwood1-0/+258
Add reset driver for the Reset Generation Unit (RGU) found on NXP LPC18xx and LPC43xx devies. This reset controller features up to 64 reset lines connected to different blocks and peripheral in the SoC. Most reset lines on the controller are self clearing except for those dealing with the Cortex-M0 cores on LPC43xx devices. This driver also registers a restart handler that can be used to reset the entire device. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>