diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2011-07-03 23:00:21 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-03 22:40:45 +0200 |
commit | 2141e14428924792d5d0f1770d7c03bdc892208c (patch) | |
tree | 7e2f143406218a0c4853e03135ba528544434316 /board/ti/omap1610inn/omap1610innovator.c | |
parent | 221a0666db6fd127f0a82d7e036c7709a9094d19 (diff) | |
download | u-boot-imx-2141e14428924792d5d0f1770d7c03bdc892208c.zip u-boot-imx-2141e14428924792d5d0f1770d7c03bdc892208c.tar.gz u-boot-imx-2141e14428924792d5d0f1770d7c03bdc892208c.tar.bz2 |
arm: omap: innovator: use common code for machine type
Innovator and H2 boards used machine_is_* macros for setting the machine
type. These macros are expanded in compile time and thus leaves
unreachable code (though gcc might optimize it).
Switch them to use common code for machine type setting.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/ti/omap1610inn/omap1610innovator.c')
-rw-r--r-- | board/ti/omap1610inn/omap1610innovator.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/board/ti/omap1610inn/omap1610innovator.c b/board/ti/omap1610inn/omap1610innovator.c index 44818bb..16e8237 100644 --- a/board/ti/omap1610inn/omap1610innovator.c +++ b/board/ti/omap1610inn/omap1610innovator.c @@ -63,13 +63,6 @@ static inline void delay (unsigned long loops) int board_init (void) { - if (machine_is_omap_h2()) - gd->bd->bi_arch_number = MACH_TYPE_OMAP_H2; - else if (machine_is_omap_innovator()) - gd->bd->bi_arch_number = MACH_TYPE_OMAP_INNOVATOR; - else - gd->bd->bi_arch_number = MACH_TYPE_OMAP_GENERIC; - /* adress of boot parameters */ gd->bd->bi_boot_params = 0x10000100; |