blob: 57b1762578cbcc3666ecd4ace6ffcb438f50fae6 [file] [log] [blame]
huang lina6dbfb52016-03-02 18:38:40 +08001##
2## This file is part of the coreboot project.
3##
4## Copyright 2016 Rockchip 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##
15
Vadim Bendeburyf9cbe352016-04-26 14:43:53 -070016config BOARD_GOOGLE_GRU_COMMON # Umbrella option to be selected by variant boards.
huang lina6dbfb52016-03-02 18:38:40 +080017 def_bool n
18
Vadim Bendeburyf9cbe352016-04-26 14:43:53 -070019if BOARD_GOOGLE_GRU_COMMON
huang lina6dbfb52016-03-02 18:38:40 +080020
Julius Werner40d62f32016-07-28 13:41:37 -070021# Most Grus have TPM2 but later Kevins don't... decide this in one place for
22# convenience. Explicitly override it when building for earlier Kevins.
23config GRU_HAS_TPM2
24 bool "Build for a board revision with a SPI TPM 2.0"
25 default n if BOARD_GOOGLE_KEVIN
26 default y
27
huang lina6dbfb52016-03-02 18:38:40 +080028config BOARD_SPECIFIC_OPTIONS
29 def_bool y
30 select BOARD_ID_AUTO
31 select BOARD_ROMSIZE_KB_8192
32 select COMMON_CBFS_SPI_WRAPPER
Simon Glass2622b542016-06-10 20:58:24 -060033 select EC_GOOGLE_CHROMEEC
34 select EC_GOOGLE_CHROMEEC_RTC
35 select EC_GOOGLE_CHROMEEC_SPI
huang lina6dbfb52016-03-02 18:38:40 +080036 select HAVE_HARD_RESET
Lin Huangb497b482016-03-31 18:44:13 +080037 select MAINBOARD_DO_NATIVE_VGA_INIT
huang lina6dbfb52016-03-02 18:38:40 +080038 select MAINBOARD_HAS_CHROMEOS
Lin Huangb497b482016-03-31 18:44:13 +080039 select MAINBOARD_HAS_NATIVE_VGA_INIT
Julius Werner40d62f32016-07-28 13:41:37 -070040 select MAINBOARD_HAS_TPM2 if GRU_HAS_TPM2
Vadim Bendebury1f83ffa2016-06-21 19:07:32 -070041 select RAM_CODE_SUPPORT
Simon Glass2622b542016-06-10 20:58:24 -060042 select RTC
huang lina6dbfb52016-03-02 18:38:40 +080043 select SOC_ROCKCHIP_RK3399
44 select SPI_FLASH
45 select SPI_FLASH_GIGADEVICE
46 select SPI_FLASH_WINBOND
47
48config CHROMEOS
Furquan Shaikhcd2afc02016-11-15 20:33:29 -080049 select EC_GOOGLE_CHROMEEC_SWITCHES
Shelley Chen7db2cd22016-06-30 09:39:12 -070050 select EC_SOFTWARE_SYNC
Julius Werner40d62f32016-07-28 13:41:37 -070051 select SPI_TPM if GRU_HAS_TPM2
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -070052 select VBOOT_VBNV_FLASH
huang lina6dbfb52016-03-02 18:38:40 +080053 select VIRTUAL_DEV_SWITCH
54
55config MAINBOARD_DIR
56 string
57 default google/gru
58
huang lina6dbfb52016-03-02 18:38:40 +080059config MAINBOARD_VENDOR
60 string
61 default "Google"
62
63config DRAM_SIZE_MB
64 int
Lin Huang728fffd2016-05-05 18:51:49 +080065 default 4096
huang lina6dbfb52016-03-02 18:38:40 +080066
67config EC_GOOGLE_CHROMEEC_SPI_BUS
68 hex
Martin Roth3b878122016-09-30 14:43:01 -060069 default 0x5
huang lina6dbfb52016-03-02 18:38:40 +080070
Aaron Durbin08e842c2016-08-11 14:40:09 -050071config BOOT_DEVICE_SPI_FLASH_BUS
huang lina6dbfb52016-03-02 18:38:40 +080072 int
73 default 1
74
Julius Werner40d62f32016-07-28 13:41:37 -070075config DRIVER_TPM_I2C_BUS
76 hex
Martin Roth3b878122016-09-30 14:43:01 -060077 default 0x0
Julius Werner40d62f32016-07-28 13:41:37 -070078
79config DRIVER_TPM_I2C_ADDR
80 hex
81 default 0x20
82
huang lina6dbfb52016-03-02 18:38:40 +080083config CONSOLE_SERIAL_UART_ADDRESS
84 hex
85 depends on DRIVERS_UART
86 default 0xFF1A0000
87
Julius Werner1935ce52016-07-01 11:22:25 -070088##########################################################
89#### Update below when adding a new derivative board. ####
90##########################################################
91config MAINBOARD_PART_NUMBER
92 string
93 default "Gru" if BOARD_GOOGLE_GRU
94 default "Kevin" if BOARD_GOOGLE_KEVIN
95
96config GBB_HWID
97 string
98 depends on CHROMEOS
99 default "GRU TEST 5431" if BOARD_GOOGLE_GRU
100 default "KEVIN TEST 1422" if BOARD_GOOGLE_KEVIN
101
Vadim Bendeburyf9cbe352016-04-26 14:43:53 -0700102endif # BOARD_GOOGLE_GRU_COMMON