From da01d9435163a1799fdbf8c60c988bb2f8566f29 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 19 Mar 2014 14:31:23 -0700 Subject: [PATCH] storm: Add generic support skeleton for storm Skeleton for storm mainboard Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/190724 Reviewed-by: Vadim Bendebury Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh (cherry picked from commit ba371d410768fae169da929a23c40139d26a55d3) Removed 'select ARCH_ARM' and added 'select BOARD_ROMSIZE_KB_1024' to the Kconfig. Change-Id: I55c0ad6a47515ba4124b99a69d5776db2365f06e Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6975 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/mainboard/google/Kconfig | 3 ++ src/mainboard/google/storm/Kconfig | 39 ++++++++++++++++++++++++ src/mainboard/google/storm/Makefile.inc | 22 +++++++++++++ src/mainboard/google/storm/devicetree.cb | 22 +++++++++++++ src/mainboard/google/storm/mainboard.c | 35 +++++++++++++++++++++ src/mainboard/google/storm/romstage.c | 30 ++++++++++++++++++ 6 files changed, 151 insertions(+) create mode 100644 src/mainboard/google/storm/Kconfig create mode 100644 src/mainboard/google/storm/Makefile.inc create mode 100644 src/mainboard/google/storm/devicetree.cb create mode 100644 src/mainboard/google/storm/mainboard.c create mode 100644 src/mainboard/google/storm/romstage.c diff --git a/src/mainboard/google/Kconfig b/src/mainboard/google/Kconfig index 95420fc3d2..de1d4c7430 100644 --- a/src/mainboard/google/Kconfig +++ b/src/mainboard/google/Kconfig @@ -49,6 +49,8 @@ config BOARD_GOOGLE_SAMUS bool "Samus" config BOARD_GOOGLE_SLIPPY bool "Slippy" +config BOARD_GOOGLE_STORM + bool "Storm" config BOARD_GOOGLE_STOUT bool "Stout" @@ -68,6 +70,7 @@ source "src/mainboard/google/peppy/Kconfig" source "src/mainboard/google/rambi/Kconfig" source "src/mainboard/google/samus/Kconfig" source "src/mainboard/google/slippy/Kconfig" +source "src/mainboard/google/storm/Kconfig" source "src/mainboard/google/stout/Kconfig" config MAINBOARD_VENDOR diff --git a/src/mainboard/google/storm/Kconfig b/src/mainboard/google/storm/Kconfig new file mode 100644 index 0000000000..809f4f03c0 --- /dev/null +++ b/src/mainboard/google/storm/Kconfig @@ -0,0 +1,39 @@ +## +## 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 +## + +if BOARD_GOOGLE_STORM + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + select SOC_QC_IPQ806X + select BOARD_ROMSIZE_KB_1024 + +config MAINBOARD_DIR + string + default google/storm + +config MAINBOARD_PART_NUMBER + string + default "Storm" + +config DRAM_SIZE_MB + int + default 2048 + +endif # BOARD_GOOGLE_STORM diff --git a/src/mainboard/google/storm/Makefile.inc b/src/mainboard/google/storm/Makefile.inc new file mode 100644 index 0000000000..e0f5501f5d --- /dev/null +++ b/src/mainboard/google/storm/Makefile.inc @@ -0,0 +1,22 @@ +## +## 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 +## + +romstage-y += romstage.c + +ramstage-y += mainboard.c diff --git a/src/mainboard/google/storm/devicetree.cb b/src/mainboard/google/storm/devicetree.cb new file mode 100644 index 0000000000..40ba9c8775 --- /dev/null +++ b/src/mainboard/google/storm/devicetree.cb @@ -0,0 +1,22 @@ +## +## 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 +## + +chip soc/qualcomm/ipq806x + device cpu_cluster 0 on end +end diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c new file mode 100644 index 0000000000..0b0182fceb --- /dev/null +++ b/src/mainboard/google/storm/mainboard.c @@ -0,0 +1,35 @@ +/* + * 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 +#include + +static void mainboard_init(device_t dev) +{ +} + +static void mainboard_enable(device_t dev) +{ + dev->ops->init = &mainboard_init; +} + +struct chip_operations mainboard_ops = { + .name = "storm", + .enable_dev = mainboard_enable, +}; diff --git a/src/mainboard/google/storm/romstage.c b/src/mainboard/google/storm/romstage.c new file mode 100644 index 0000000000..cf78e44225 --- /dev/null +++ b/src/mainboard/google/storm/romstage.c @@ -0,0 +1,30 @@ +/* + * 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 + */ + +#include +#include +#include + +void main(void) +{ + void *entry; + + entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/coreboot_ram"); + stage_exit(entry); +}