diff options
author | Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> | 2021-07-09 05:53:42 -0600 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-07-26 09:18:45 +0200 |
commit | a70bdafd67afa8d5a5ec73280c74a51a03640b66 (patch) | |
tree | d91df2341052d2606051231f175326cce6830304 /include | |
parent | ee9ae005dc4cbd0a9a792c0b78385055f18b9a8a (diff) | |
download | u-boot-a70bdafd67afa8d5a5ec73280c74a51a03640b66.zip u-boot-a70bdafd67afa8d5a5ec73280c74a51a03640b66.tar.gz u-boot-a70bdafd67afa8d5a5ec73280c74a51a03640b66.tar.bz2 |
mmc: zynq_sdhci: Split set_tapdelay function to in and out
Split arasan_zynqmp_set_tapdelay() to handle input and output tapdelays
separately. This is required to handle zero values for ITAP and OTAP
values. If we dont split, we will have to remove the if() in the
function, which makes ITAP values to be overwritten when OTAP values are
called to set and vice-versa.
Restrict tap_delay value calculated to max allowed 8 bits for ITAP and 6
bits for OTAP for ZynqMP.
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/zynqmp_tap_delay.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/zynqmp_tap_delay.h b/include/zynqmp_tap_delay.h index 7b71343..1c1e3e7 100644 --- a/include/zynqmp_tap_delay.h +++ b/include/zynqmp_tap_delay.h @@ -10,11 +10,12 @@ #ifdef CONFIG_ARCH_ZYNQMP void zynqmp_dll_reset(u8 deviceid); -void arasan_zynqmp_set_tapdelay(u8 device_id, u32 itap_delay, u32 otap_delay); +void arasan_zynqmp_set_in_tapdelay(u8 device_id, u32 itap_delay); +void arasan_zynqmp_set_out_tapdelay(u8 device_id, u32 otap_delay); #else inline void zynqmp_dll_reset(u8 deviceid) {} -inline void arasan_zynqmp_set_tapdelay(u8 device_id, u32 itap_delay, - u32 otap_delay) {} +inline void arasan_zynqmp_set_in_tapdelay(u8 device_id, u32 itap_delay) {} +inline void arasan_zynqmp_set_out_tapdelay(u8 device_id, u32 otap_delay) {} #endif #endif |