diff options
author | Tom Warren <twarren@nvidia.com> | 2011-09-01 16:49:30 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-09-15 12:42:37 -0700 |
commit | 615217e1f756332820e3aed926a26ede9451a2be (patch) | |
tree | ab93ea89979666e020b66948937c07a1f1f22c31 /arch/arm/cpu | |
parent | e26a6be71dd36659af343b9f0ec14ea981d23692 (diff) |
tegra3: Add basic Tegra30 support
This adds the most basic Tegra30 support to U-Boot, by making use of
existing tegra2 code and adding what is necessary to build.
BUG=chromium-os:19004
TEST=build and boot on T30 board
Change-Id: If75599b2e76dbec3281fffb8a244b6145e9648cc
Reviewed-on: http://gerrit.chromium.org/gerrit/7130
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/tegra3/Makefile | 52 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/tegra3/board.c | 36 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/tegra3/sys_info.c | 35 |
3 files changed, 123 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra3/Makefile b/arch/arm/cpu/armv7/tegra3/Makefile new file mode 100644 index 0000000000..98468450c8 --- /dev/null +++ b/arch/arm/cpu/armv7/tegra3/Makefile @@ -0,0 +1,52 @@ +# +# (C) Copyright 2010,2011 Nvidia Corporation. +# +# (C) Copyright 2000-2003 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# The AVP is ARMv4T architecture so we must use special compiler +# flags for any files it might use. + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).o + +COBJS-y := board.o sys_info.o + +COBJS := $(COBJS-y) + +SRCS := $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(call cmd_link_o_target, $(OBJS)) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +######################################################################### diff --git a/arch/arm/cpu/armv7/tegra3/board.c b/arch/arm/cpu/armv7/tegra3/board.c new file mode 100644 index 0000000000..861174e89e --- /dev/null +++ b/arch/arm/cpu/armv7/tegra3/board.c @@ -0,0 +1,36 @@ +/* + * (C) Copyright 2010,2011 + * NVIDIA Corporation <www.nvidia.com> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> +#include <asm/io.h> +#include <asm/arch/sys_proto.h> +#include <asm/arch/tegra.h> +#include <asm/arch-tegra/board.h> + +DECLARE_GLOBAL_DATA_PTR; + +unsigned int board_query_sdram_size(void) +{ + /* TBD - check odmdata in PMC scratch reg */ + return 0x40000000; /* Cardhu = 1GB */ +} diff --git a/arch/arm/cpu/armv7/tegra3/sys_info.c b/arch/arm/cpu/armv7/tegra3/sys_info.c new file mode 100644 index 0000000000..a9ee6cdb2a --- /dev/null +++ b/arch/arm/cpu/armv7/tegra3/sys_info.c @@ -0,0 +1,35 @@ +/* + * (C) Copyright 2010,2011 + * NVIDIA Corporation <www.nvidia.com> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> + +#ifdef CONFIG_DISPLAY_CPUINFO +/* Print CPU information */ +int print_cpuinfo(void) +{ + puts("TEGRA3\n"); + + /* TBD: Add printf of major/minor rev info, stepping, etc. */ + return 0; +} +#endif /* CONFIG_DISPLAY_CPUINFO */ |