mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
tegra: i2c: Initialise I2C on Nvidia boards
This enables I2C on all Nvidia boards including Seaboard and Harmony. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
2e33559f3d
commit
cb445fb4cc
@ -34,6 +34,7 @@
|
|||||||
#include <asm/arch/uart.h>
|
#include <asm/arch/uart.h>
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <asm/arch/usb.h>
|
#include <asm/arch/usb.h>
|
||||||
|
#include <i2c.h>
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
@ -75,6 +76,12 @@ int board_init(void)
|
|||||||
#endif
|
#endif
|
||||||
/* boot param addr */
|
/* boot param addr */
|
||||||
gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
|
gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
|
||||||
|
#ifdef CONFIG_TEGRA_I2C
|
||||||
|
#ifndef CONFIG_SYS_I2C_INIT_BOARD
|
||||||
|
#error "You must define CONFIG_SYS_I2C_INIT_BOARD to use i2c on Nvidia boards"
|
||||||
|
#endif
|
||||||
|
i2c_init_board();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_USB_EHCI_TEGRA
|
#ifdef CONFIG_USB_EHCI_TEGRA
|
||||||
pin_mux_usb();
|
pin_mux_usb();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user