aboutsummaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra132/include
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-08-01 15:11:11 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-03-24 15:28:16 +0100
commit6ecf3f66010ec5611a83f8da77513213fe52be80 (patch)
tree06041ff4170f1447a5e4e00b8f106102065eff6f /src/soc/nvidia/tegra132/include
parentf985621dd5072854ebed5587167d4a918852e975 (diff)
tegra132: add bootblock_mainboard_early_init()
Instead of hard coding certain pieces of a board in the common chipset code provide a way to initialize things early in the bootblock path. Add a bootblock_mainboard_early_init() function before console init to performany necessary mainboard initialization early in the bootblock. BUG=chrome-os-partner:31104 BUG=chrome-os-partner:31105 BUG=chrome-os-partner:29981 BRANCH=None TEST=built both on rush and ryu. rush still behaves the same. Change-Id: Idcf081eeffd189a4e2cbfeb8a4ac5dd0a3d1f838 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 4a523add6de03bea0d88e95b9dbb5e283c629400 Original-Change-Id: I7d93641dff3a961f120e8f0ec2d959182477ef87 Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/210835 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/8877 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia/tegra132/include')
-rw-r--r--src/soc/nvidia/tegra132/include/soc/bootblock.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra132/include/soc/bootblock.h b/src/soc/nvidia/tegra132/include/soc/bootblock.h
new file mode 100644
index 0000000000..e225cc850d
--- /dev/null
+++ b/src/soc/nvidia/tegra132/include/soc/bootblock.h
@@ -0,0 +1,32 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2014 Google Inc.
+ *
+ * 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; version 2 of the License.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __SOC_NVIDIA_TEGRA132_SOC_BOOTBLOCK_H__
+#define __SOC_NVIDIA_TEGRA132_SOC_BOOTBLOCK_H__
+
+#include <bootblock_common.h>
+
+/*
+ * Perform any necessary mainboard-specific work early in bootblock. This is
+ * ran before consoles are brought up so any pad configuration could be done
+ * in this routine to enable console hardware.
+ */
+void bootblock_mainboard_early_init(void);
+
+#endif /* __SOC_NVIDIA_TEGRA132_SOC_BOOTBLOCK_H__ */