summaryrefslogtreecommitdiff
path: root/board/isee
diff options
context:
space:
mode:
authorEnric Balletbò i Serra <eballetbo@gmail.com>2012-03-05 11:32:16 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:23 +0200
commitdc7a9e64bfdd0504e1a985b6a6121ed1b5a015d7 (patch)
tree721e06e9c0cbf444fac0688d3310e60e2b4afa7b /board/isee
parentf2ae6c1a83e194dfd0fc93348efe598353f3c02d (diff)
downloadu-boot-imx-dc7a9e64bfdd0504e1a985b6a6121ed1b5a015d7.zip
u-boot-imx-dc7a9e64bfdd0504e1a985b6a6121ed1b5a015d7.tar.gz
u-boot-imx-dc7a9e64bfdd0504e1a985b6a6121ed1b5a015d7.tar.bz2
OMAP3: igep00x0: Reduce lines of code for IGEP-based boards.
This is rework on config files of IGEP-based boards with the aim to remove duplicated code to be more maintainable. Basically this patch creates a common configuration file for both boards and only sets the specific option in the board config file. On board files the hardcored mach type was replaced in favour of using the CONFIG_MACH_TYPE option. More than 200 duplicated lines have been deleted. Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Diffstat (limited to 'board/isee')
-rw-r--r--board/isee/igep0020/igep0020.c2
-rw-r--r--board/isee/igep0030/igep0030.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/board/isee/igep0020/igep0020.c b/board/isee/igep0020/igep0020.c
index 1919085..971e31b 100644
--- a/board/isee/igep0020/igep0020.c
+++ b/board/isee/igep0020/igep0020.c
@@ -52,8 +52,6 @@ static const u32 gpmc_lan_config[] = {
int board_init(void)
{
gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
- /* board id for Linux */
- gd->bd->bi_arch_number = MACH_TYPE_IGEP0020;
/* boot param addr */
gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
diff --git a/board/isee/igep0030/igep0030.c b/board/isee/igep0030/igep0030.c
index 492d9d4..653c1b5 100644
--- a/board/isee/igep0030/igep0030.c
+++ b/board/isee/igep0030/igep0030.c
@@ -39,8 +39,6 @@ DECLARE_GLOBAL_DATA_PTR;
int board_init(void)
{
gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
- /* board id for Linux */
- gd->bd->bi_arch_number = MACH_TYPE_IGEP0030;
/* boot param addr */
gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);