diff options
author | Mike Frysinger | 2007-11-21 09:04:49 +0100 |
---|---|---|
committer | Bryan Wu | 2007-11-21 09:04:49 +0100 |
commit | b5f87aa41db4d5cd64ca77f10b33fdfba61a47d7 (patch) | |
tree | 8cee1370e02f0dbda1d2dba1ebe8491154069b49 /include/asm-blackfin | |
parent | Blackfin arch: fix building for BF542 processors which only have 1 TWI (diff) | |
download | kernel-qcow2-linux-b5f87aa41db4d5cd64ca77f10b33fdfba61a47d7.tar.gz kernel-qcow2-linux-b5f87aa41db4d5cd64ca77f10b33fdfba61a47d7.tar.xz kernel-qcow2-linux-b5f87aa41db4d5cd64ca77f10b33fdfba61a47d7.zip |
Blackfin arch: cleanup BF54x header file and add BF547 definition
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r-- | include/asm-blackfin/mach-bf548/bf548.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/include/asm-blackfin/mach-bf548/bf548.h b/include/asm-blackfin/mach-bf548/bf548.h index 7e6d349beb08..e748588e8930 100644 --- a/include/asm-blackfin/mach-bf548/bf548.h +++ b/include/asm-blackfin/mach-bf548/bf548.h @@ -106,24 +106,22 @@ #define AMGCTLVAL (V_AMBEN | V_AMCKEN) -#ifdef CONFIG_BF542 -#define CPU "BF542" -#define CPUID 0x027c8000 -#endif -#ifdef CONFIG_BF544 -#define CPU "BF544" -#define CPUID 0x027c8000 -#endif -#ifdef CONFIG_BF548 -#define CPU "BF548" -#define CPUID 0x027c6000 -#endif -#ifdef CONFIG_BF549 -#define CPU "BF549" -#endif -#ifndef CPU -#define CPU "UNKNOWN" -#define CPUID 0x0 +#if defined(CONFIG_BF542) +# define CPU "BF542" +# define CPUID 0x027c8000 +#elif defined(CONFIG_BF544) +# define CPU "BF544" +# define CPUID 0x027c8000 +#elif defined(CONFIG_BF547) +# define CPU "BF547" +#elif defined(CONFIG_BF548) +# define CPU "BF548" +# define CPUID 0x027c6000 +#elif defined(CONFIG_BF549) +# define CPU "BF549" +#else +# define CPU "UNKNOWN" +# define CPUID 0x0 #endif #endif /* __MACH_BF48_H__ */ |