Skip to content

Commit

Permalink
Blackfin arch: cleanup BF54x header file and add BF547 definition
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 21, 2007
1 parent 7160e95 commit b5f87aa
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions include/asm-blackfin/mach-bf548/bf548.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit b5f87aa

Please sign in to comment.