Skip to content

Commit

Permalink
Enable L2 cache is now the default. Invert sense of L2 flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Cobley committed Mar 7, 2012
1 parent 953f57f commit 2fe771a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-bcm2708/Kconfig
Expand Up @@ -22,11 +22,11 @@ config BCM2708_VCMEM
help
Helper for videocore memory access and total size allocation.

config BCM2708_L2CACHE
bool "Videocore L2 cache"
config BCM2708_NOL2CACHE
bool "Videocore L2 cache disable"
depends on MACH_BCM2708
default n
help
Allow ARM to use GPU's L2 cache. Requires enable_l2cache in config.txt.
Do not allow ARM to use GPU's L2 cache. Requires disable_l2cache in config.txt.

endmenu
6 changes: 3 additions & 3 deletions arch/arm/mach-bcm2708/include/mach/memory.h
Expand Up @@ -35,10 +35,10 @@
#define PHYS_OFFSET UL(0x00000000)
#define ARMMEM_OFFSET UL(0x00000000) /* offset in VC of ARM memory */

#ifdef CONFIG_BCM2708_L2CACHE
#define _REAL_BUS_OFFSET UL(0x40000000) /* use L2 cache */
#else
#ifdef CONFIG_BCM2708_NOL2CACHE
#define _REAL_BUS_OFFSET UL(0xC0000000) /* don't use L1 or L2 caches */
#else
#define _REAL_BUS_OFFSET UL(0x40000000) /* use L2 cache */
#endif

/* We're using the memory at 64M in the VideoCore for Linux - this adjustment
Expand Down

0 comments on commit 2fe771a

Please sign in to comment.