From a83d065d660a26fe71ed79879c25f84a1b669f69 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 10 Oct 2013 02:22:54 -0700 Subject: [PATCH] nyan: Add a mainboard specific bootblock. We need somewhere to put mainboard specific bootblock initialization. BUG=None TEST=Built and booted into the bootblock on nyan. BRANCH=None Change-Id: Ief409baff5ae67871879291c7ff0533f19ea6e56 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/172582 Reviewed-by: Ronald Minnich Reviewed-by: Julius Werner Tested-by: Gabe Black Commit-Queue: Gabe Black --- src/mainboard/google/nyan/Kconfig | 1 + src/mainboard/google/nyan/Makefile.inc | 2 ++ src/mainboard/google/nyan/bootblock.c | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/mainboard/google/nyan/bootblock.c diff --git a/src/mainboard/google/nyan/Kconfig b/src/mainboard/google/nyan/Kconfig index b1f1ca37a0..d936776091 100644 --- a/src/mainboard/google/nyan/Kconfig +++ b/src/mainboard/google/nyan/Kconfig @@ -23,6 +23,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy def_bool y select ARCH_ARM select SOC_NVIDIA_TEGRA124 + select MAINBOARD_HAS_BOOTBLOCK_INIT config MAINBOARD_DIR string diff --git a/src/mainboard/google/nyan/Makefile.inc b/src/mainboard/google/nyan/Makefile.inc index 3cf7dd249c..2dfd2a3003 100644 --- a/src/mainboard/google/nyan/Makefile.inc +++ b/src/mainboard/google/nyan/Makefile.inc @@ -27,6 +27,8 @@ $(obj)/generated/bct.cfg: subdirs-y += bct +bootblock-y += bootblock.c + romstage-y += romstage.c ramstage-y += mainboard.c diff --git a/src/mainboard/google/nyan/bootblock.c b/src/mainboard/google/nyan/bootblock.c new file mode 100644 index 0000000000..f0753d4555 --- /dev/null +++ b/src/mainboard/google/nyan/bootblock.c @@ -0,0 +1,24 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2013 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 + */ + +#include + +void bootblock_mainboard_init(void) +{ +}