Commit fc5ad4778d91dabbeca3bc05a78cb669686f0a9c
Committed by
Stefano Babic
1 parent
e469719c8b
Exists in
v2017.01-smarct4x
and in
30 other branches
imx: cpu: move common chip revision id's
Move common chip revision id's to main cpu header file mx25 generic include cpu header for chip revision Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Showing 5 changed files with 13 additions and 19 deletions Side-by-side Diff
arch/arm/cpu/arm926ejs/mx25/generic.c
arch/arm/include/asm/arch-imx/cpu.h
... | ... | @@ -27,6 +27,18 @@ |
27 | 27 | #define MXC_SOC_MX6 0x60 |
28 | 28 | #define MXC_SOC_MX7 0x70 |
29 | 29 | |
30 | +#define CHIP_REV_1_0 0x10 | |
31 | +#define CHIP_REV_1_1 0x11 | |
32 | +#define CHIP_REV_1_2 0x12 | |
33 | +#define CHIP_REV_1_5 0x15 | |
34 | +#define CHIP_REV_2_0 0x20 | |
35 | +#define CHIP_REV_2_5 0x25 | |
36 | +#define CHIP_REV_3_0 0x30 | |
37 | + | |
38 | +#define BOARD_REV_1_0 0x0 | |
39 | +#define BOARD_REV_2_0 0x1 | |
40 | +#define BOARD_VER_OFFSET 0x8 | |
41 | + | |
30 | 42 | #define CS0_128 0 |
31 | 43 | #define CS0_64M_CS1_64M 1 |
32 | 44 | #define CS0_64M_CS1_32M_CS2_32M 2 |
arch/arm/include/asm/arch-mx25/imx-regs.h
arch/arm/include/asm/arch-mx5/imx-regs.h
... | ... | @@ -291,17 +291,6 @@ |
291 | 291 | #define DP_MFD_216 (4 - 1) |
292 | 292 | #define DP_MFN_216 3 |
293 | 293 | |
294 | -#define CHIP_REV_1_0 0x10 | |
295 | -#define CHIP_REV_1_1 0x11 | |
296 | -#define CHIP_REV_2_0 0x20 | |
297 | -#define CHIP_REV_2_5 0x25 | |
298 | -#define CHIP_REV_3_0 0x30 | |
299 | - | |
300 | -#define BOARD_REV_1_0 0x0 | |
301 | -#define BOARD_REV_2_0 0x1 | |
302 | - | |
303 | -#define BOARD_VER_OFFSET 0x8 | |
304 | - | |
305 | 294 | #define IMX_IIM_BASE (IIM_BASE_ADDR) |
306 | 295 | |
307 | 296 | #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) |
arch/arm/include/asm/arch-mx6/imx-regs.h
... | ... | @@ -325,10 +325,6 @@ |
325 | 325 | #define WDOG3_BASE_ADDR (is_cpu_type(MXC_CPU_MX6UL) ? \ |
326 | 326 | MX6UL_WDOG3_BASE_ADDR : MX6SX_WDOG3_BASE_ADDR) |
327 | 327 | |
328 | -#define CHIP_REV_1_0 0x10 | |
329 | -#define CHIP_REV_1_2 0x12 | |
330 | -#define CHIP_REV_1_5 0x15 | |
331 | -#define CHIP_REV_2_0 0x20 | |
332 | 328 | #if !(defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL)) |
333 | 329 | #define IRAM_SIZE 0x00040000 |
334 | 330 | #else |