summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2023-04-07 18:21:02 +0300
committerandy.hu <andy.hu@starfivetech.com>2023-04-07 18:21:02 +0300
commit66e4af93026869fed18cba4a4bc1c53ce92d2338 (patch)
tree42cd00ba06e82fea058a28702f0ef47e60de9370 /board
parente4e25e85324420ca948854cb0602e898610dbf6c (diff)
parentd72ca8695b3d3ac1c201aeedb74b70b138ea9ff4 (diff)
downloadu-boot-66e4af93026869fed18cba4a4bc1c53ce92d2338.tar.xz
Merge branch 'CR_4563_memcpy_samin.guo' into 'vf2-devel'
CR4563: Configure the l2 prefetcher parameter See merge request sbc/u-boot!47
Diffstat (limited to 'board')
-rw-r--r--board/starfive/visionfive2/starfive_visionfive2.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c
index 080077007e..be6a43f29d 100644
--- a/board/starfive/visionfive2/starfive_visionfive2.c
+++ b/board/starfive/visionfive2/starfive_visionfive2.c
@@ -337,25 +337,6 @@ 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 */
- }
-}
-
static void jh7110_jtag_init(void)
{
/*jtag*/
@@ -435,9 +416,6 @@ int board_init(void)
{
enable_caches();
- /*enable hart1-hart4 prefetcher*/
- enable_prefetcher();
-
jh7110_jtag_init();
jh7110_timer_init();