diff options
| author | Olof Johansson <olof@lixom.net> | 2012-09-05 15:35:48 -0700 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-09-05 15:35:48 -0700 | 
| commit | 1875962377574b4edb7b164001e3e341c25290d5 (patch) | |
| tree | 374a5299403ec21e2d9a66a6548ce876a388b589 /arch/c6x/include/asm/cache.h | |
| parent | 5cbee140a28c2746449ae31e85738043ae4da927 (diff) | |
| parent | c88a79a7789b2909ad1cf69ea2c9142030bbd6f4 (diff) | |
| download | olio-linux-3.10-1875962377574b4edb7b164001e3e341c25290d5.tar.xz olio-linux-3.10-1875962377574b4edb7b164001e3e341c25290d5.zip  | |
Merge branch 'soc-core' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/dt
* 'soc-core' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: mach-shmobile: Add compilation support for dtbs using 'make dtbs'
  + sync to 3.6-rc3
Diffstat (limited to 'arch/c6x/include/asm/cache.h')
| -rw-r--r-- | arch/c6x/include/asm/cache.h | 16 | 
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/c6x/include/asm/cache.h b/arch/c6x/include/asm/cache.h index 6d521d96d94..09c5a0f5f4d 100644 --- a/arch/c6x/include/asm/cache.h +++ b/arch/c6x/include/asm/cache.h @@ -1,7 +1,7 @@  /*   *  Port on Texas Instruments TMS320C6x architecture   * - *  Copyright (C) 2005, 2006, 2009, 2010 Texas Instruments Incorporated + *  Copyright (C) 2005, 2006, 2009, 2010, 2012 Texas Instruments Incorporated   *  Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)   *   *  This program is free software; you can redistribute it and/or modify @@ -16,9 +16,14 @@  /*   * Cache line size   */ -#define L1D_CACHE_BYTES   64 -#define L1P_CACHE_BYTES   32 -#define L2_CACHE_BYTES	  128 +#define L1D_CACHE_SHIFT   6 +#define L1D_CACHE_BYTES   (1 << L1D_CACHE_SHIFT) + +#define L1P_CACHE_SHIFT   5 +#define L1P_CACHE_BYTES   (1 << L1P_CACHE_SHIFT) + +#define L2_CACHE_SHIFT    7 +#define L2_CACHE_BYTES    (1 << L2_CACHE_SHIFT)  /*   * L2 used as cache @@ -29,7 +34,8 @@   * For practical reasons the L1_CACHE_BYTES defines should not be smaller than   * the L2 line size   */ -#define L1_CACHE_BYTES        L2_CACHE_BYTES +#define L1_CACHE_SHIFT        L2_CACHE_SHIFT +#define L1_CACHE_BYTES        (1 << L1_CACHE_SHIFT)  #define L2_CACHE_ALIGN_LOW(x) \  	(((x) & ~(L2_CACHE_BYTES - 1)))  |