summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2014-07-10 15:24:18 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-03-05 17:33:38 +0100
commitf752d013b0cede9e7d4a8463827b6ef3a8238e0d (patch)
treea497e435dd108ea2cd9cec2c4ae354cdeaf22d6c /src
parent30cda7e83f06f5a84eb9dfea3be9f435bb36d392 (diff)
storm: Provide ability to build ap148 variant
With BOARD_VARIANT_AP148 configuration option enabled the image will be built for 512MB DRAM instead of 1024MB and the mainboard_part_number field in the lb_mainboard entry will be set to "AP148" instead of "Storm". BUG=chrome-os-partner:30440 TEST=manual . built and booted both AP148 and proto0 all the way to reading the kernel . verified that the config file includes correct part number and memory size . verified proper machine IDs reportted when starting the kernel Original-Change-Id: Ie609544a460fc991e66e8b95e8d7a3ed5e845f7b Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/207427 Original-Reviewed-by: Trevor Bourget <tbourget@codeaurora.org> Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> (cherry picked from commit a80ab00f27eef9e3aa2f761659d6945d6fce2ef6) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I477e672dc4f48fa9c9893bf0759704501ea07b1a Reviewed-on: http://review.coreboot.org/8590 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/storm/Kconfig6
-rw-r--r--src/mainboard/google/storm/mainboard.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/storm/Kconfig b/src/mainboard/google/storm/Kconfig
index 5e34802ddf..10c0f1bf3e 100644
--- a/src/mainboard/google/storm/Kconfig
+++ b/src/mainboard/google/storm/Kconfig
@@ -28,16 +28,22 @@ config BOARD_SPECIFIC_OPTIONS
select SPI_FLASH
select SPI_FLASH_SPANSION
+config BOARD_VARIANT_AP148
+ bool "pick this to build an image for ap148"
+ default n
+
config MAINBOARD_DIR
string
default google/storm
config MAINBOARD_PART_NUMBER
string
+ default "AP148" if BOARD_VARIANT_AP148
default "Storm"
config DRAM_SIZE_MB
int
+ default 512 if BOARD_VARIANT_AP148
default 1024
config DRAM_DMA_START
diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c
index d5adf2d855..bb4cff8ff0 100644
--- a/src/mainboard/google/storm/mainboard.c
+++ b/src/mainboard/google/storm/mainboard.c
@@ -37,8 +37,10 @@
static void setup_usb(void)
{
+#if !CONFIG_BOARD_VARIANT_AP148
gpio_tlmm_config_set(USB_ENABLE_GPIO, FUNC_SEL_GPIO,
GPIO_PULL_UP, GPIO_10MA, GPIO_ENABLE);
+#endif
usb_clock_config();
setup_usb_host1();