summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();