X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2FBuR%2Ftseries%2Fboard.c;h=89e989f2467411341f34d3f437ee5f3d595f319a;hb=0f00c38f017feb7f7e710b320e22560d1bd4add7;hp=66747eb5d3518cbe83b6bfde38f25054465b9d75;hpb=fbd5aeda481526c5c23cb913461378423bdb2137;p=u-boot diff --git a/board/BuR/tseries/board.c b/board/BuR/tseries/board.c index 66747eb5d3..89e989f246 100644 --- a/board/BuR/tseries/board.c +++ b/board/BuR/tseries/board.c @@ -28,15 +28,14 @@ #include #include "../common/bur_common.h" #include +#include DECLARE_GLOBAL_DATA_PTR; /* --------------------------------------------------------------------------*/ /* -- defines for GPIO -- */ -#define ETHLED_ORANGE (96+16) /* GPIO3_16 */ #define REPSWITCH (0+20) /* GPIO0_20 */ - #if defined(CONFIG_SPL_BUILD) /* TODO: check ram-timing ! */ static const struct ddr_data ddr3_data = { @@ -124,6 +123,10 @@ void am33xx_spl_board_init(void) /* setup LCD-Pixel Clock */ writel(0x2, &cmdpll->clklcdcpixelclk); /* clock comes from perPLL M2 */ + /* setup I2C */ + enable_i2c_pin_mux(); + i2c_set_bus_num(0); + i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE); pmicsetup(0); } @@ -144,6 +147,9 @@ void sdram_init(void) /* Basic board specific setup. Pinmux has been handled already. */ int board_init(void) { +#if defined(CONFIG_HW_WATCHDOG) + hw_watchdog_init(); +#endif gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_NAND gpmc_init();