diff options
| author | Wolfgang Denk <wd@denx.de> | 2012-04-16 23:01:12 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2012-04-16 23:01:12 +0200 | 
| commit | db39f24151627733d6166c5e9a875fe8b356fa72 (patch) | |
| tree | d091e23af47b9ae848c6f69144f941d9f072aae6 /arch/arm/cpu/arm926ejs/cache.c | |
| parent | b64c2420e02a7d068aae6e0d069f270feb3cdc9a (diff) | |
| parent | 2694bb9bcc8ca9636faf38c866dda7bf0529e35f (diff) | |
| download | olio-uboot-2014.01-db39f24151627733d6166c5e9a875fe8b356fa72.tar.xz olio-uboot-2014.01-db39f24151627733d6166c5e9a875fe8b356fa72.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-arm
* 'master' of git://git.denx.de/u-boot-arm:
  ARM926EJS: Fix cache.c to comply with checkpatch.pl
  ARM926EJS: Make asm routines volatile in cache ops
  MX35: mx35pdk: wrong board revision
  ARM1136: MX35: Make asm routines volatile in cache ops
  ARM: add u-boot.imx as target for i.MX SOCs
  M28: Pull out CONFIG_APBH_DMA so it's always enabled
  DMA: Split the APBH DMA init into block and channel init
  imx: Return gpio_set_value in gpio_direction_output
  imx: Use GPIO_TO_PORT macro in the gpio driver instead of (gpio >> 5)
  imx: Add GPIO_TO_PORT macro in the mxc_gpio driver
  imx: Remove unneeded/repititive definitions from imx headers
  i.MX28: Allow coexistence of PIO and DMA mode for SD/MMC
  MX31: mx31pdk: drop enable_caches from board file
  i.MX28: Fix initial stack pointer position
  mx35: mx35pdk: fix when cache functions are linked
  mx35: flea3: fix when cache functions are linked
  ARM: 926ejs: use debug() for misaligned addresses
  ARM1136: add cache flush and invalidate operations
  mx6qsabrelite: Fix the serial console port
  mx6qsabrelite: Add boot switch setting information into the README
  i.MX6: mx6qsabrelite: add cache commands if cache is enabled
  i.MX6: implement enable_caches()
  i.MX6: define CACHELINE_SIZE
  MX53: DDR: Fix ZQHWCTRL field TZQ_CS
  mx28evk: Add a README file
  mx28: Split the README into a common part and a m28 specific part
  tricorder: Load kernel from ubifs
  tricorder: Add UBIFS
  cm-t35: fix Ethernet reset timing
  hawkboard: Add CONFIG_SPL_LIBGENERIC_SUPPORT
  BeagleBoard: Remove userbutton command and use gpio command instead
  OMAP: Move omap1510inn to Unmaintained / Orphaned
Diffstat (limited to 'arch/arm/cpu/arm926ejs/cache.c')
| -rw-r--r-- | arch/arm/cpu/arm926ejs/cache.c | 19 | 
1 files changed, 9 insertions, 10 deletions
| diff --git a/arch/arm/cpu/arm926ejs/cache.c b/arch/arm/cpu/arm926ejs/cache.c index 5b23e3a71..2740ad7e2 100644 --- a/arch/arm/cpu/arm926ejs/cache.c +++ b/arch/arm/cpu/arm926ejs/cache.c @@ -30,7 +30,7 @@  void invalidate_dcache_all(void)  { -	asm volatile("mcr p15, 0, %0, c7, c6, 0\n"::"r"(0)); +	asm volatile("mcr p15, 0, %0, c7, c6, 0\n" : : "r"(0));  }  void flush_dcache_all(void) @@ -40,7 +40,7 @@ void flush_dcache_all(void)  		"mrc p15, 0, r15, c7, c14, 3\n"  		"bne 0b\n"  		"mcr p15, 0, %0, c7, c10, 4\n" -		::"r"(0):"memory" +		 : : "r"(0) : "memory"  	);  } @@ -55,7 +55,7 @@ static int check_cache_range(unsigned long start, unsigned long stop)  		ok = 0;  	if (!ok) -		printf("CACHE: Misaligned operation at range [%08lx, %08lx]\n", +		debug("CACHE: Misaligned operation at range [%08lx, %08lx]\n",  			start, stop);  	return ok; @@ -67,7 +67,7 @@ void invalidate_dcache_range(unsigned long start, unsigned long stop)  		return;  	while (start < stop) { -		asm volatile("mcr p15, 0, %0, c7, c6, 1\n"::"r"(start)); +		asm volatile("mcr p15, 0, %0, c7, c6, 1\n" : : "r"(start));  		start += CONFIG_SYS_CACHELINE_SIZE;  	}  } @@ -78,11 +78,11 @@ void flush_dcache_range(unsigned long start, unsigned long stop)  		return;  	while (start < stop) { -		asm volatile("mcr p15, 0, %0, c7, c14, 1\n"::"r"(start)); +		asm volatile("mcr p15, 0, %0, c7, c14, 1\n" : : "r"(start));  		start += CONFIG_SYS_CACHELINE_SIZE;  	} -	asm("mcr p15, 0, %0, c7, c10, 4\n"::"r"(0)); +	asm volatile("mcr p15, 0, %0, c7, c10, 4\n" : : "r"(0));  }  void flush_cache(unsigned long start, unsigned long size) @@ -114,8 +114,7 @@ void flush_cache(unsigned long start, unsigned long size)  /*   * Stub implementations for l2 cache operations   */ -void __l2_cache_disable(void) -{ -} +void __l2_cache_disable(void) {} +  void l2_cache_disable(void) -        __attribute__((weak, alias("__l2_cache_disable"))); +	__attribute__((weak, alias("__l2_cache_disable"))); |