[coreboot-gerrit] New patch to review for coreboot: 350de27 urara: introduce board skeleton

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Mar 26 14:45:22 CET 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9047

-gerrit

commit 350de27f4f9f3e65b53101032d23544b332b67e5
Author: Vadim Bendebury <vbendeb at chromium.org>
Date:   Thu Aug 21 14:19:31 2014 -0700

    urara: introduce board skeleton
    
    Not much is happening yet, when the board is enabled (in the next
    patch), all three components build successfully, the map files show
    them placed where expected and the bopotblock is wrappeed in a BIMG
    header.
    
    BUG=chrome-os-partner:31438
    TEST=when config is enabled, emerge-urara coreboot succeeds. more
        extensive testing to come later
    
    Change-Id: Ib7396189f4bee0fdd6a8ce5c9ab1277806cb5dcc
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
    Original-Commit-Id: 1ca9efe59a7fcb99412410d509a7f9a91b6ef3ec
    Original-Change-Id: I573cfb70f5c1e612dfa0a55d3d22d92f00584c66
    Original-Signed-off-by: Vadim Bendebury <vbendeb at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/214600
    Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
---
 src/mainboard/google/Kconfig             |  3 ++
 src/mainboard/google/urara/Kconfig       | 49 ++++++++++++++++++++++++++++++++
 src/mainboard/google/urara/Makefile.inc  | 23 +++++++++++++++
 src/mainboard/google/urara/devicetree.cb | 26 +++++++++++++++++
 src/mainboard/google/urara/mainboard.c   | 33 +++++++++++++++++++++
 5 files changed, 134 insertions(+)

diff --git a/src/mainboard/google/Kconfig b/src/mainboard/google/Kconfig
index 7b227a4..c193d81 100644
--- a/src/mainboard/google/Kconfig
+++ b/src/mainboard/google/Kconfig
@@ -59,6 +59,8 @@ config BOARD_GOOGLE_STORM
 	bool "Storm"
 config BOARD_GOOGLE_STOUT
 	bool "Stout"
+config BOARD_GOOGLE_URARA
+	bool "Urara"
 config BOARD_GOOGLE_VEYRON_PINKY
 	bool "Veyron_Pinky"
 
@@ -83,6 +85,7 @@ source "src/mainboard/google/samus/Kconfig"
 source "src/mainboard/google/slippy/Kconfig"
 source "src/mainboard/google/storm/Kconfig"
 source "src/mainboard/google/stout/Kconfig"
+source "src/mainboard/google/urara/Kconfig"
 source "src/mainboard/google/veyron_pinky/Kconfig"
 
 config MAINBOARD_VENDOR
diff --git a/src/mainboard/google/urara/Kconfig b/src/mainboard/google/urara/Kconfig
new file mode 100644
index 0000000..67013fa
--- /dev/null
+++ b/src/mainboard/google/urara/Kconfig
@@ -0,0 +1,49 @@
+#
+# This file is part of the coreboot project.
+#
+# Copyright (C) 2014 Imagination Technologies
+#
+# 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
+#
+
+if BOARD_GOOGLE_URARA
+
+config BOARD_SPECIFIC_OPTIONS
+	def_bool y
+	select BOOTBLOCK_CONSOLE
+	select CONFIG_SPI_FLASH_WINBOND
+	select CPU_IMGTEC_DANUBE
+        select COMMON_CBFS_SPI_WRAPPER
+        select MAINBOARD_HAS_BOOTBLOCK_INIT
+	select SPI_FLASH
+
+config MAINBOARD_DIR
+	string
+	default "google/urara"
+
+config MAINBOARD_PART_NUMBER
+	string
+	default "ImgTec Danube Virtual Platform"
+
+config SYS_SDRAM_BASE
+	hex "SDRAM base address"
+	default 0x80000000
+
+config DRAM_SIZE_MB
+	int
+	default 256
+
+endif
diff --git a/src/mainboard/google/urara/Makefile.inc b/src/mainboard/google/urara/Makefile.inc
new file mode 100644
index 0000000..4ce6398
--- /dev/null
+++ b/src/mainboard/google/urara/Makefile.inc
@@ -0,0 +1,23 @@
+#
+# This file is part of the coreboot project.
+#
+# Copyright 2014 Imagination Technologies Ltd.
+#
+# 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
+#
+
+ramstage-y += mainboard.c
+
diff --git a/src/mainboard/google/urara/devicetree.cb b/src/mainboard/google/urara/devicetree.cb
new file mode 100644
index 0000000..6e9849e
--- /dev/null
+++ b/src/mainboard/google/urara/devicetree.cb
@@ -0,0 +1,26 @@
+#
+# This file is part of the coreboot project.
+#
+# Copyright (C) 2014 Imagination Technologies
+#
+# 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
+#
+
+chip soc/imgtec/danube
+	chip drivers/generic/generic # I2C0 controller
+		device i2c 6 on end # Fake component for testing
+	end
+end
diff --git a/src/mainboard/google/urara/mainboard.c b/src/mainboard/google/urara/mainboard.c
new file mode 100644
index 0000000..dd9cfa7
--- /dev/null
+++ b/src/mainboard/google/urara/mainboard.c
@@ -0,0 +1,33 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Imagination Technologies
+ *
+ * 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 <console/console.h>
+#include <device/device.h>
+
+static void mainboard_enable(device_t dev)
+{
+	printk(BIOS_INFO, "Enable Danube device...\n");
+}
+
+struct chip_operations mainboard_ops = {
+	.enable_dev = mainboard_enable,
+};
+



More information about the coreboot-gerrit mailing list