summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>2019-03-01 20:12:32 +0100
committerMarek Vasut <marex@denx.de>2019-04-17 22:20:16 +0200
commitede6e7b64fbd3beef691f526d14e088583f74472 (patch)
tree24c060e1fffd827eb30c2f8c2a6575f9a759a5dd /api
parent4b2e32efa4e7c999cf11c8492f5a704214c2ad12 (diff)
reset: socfpga: add reset handling for old kernels
This adds code to take peripherals out of reset based on an environment variable. This is in preparation for removing the code that does this from SPL. However, some drivers even in current Linux cannot handle peripheral reset, so until this works, we need a compatibility workaround. This workaround is implemented in the 'assert' and 'remove' callbacks of this reset driver: the 'assert' callback does not disable peripherals that were already taken out of reset, while the 'remove' callback, which is called on OS_PREPARE, deasserts all peripheral resets if the environment variable "socfpga_legacy_reset_compat" is set to 1, which is what the gen5 SPL did up to now. This is in preparation to clean up the SPL and implementing proper reset handling for U-Boot. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions