diff options
author | andy.hu <andy.hu@starfivetech.com> | 2023-04-07 14:30:48 +0300 |
---|---|---|
committer | andy.hu <andy.hu@starfivetech.com> | 2023-04-07 14:30:48 +0300 |
commit | 6f85c682b9131b9f2723725a070e541361e46072 (patch) | |
tree | 241a3d69d213e867f79da6171398c9bc51e0fac6 /board/starfive/evb | |
parent | 14d90726c4e9b97decca8d26fb235a3953c7d8a8 (diff) | |
parent | 41cad11dbfc69454edf03ba0dc8fb05196bd74a8 (diff) | |
download | u-boot-6f85c682b9131b9f2723725a070e541361e46072.tar.xz |
Merge branch 'CR_4563_memcpy_samin.guo' into 'jh7110-master'
CR4563:Configure the l2 prefetcher parameter
See merge request sdk/u-boot!48
Diffstat (limited to 'board/starfive/evb')
-rw-r--r-- | board/starfive/evb/starfive_evb.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c index e2e1e9b8a7..62f7129431 100644 --- a/board/starfive/evb/starfive_evb.c +++ b/board/starfive/evb/starfive_evb.c @@ -238,32 +238,10 @@ static void get_cpu_voltage_type(struct udevice *dev) } #endif -/*enable U74-mc hart1~hart4 prefetcher*/ -static void enable_prefetcher(void) -{ - u32 hart; - u32 *reg; -#define L2_PREFETCHER_BASE_ADDR 0x2030000 -#define L2_PREFETCHER_OFFSET 0x2000 - - /*hart1~hart4*/ - for (hart = 1; hart < 5; hart++) { - reg = (u32 *)((u64)(L2_PREFETCHER_BASE_ADDR - + hart*L2_PREFETCHER_OFFSET)); - - mb(); /* memory barrier */ - setbits_le32(reg, 0x1); - mb(); /* memory barrier */ - } -} - int board_init(void) { enable_caches(); - /*enable hart1-hart4 prefetcher*/ - enable_prefetcher(); - jh7110_timer_init(); jh7110_usb_init(true); |