blob: a23a0d33d7a30b57293cec8712db812a907484dd [file] [log] [blame]
Patrick Georgi4d6ad832015-06-22 19:43:18 +02001##
2## This file is part of the coreboot project.
3##
4## Copyright 2015 Google Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
Patrick Georgi4d6ad832015-06-22 19:43:18 +020015
16if BOARD_GOOGLE_SMAUG
17
18config BOARD_SPECIFIC_OPTIONS # dummy
Martin Roth45895f12015-07-01 19:38:29 -060019 def_bool y
Patrick Georgi4d6ad832015-06-22 19:43:18 +020020 select BOARD_ID_AUTO
21 select BOARD_ROMSIZE_KB_16384
Furquan Shaikhcf6cca62015-07-13 20:46:40 -070022 select COMMON_CBFS_SPI_WRAPPER
Patrick Georgi4d6ad832015-06-22 19:43:18 +020023 select EC_GOOGLE_CHROMEEC
24 select EC_GOOGLE_CHROMEEC_I2C
25 select EC_GOOGLE_CHROMEEC_I2C_PROTO3
Martin Rothc0c115b2015-08-21 14:37:02 -060026 select MAINBOARD_HAS_NATIVE_VGA_INIT
Patrick Georgi4d6ad832015-06-22 19:43:18 +020027 select MAINBOARD_DO_NATIVE_VGA_INIT
28 select SPI_FLASH
Furquan Shaikhcf6cca62015-07-13 20:46:40 -070029 select SPI_FLASH_WINBOND
Patrick Georgi4d6ad832015-06-22 19:43:18 +020030 select SOC_NVIDIA_TEGRA210
31 select MAINBOARD_DO_DSI_INIT
Patrick Georgi4d6ad832015-06-22 19:43:18 +020032 select MAINBOARD_HAS_CHROMEOS
Patrick Georgi4d6ad832015-06-22 19:43:18 +020033 select RAM_CODE_SUPPORT
34
Martin Roth967cd9a2015-08-18 14:22:58 -060035config CHROMEOS
36 select CHROMEOS_VBNV_FLASH
37 select EC_SOFTWARE_SYNC
Martin Roth8c12d6e2015-08-24 15:55:29 -060038 select VIRTUAL_DEV_SWITCH
Martin Roth967cd9a2015-08-18 14:22:58 -060039
Patrick Georgi4d6ad832015-06-22 19:43:18 +020040config MAINBOARD_DIR
Martin Roth45895f12015-07-01 19:38:29 -060041 string
42 default google/smaug
Patrick Georgi4d6ad832015-06-22 19:43:18 +020043
44config MAINBOARD_PART_NUMBER
Martin Roth45895f12015-07-01 19:38:29 -060045 string
46 default "Smaug"
Patrick Georgi4d6ad832015-06-22 19:43:18 +020047
48config DRAM_SIZE_MB
Martin Roth45895f12015-07-01 19:38:29 -060049 int
50 default 2048
Patrick Georgi4d6ad832015-06-22 19:43:18 +020051
52choice
53 prompt "BCT boot media"
54 default SMAUG_BCT_CFG_SPI
55 help
56 Which boot media to configure the BCT for.
57
58config SMAUG_BCT_CFG_SPI
59 bool "SPI"
60 help
61 Configure the BCT for booting from SPI.
62
63config SMAUG_BCT_CFG_EMMC
64 bool "eMMC"
65 help
66 Configure the BCT for booting from eMMC.
67
68endchoice
69
70config BOOT_MEDIA_SPI_BUS
71 int "SPI bus with boot media ROM"
72 range 1 7
73 depends on SMAUG_BCT_CFG_SPI
74 default 7
75 help
76 Which SPI bus the boot media is connected to.
77
78config BOOT_MEDIA_SPI_CHIP_SELECT
79 int "Chip select for SPI boot media"
80 range 0 3
81 depends on SMAUG_BCT_CFG_SPI
82 default 0
83 help
84 Which chip select to use for boot media.
85
Patrick Georgi4d6ad832015-06-22 19:43:18 +020086config DRIVER_TPM_I2C_BUS
87 hex
88 default 0x2
89
90config DRIVER_TPM_I2C_ADDR
91 hex
92 default 0x20
93
94config EC_GOOGLE_CHROMEEC_I2C_BUS
95 hex
96 default 1
97
98endif # BOARD_GOOGLE_SMAUG