diff options
author | Tom Warren <twarren.nvidia@gmail.com> | 2012-12-11 13:34:17 +0000 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2013-01-16 13:40:08 -0700 |
commit | 6d6c0baebe14fd94b5462f098ce03b532e561759 (patch) | |
tree | a2988fc9f99d65eec1159ef6a665aa544b88fbc2 /board/nvidia/common/board.c | |
parent | 79ce91badeec7c1d0789d16800c2cd679f9d006a (diff) | |
download | u-boot-imx-6d6c0baebe14fd94b5462f098ce03b532e561759.zip u-boot-imx-6d6c0baebe14fd94b5462f098ce03b532e561759.tar.gz u-boot-imx-6d6c0baebe14fd94b5462f098ce03b532e561759.tar.bz2 |
Tegra30: Add generic Tegra30 build support
This patch adds basic Tegra30 (T30) build support - no specific
board is targeted.
Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'board/nvidia/common/board.c')
-rw-r--r-- | board/nvidia/common/board.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 819c120..a4af539 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -26,22 +26,30 @@ #include <linux/compiler.h> #include <asm/io.h> #include <asm/arch/clock.h> +#ifdef CONFIG_LCD #include <asm/arch/display.h> -#include <asm/arch/emc.h> +#endif #include <asm/arch/funcmux.h> #include <asm/arch/pinmux.h> #include <asm/arch/pmu.h> +#ifdef CONFIG_PWM_TEGRA #include <asm/arch/pwm.h> +#endif #include <asm/arch/tegra.h> -#include <asm/arch/usb.h> #include <asm/arch-tegra/board.h> #include <asm/arch-tegra/clk_rst.h> #include <asm/arch-tegra/pmc.h> #include <asm/arch-tegra/sys_proto.h> #include <asm/arch-tegra/uart.h> #include <asm/arch-tegra/warmboot.h> -#include <spi.h> +#ifdef CONFIG_TEGRA_CLOCK_SCALING +#include <asm/arch/emc.h> +#endif +#ifdef CONFIG_USB_EHCI_TEGRA +#include <asm/arch/usb.h> +#endif #include <i2c.h> +#include <spi.h> #include "emc.h" DECLARE_GLOBAL_DATA_PTR; @@ -188,6 +196,9 @@ void gpio_early_init(void) __attribute__((weak, alias("__gpio_early_init"))); int board_early_init_f(void) { +#if defined(CONFIG_TEGRA30) + pinmux_init(); +#endif board_init_uart_f(); /* Initialize periph GPIOs */ |