diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot/2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot/2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/recipes-bsp/u-boot/u-boot/2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch b/recipes-bsp/u-boot/u-boot/2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch deleted file mode 100644 index b79a8844..00000000 --- a/recipes-bsp/u-boot/u-boot/2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 31d430d8db335b7c3fea08b6aa8309b90b8f2cb9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Rini <trini@ti.com> | ||
3 | Date: Tue, 8 Nov 2011 08:07:47 +0100 | ||
4 | Subject: [PATCH 8/8] HACK: am335x evm: turn d-cache on globally, turn it off when doing nfs stuff | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | board/ti/am335x/evm.c | 12 ++++++++++++ | ||
9 | include/configs/am335x_evm.h | 1 + | ||
10 | 2 files changed, 13 insertions(+), 0 deletions(-) | ||
11 | |||
12 | diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c | ||
13 | index bc1119e..e64626a 100644 | ||
14 | --- a/board/ti/am335x/evm.c | ||
15 | +++ b/board/ti/am335x/evm.c | ||
16 | @@ -1041,3 +1041,15 @@ U_BOOT_CMD( | ||
17 | |||
18 | #endif /* CONFIG_NAND_TI81XX */ | ||
19 | #endif /* CONFIG_SPL_BUILD */ | ||
20 | + | ||
21 | +/* | ||
22 | + * Not all drivers we use (such as ethernet) are dcache safe. But | ||
23 | + * we need cache on to boot quickly enough. | ||
24 | + */ | ||
25 | +#ifndef CONFIG_SYS_DCACHE_OFF | ||
26 | +void enable_caches(void) | ||
27 | +{ | ||
28 | + /* Enable D-cache. I-cache is already enabled in start.S */ | ||
29 | + dcache_enable(); | ||
30 | +} | ||
31 | +#endif | ||
32 | diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h | ||
33 | index 8bf3ff1..58fa2f6 100755 | ||
34 | --- a/include/configs/am335x_evm.h | ||
35 | +++ b/include/configs/am335x_evm.h | ||
36 | @@ -119,6 +119,7 @@ | ||
37 | "bootm ${loadaddr}\0" \ | ||
38 | "net_boot=echo Booting from network ...; " \ | ||
39 | "setenv autoload no; " \ | ||
40 | + "dcache off; " \ | ||
41 | "dhcp; " \ | ||
42 | "tftp ${loadaddr} ${bootfile}; " \ | ||
43 | "run net_args; " \ | ||
44 | -- | ||
45 | 1.7.2.5 | ||
46 | |||