huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 1 | ## |
| 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 Bendebury | f9cbe35 | 2016-04-26 14:43:53 -0700 | [diff] [blame] | 16 | config BOARD_GOOGLE_GRU_COMMON # Umbrella option to be selected by variant boards. |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 17 | def_bool n |
| 18 | |
Vadim Bendebury | f9cbe35 | 2016-04-26 14:43:53 -0700 | [diff] [blame] | 19 | if BOARD_GOOGLE_GRU_COMMON |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 20 | |
Julius Werner | 40d62f3 | 2016-07-28 13:41:37 -0700 | [diff] [blame] | 21 | # 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. |
| 23 | config 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 lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 28 | config 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 Glass | 2622b54 | 2016-06-10 20:58:24 -0600 | [diff] [blame] | 33 | select EC_GOOGLE_CHROMEEC |
| 34 | select EC_GOOGLE_CHROMEEC_RTC |
| 35 | select EC_GOOGLE_CHROMEEC_SPI |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 36 | select HAVE_HARD_RESET |
Lin Huang | b497b48 | 2016-03-31 18:44:13 +0800 | [diff] [blame] | 37 | select MAINBOARD_DO_NATIVE_VGA_INIT |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 38 | select MAINBOARD_HAS_CHROMEOS |
Lin Huang | b497b48 | 2016-03-31 18:44:13 +0800 | [diff] [blame] | 39 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
Julius Werner | 40d62f3 | 2016-07-28 13:41:37 -0700 | [diff] [blame] | 40 | select MAINBOARD_HAS_TPM2 if GRU_HAS_TPM2 |
Vadim Bendebury | 1f83ffa | 2016-06-21 19:07:32 -0700 | [diff] [blame] | 41 | select RAM_CODE_SUPPORT |
Simon Glass | 2622b54 | 2016-06-10 20:58:24 -0600 | [diff] [blame] | 42 | select RTC |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 43 | select SOC_ROCKCHIP_RK3399 |
| 44 | select SPI_FLASH |
| 45 | select SPI_FLASH_GIGADEVICE |
| 46 | select SPI_FLASH_WINBOND |
| 47 | |
| 48 | config CHROMEOS |
Furquan Shaikh | cd2afc0 | 2016-11-15 20:33:29 -0800 | [diff] [blame] | 49 | select EC_GOOGLE_CHROMEEC_SWITCHES |
Shelley Chen | 7db2cd2 | 2016-06-30 09:39:12 -0700 | [diff] [blame] | 50 | select EC_SOFTWARE_SYNC |
Julius Werner | 40d62f3 | 2016-07-28 13:41:37 -0700 | [diff] [blame] | 51 | select SPI_TPM if GRU_HAS_TPM2 |
Furquan Shaikh | 2a12e2e | 2016-07-25 11:48:03 -0700 | [diff] [blame] | 52 | select VBOOT_VBNV_FLASH |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 53 | select VIRTUAL_DEV_SWITCH |
| 54 | |
| 55 | config MAINBOARD_DIR |
| 56 | string |
| 57 | default google/gru |
| 58 | |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 59 | config MAINBOARD_VENDOR |
| 60 | string |
| 61 | default "Google" |
| 62 | |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 63 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 64 | hex |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 65 | default 0x5 |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 66 | |
Aaron Durbin | 08e842c | 2016-08-11 14:40:09 -0500 | [diff] [blame] | 67 | config BOOT_DEVICE_SPI_FLASH_BUS |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 68 | int |
| 69 | default 1 |
| 70 | |
Julius Werner | 40d62f3 | 2016-07-28 13:41:37 -0700 | [diff] [blame] | 71 | config DRIVER_TPM_I2C_BUS |
| 72 | hex |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 73 | default 0x0 |
Julius Werner | 40d62f3 | 2016-07-28 13:41:37 -0700 | [diff] [blame] | 74 | |
| 75 | config DRIVER_TPM_I2C_ADDR |
| 76 | hex |
| 77 | default 0x20 |
| 78 | |
huang lin | a6dbfb5 | 2016-03-02 18:38:40 +0800 | [diff] [blame] | 79 | config CONSOLE_SERIAL_UART_ADDRESS |
| 80 | hex |
| 81 | depends on DRIVERS_UART |
| 82 | default 0xFF1A0000 |
| 83 | |
Julius Werner | 1935ce5 | 2016-07-01 11:22:25 -0700 | [diff] [blame] | 84 | ########################################################## |
| 85 | #### Update below when adding a new derivative board. #### |
| 86 | ########################################################## |
| 87 | config MAINBOARD_PART_NUMBER |
| 88 | string |
Shasha Zhao | 6bd75ec | 2016-11-14 20:10:55 +0800 | [diff] [blame] | 89 | default "Bob" if BOARD_GOOGLE_BOB |
Julius Werner | 1935ce5 | 2016-07-01 11:22:25 -0700 | [diff] [blame] | 90 | default "Gru" if BOARD_GOOGLE_GRU |
| 91 | default "Kevin" if BOARD_GOOGLE_KEVIN |
| 92 | |
| 93 | config GBB_HWID |
| 94 | string |
| 95 | depends on CHROMEOS |
Shasha Zhao | 6bd75ec | 2016-11-14 20:10:55 +0800 | [diff] [blame] | 96 | default "BOB TEST 7422" if BOARD_GOOGLE_BOB |
Julius Werner | 1935ce5 | 2016-07-01 11:22:25 -0700 | [diff] [blame] | 97 | default "GRU TEST 5431" if BOARD_GOOGLE_GRU |
| 98 | default "KEVIN TEST 1422" if BOARD_GOOGLE_KEVIN |
| 99 | |
Vadim Bendebury | f9cbe35 | 2016-04-26 14:43:53 -0700 | [diff] [blame] | 100 | endif # BOARD_GOOGLE_GRU_COMMON |