From d45f815d51db77a592cd0e3f07440877a5c4f9ee Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Mon, 2 Apr 2012 17:15:53 +0200 Subject: merge/overwrite of soures without commit log --- x-loader/lib/board.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'x-loader/lib/board.c') diff --git a/x-loader/lib/board.c b/x-loader/lib/board.c index 88fd381..70cd17a 100644 --- a/x-loader/lib/board.c +++ b/x-loader/lib/board.c @@ -49,8 +49,10 @@ int print_info(void) static int init_func_i2c (void) { #ifdef CONFIG_MMC +#ifdef CONFIG_DRIVER_OMAP34XX_I2C i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE); #endif +#endif return 0; } @@ -65,8 +67,10 @@ init_fnc_t *init_sequence[] = { print_info, nand_init, /* board specific nand init */ #ifdef CONFIG_MMC +#ifdef CONFIG_DRIVER_OMAP34XX_I2C init_func_i2c, #endif +#endif NULL, }; @@ -87,6 +91,7 @@ void start_armboot (void) misc_init_r(); buf = (uchar*) CFG_LOADADDR; + *(int *)buf = 0xffffffff; #ifdef CONFIG_MMC /* first try mmc */ @@ -104,6 +109,7 @@ void start_armboot (void) if (buf == (uchar *)CFG_LOADADDR) { /* if no u-boot on mmc, try onenand or nand, depending upon sysboot */ if (get_mem_type() == GPMC_ONENAND){ +#ifdef CFG_ONENAND #ifdef CFG_PRINTF printf("Loading u-boot.bin from onenand\n"); #endif @@ -111,7 +117,9 @@ void start_armboot (void) if (!onenand_read_block(buf, i)) buf += ONENAND_BLOCK_SIZE; } +#endif } else if (get_mem_type() == GPMC_NAND){ +#ifdef CFG_NAND_K9F1G08R0A #ifdef CFG_PRINTF printf("Loading u-boot.bin from nand\n"); #endif @@ -119,6 +127,7 @@ void start_armboot (void) if (!nand_read_block(buf, i)) buf += NAND_BLOCK_SIZE; /* advance buf ptr */ } +#endif } } -- cgit v1.1