blob: 5fb340bcfcf6bd19a7baa072acce5016265ac124 [file] [log] [blame]
huang lin346ea772014-12-08 10:34:27 +08001##
2## This file is part of the coreboot project.
3##
4## Copyright 2014 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##
huang lin346ea772014-12-08 10:34:27 +080015
Julius Wernerdd07ef22015-08-28 14:34:09 -070016config BOARD_GOOGLE_VEYRON # dummy option to be selected by variant boards
17 def_bool n
18
19if BOARD_GOOGLE_VEYRON
huang lin346ea772014-12-08 10:34:27 +080020
Julius Werner2d99f3b2017-03-16 14:08:09 -070021# Some Veyron boards incorrectly had their RAM code strapped with 100Kohm
22# resistors. These get overpowered by the SoC's internal pull-downs, so we
23# cannot read those pins as tri-state. They're restricted to binary RAM codes.
24config VEYRON_FORCE_BINARY_RAM_CODE
25 bool
26 default y if BOARD_GOOGLE_VEYRON_JAQ
27 default y if BOARD_GOOGLE_VEYRON_JERRY
28 default y if BOARD_GOOGLE_VEYRON_MIGHTY
29 default n
30
huang lin346ea772014-12-08 10:34:27 +080031config BOARD_SPECIFIC_OPTIONS # dummy
32 def_bool y
Stefan Reinauer82c706e2015-03-30 12:20:55 -070033 select BOARD_ID_AUTO
David Hendricks3cbf02c2014-12-15 16:15:23 -080034 select COMMON_CBFS_SPI_WRAPPER
huang lin346ea772014-12-08 10:34:27 +080035 select EC_GOOGLE_CHROMEEC
36 select EC_GOOGLE_CHROMEEC_SPI
huang lin346ea772014-12-08 10:34:27 +080037 select RAM_CODE_SUPPORT
38 select SOC_ROCKCHIP_RK3288
Martin Rothc0c115b2015-08-21 14:37:02 -060039 select MAINBOARD_HAS_NATIVE_VGA_INIT
huang lin346ea772014-12-08 10:34:27 +080040 select MAINBOARD_DO_NATIVE_VGA_INIT
41 select MAINBOARD_HAS_CHROMEOS
Julius Wernerdd07ef22015-08-28 14:34:09 -070042 select BOARD_ROMSIZE_KB_4096
huang lin346ea772014-12-08 10:34:27 +080043 select HAVE_HARD_RESET
David Hendricks3cbf02c2014-12-15 16:15:23 -080044 select SPI_FLASH
45 select SPI_FLASH_GIGADEVICE
Julius Wernerb7641cc2014-12-19 12:41:16 -080046 select SPI_FLASH_WINBOND
huang lin346ea772014-12-08 10:34:27 +080047
Julius Werner58c39382017-02-13 17:53:29 -080048config VBOOT
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -070049 select VBOOT_VBNV_EC
Martin Roth967cd9a2015-08-18 14:22:58 -060050
huang lin346ea772014-12-08 10:34:27 +080051config MAINBOARD_DIR
52 string
Julius Wernerdd07ef22015-08-28 14:34:09 -070053 default google/veyron
huang lin346ea772014-12-08 10:34:27 +080054
55config MAINBOARD_PART_NUMBER
56 string
Julius Werner58c39382017-02-13 17:53:29 -080057 default "Veyron_Jaq" if BOARD_GOOGLE_VEYRON_JAQ
58 default "Veyron_Jerry" if BOARD_GOOGLE_VEYRON_JERRY
59 default "Veyron_Mighty" if BOARD_GOOGLE_VEYRON_MIGHTY
60 default "Veyron_Minnie" if BOARD_GOOGLE_VEYRON_MINNIE
61 default "Veyron_Speedy" if BOARD_GOOGLE_VEYRON_SPEEDY
Julius Wernerdd07ef22015-08-28 14:34:09 -070062 default "Veyron"
huang lin346ea772014-12-08 10:34:27 +080063
64config MAINBOARD_VENDOR
65 string
66 default "Google"
67
68config EC_GOOGLE_CHROMEEC_SPI_BUS
69 hex
Martin Roth3b878122016-09-30 14:43:01 -060070 default 0x0
huang lin346ea772014-12-08 10:34:27 +080071
72config EC_GOOGLE_CHROMEEC_SPI_WAKEUP_DELAY_US
73 int
74 default 100
75
Aaron Durbin08e842c2016-08-11 14:40:09 -050076config BOOT_DEVICE_SPI_FLASH_BUS
Martin Roth595e7772015-04-26 18:53:26 -060077 int
78 default 2
huang lin346ea772014-12-08 10:34:27 +080079
huang lin346ea772014-12-08 10:34:27 +080080config DRIVER_TPM_I2C_BUS
81 hex
82 default 0x1
83
84config DRIVER_TPM_I2C_ADDR
85 hex
86 default 0x20
87
88config CONSOLE_SERIAL_UART_ADDRESS
89 hex
Patrick Georgi01368ed2015-04-16 15:27:52 +020090 depends on DRIVERS_UART
huang lin346ea772014-12-08 10:34:27 +080091 default 0xFF690000
92
David Hendricks4d244212015-01-12 13:13:30 -080093config PMIC_BUS
94 int
95 default 0
96
Paul Kocialkowskid738b142015-09-16 18:23:23 +020097config CBFS_SIZE
98 hex
99 default 0x100000 if CHROMEOS
100 default ROM_SIZE
101
Patrick Georgic3686b32016-02-01 15:28:02 +0100102config EC_GOOGLE_CHROMEEC_BOARDNAME
103 string
104 depends on CHROMEOS
Patrick Georgic3686b32016-02-01 15:28:02 +0100105 #default "jaq" if BOARD_GOOGLE_VEYRON_JAQ
106 default "jerry" if BOARD_GOOGLE_VEYRON_JERRY
107 #default "mighty" if BOARD_GOOGLE_VEYRON_MIGHTY
108 #default "minnie" if BOARD_GOOGLE_VEYRON_MINNIE
Patrick Georgic3686b32016-02-01 15:28:02 +0100109 #default "speedy" if BOARD_GOOGLE_VEYRON_SPEEDY
Patrick Georgic3686b32016-02-01 15:28:02 +0100110
Patrick Georgia0f6abc2016-02-05 11:30:19 +0100111config GBB_HWID
112 string
113 depends on CHROMEOS
Patrick Georgia0f6abc2016-02-05 11:30:19 +0100114 default "JAQ TEST A-A 8292" if BOARD_GOOGLE_VEYRON_JAQ
115 default "JERRY TEST A-A 1250" if BOARD_GOOGLE_VEYRON_JERRY
116 default "MIGHTY TEST A-A 4557" if BOARD_GOOGLE_VEYRON_MIGHTY
117 default "MINNIE TEST A-A 5151" if BOARD_GOOGLE_VEYRON_MINNIE
Patrick Georgia0f6abc2016-02-05 11:30:19 +0100118 default "SPEEDY TEST A-A 8421" if BOARD_GOOGLE_VEYRON_SPEEDY
Patrick Georgia0f6abc2016-02-05 11:30:19 +0100119
Julius Wernerdd07ef22015-08-28 14:34:09 -0700120endif # BOARD_GOOGLE_VEYRON