qspi: t210: Use dev_read calls to get FDT data like base, freq
authorTom Warren <twarren@nvidia.com>
Fri, 20 Mar 2020 21:33:00 +0000 (14:33 -0700)
committerTom Warren <twarren@nvidia.com>
Thu, 2 Apr 2020 21:30:02 +0000 (14:30 -0700)
commitb1747fdb82e9a2befb65b762ba7579b3870d47cb
tree6021a5e5002e1e59e41cf27d6da58e6774f6879f
parent2fcc3ba1b766df5f8cfbf35cb2cc88edff94d0f3
qspi: t210: Use dev_read calls to get FDT data like base, freq

This Tegra QSPI driver hadn't been brought up to date with how
DM drivers are fetching data from the FDT now, and was pulling
in bogus data for base, max freq, etc. Fixed ofdata_to_platdata
to work the same way it does in the tegra114 SPI driver, using
dev_read_ functions.

Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/spi/tegra210_qspi.c