commit | eb382db8fa7370868a90d4ba5e29004cb61f17c1 | [log] [tgz] |
---|---|---|
author | Walter Lozano <walter.lozano@collabora.com> | Thu Jan 23 16:05:05 2020 -0300 |
committer | Stefan Roese <sr@denx.de> | Mon Mar 16 11:25:12 2020 +0100 |
tree | aed96dd9ab513b8d07917842bcb71a8ea1bcf783 | |
parent | 620ce6e8fd96ae88becc49c87d74ace19e3db06d [diff] |
watchdog: Use dev_read only if OF_PLATDATA is not enabled Currently watchdog tries to use dev_read_u32_default to get timeout configuration in case OF_CONTROL is enabled. However, if SPL is built with OF_PLATDATA this has no sense as there is no device tree. This patch fixes this issue by only use dev_read_u32_default if OF_CONTROL is enabled but OF_PLATDATA is not. Signed-off-by: Walter Lozano <walter.lozano@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org>