summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/debug.h
diff options
context:
space:
mode:
authorYu Chien Peter Lin <peterlin@andestech.com>2023-09-29 12:03:07 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-10-04 18:23:54 +0800
commit8a0d5f2f51b72b3cabacfe90ff196db3e1c4dc4d (patch)
treee73f03e8612808bdf02f7a738ab73669ccc26141 /drivers/usb/cdns3/debug.h
parent5f2529763772e26ed6c7f7ecbefe9482ad75fb99 (diff)
riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode
The Andes PLMT driver directly accesses the mtime MMIO region, indicating its intended use in the M-mode boot stage. However, since U-Boot proper (S-mode) also uses the PLMT driver, we need to specifically mark the region as readable through PMPCFGx (or S/U-mode read-only shared data region for Smepmp) in OpenSBI. Granting permission for this case doesn't make sense. Instead, we should use the generic RISC-V timer driver to read the mtime through the TIME CSR. Therefore, we add the SPL_ANDES_PLMT_TIMER config, which ensures that the PLMT driver is linked exclusively against M-mode U-Boot or U-Boot SPL binaries. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'drivers/usb/cdns3/debug.h')
0 files changed, 0 insertions, 0 deletions