Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
YH Lin | 67618dd | 2019-01-11 12:59:41 -0800 | [diff] [blame] | 2 | |
| 3 | # Umbrella option to be selected by variant boards. |
| 4 | config BOARD_GOOGLE_KUKUI_COMMON |
| 5 | def_bool n |
| 6 | |
Hung-Te Lin | bc792af2 | 2020-07-14 10:31:59 +0800 | [diff] [blame] | 7 | config BOARD_GOOGLE_JACUZZI_COMMON |
| 8 | def_bool n |
| 9 | select BOARD_GOOGLE_KUKUI_COMMON |
| 10 | select DRIVER_PARADE_PS8640 if BOARD_GOOGLE_JACUZZI |
| 11 | # All Jacuzzi followers are using ANX7625 except the reference board. |
| 12 | select DRIVER_ANALOGIX_ANX7625 if !BOARD_GOOGLE_JACUZZI |
| 13 | |
YH Lin | 67618dd | 2019-01-11 12:59:41 -0800 | [diff] [blame] | 14 | if BOARD_GOOGLE_KUKUI_COMMON |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 15 | |
| 16 | config VBOOT |
Tristan Shieh | 156a638 | 2018-10-19 11:58:52 +0800 | [diff] [blame] | 17 | select EC_GOOGLE_CHROMEEC_SWITCHES |
Tristan Shieh | 26a52f4 | 2019-01-07 16:14:29 +0800 | [diff] [blame] | 18 | select VBOOT_VBNV_FLASH |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 19 | |
| 20 | config BOARD_SPECIFIC_OPTIONS |
| 21 | def_bool y |
You-Cheng Syu | 4b47e5a | 2019-06-10 17:17:51 +0800 | [diff] [blame] | 22 | select RTC |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 23 | select SOC_MEDIATEK_MT8183 |
Tristan Shieh | 131ff8c | 2018-07-06 15:37:05 +0800 | [diff] [blame] | 24 | select BOARD_ROMSIZE_KB_8192 |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 25 | select MAINBOARD_HAS_CHROMEOS |
Hung-Te Lin | b22dc1d | 2020-06-24 17:09:26 +0800 | [diff] [blame] | 26 | select CHROMEOS_CAMERA |
Yu-Ping Wu | 5bfb5cc | 2019-08-22 15:57:25 +0800 | [diff] [blame] | 27 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 28 | select COMMON_CBFS_SPI_WRAPPER |
| 29 | select SPI_FLASH |
Tristan Shieh | 131ff8c | 2018-07-06 15:37:05 +0800 | [diff] [blame] | 30 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
Tristan Shieh | 156a638 | 2018-10-19 11:58:52 +0800 | [diff] [blame] | 31 | select EC_GOOGLE_CHROMEEC |
Hung-Te Lin | e7184b0 | 2019-01-03 14:31:04 +0800 | [diff] [blame] | 32 | select EC_GOOGLE_CHROMEEC_BOARDID |
Tristan Shieh | 156a638 | 2018-10-19 11:58:52 +0800 | [diff] [blame] | 33 | select EC_GOOGLE_CHROMEEC_SPI |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 34 | select SPI_TPM if VBOOT |
| 35 | select TPM_GOOGLE_CR50 if VBOOT |
Tristan Shieh | 0688ab8 | 2018-10-19 17:29:23 +0800 | [diff] [blame] | 36 | select MAINBOARD_HAS_TPM2 if VBOOT |
Yongqiang Niu | b3cd762 | 2019-01-29 15:13:07 +0800 | [diff] [blame] | 37 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 38 | select MAINBOARD_FORCE_NATIVE_VGA_INIT |
| 39 | select HAVE_LINEAR_FRAMEBUFFER |
Sunway | 548d350 | 2020-12-24 17:41:53 +0800 | [diff] [blame] | 40 | select MT8183_DRAM_EMCP if BOARD_GOOGLE_KRANE || BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU |
Julius Werner | b2a1480 | 2021-08-12 16:48:12 -0700 | [diff] [blame] | 41 | select MIPI_PANEL_AUO_KD101N80_45NA if BOARD_GOOGLE_KRANE |
| 42 | select MIPI_PANEL_BOE_TV101WUM_NL6 if BOARD_GOOGLE_KRANE |
| 43 | select MIPI_PANEL_AUO_B101UAN08_3 if BOARD_GOOGLE_KODAMA |
| 44 | select MIPI_PANEL_BOE_TV101WUM_N53 if BOARD_GOOGLE_KODAMA |
| 45 | select MIPI_PANEL_BOE_TV105WUM_NW0 if BOARD_GOOGLE_KAKADU |
| 46 | select MIPI_PANEL_CMN_P097PFG_SSD2858 if BOARD_GOOGLE_KUKUI |
| 47 | select MIPI_PANEL_AUO_NT51021D8P if BOARD_GOOGLE_FLAPJACK |
| 48 | select MIPI_PANEL_BOE_TV080WUM_NG0 if BOARD_GOOGLE_FLAPJACK |
| 49 | select MIPI_PANEL_BOE_TV101WUM_NG0 if BOARD_GOOGLE_FLAPJACK |
| 50 | select MIPI_PANEL_INX_OTA7290D10P if BOARD_GOOGLE_FLAPJACK |
| 51 | select MIPI_PANEL_STA_2081101QFH032011_53G if BOARD_GOOGLE_KATSU |
| 52 | select MIPI_PANEL_BOE_TV105WUM_NW0 if BOARD_GOOGLE_KATSU |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 53 | |
| 54 | config MAINBOARD_DIR |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 55 | default "google/kukui" |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 56 | |
| 57 | config MAINBOARD_PART_NUMBER |
YH Lin | 67618dd | 2019-01-11 12:59:41 -0800 | [diff] [blame] | 58 | default "Kukui" if BOARD_GOOGLE_KUKUI |
Hung-Te Lin | 693709b | 2019-04-10 13:01:27 +0800 | [diff] [blame] | 59 | default "Krane" if BOARD_GOOGLE_KRANE |
Peichao Wang | 9310ff4 | 2019-06-19 20:03:29 +0800 | [diff] [blame] | 60 | default "Kodama" if BOARD_GOOGLE_KODAMA |
Scott Chao | 2a203c5 | 2020-04-09 11:26:16 +0800 | [diff] [blame] | 61 | default "Kakadu" if BOARD_GOOGLE_KAKADU |
YH Lin | 67618dd | 2019-01-11 12:59:41 -0800 | [diff] [blame] | 62 | default "Flapjack" if BOARD_GOOGLE_FLAPJACK |
Hung-Te Lin | 8f45905 | 2019-07-15 15:11:14 +0800 | [diff] [blame] | 63 | default "Jacuzzi" if BOARD_GOOGLE_JACUZZI |
Hung-Te Lin | 266c58a | 2019-09-24 10:06:43 +0800 | [diff] [blame] | 64 | default "Juniper" if BOARD_GOOGLE_JUNIPER |
Hung-Te Lin | de6f121 | 2019-11-09 12:00:51 +0800 | [diff] [blame] | 65 | default "Kappa" if BOARD_GOOGLE_KAPPA |
| 66 | default "Damu" if BOARD_GOOGLE_DAMU |
xuxinxiong | 8cf43f6 | 2020-07-09 18:53:57 +0800 | [diff] [blame] | 67 | default "Cerise" if BOARD_GOOGLE_CERISE |
| 68 | default "Stern" if BOARD_GOOGLE_STERN |
Sheng-Liang Pan | 14eca57 | 2020-07-09 16:06:23 +0800 | [diff] [blame] | 69 | default "Willow" if BOARD_GOOGLE_WILLOW |
Kevin Chiu | a2b04f4 | 2020-07-21 16:34:25 +0800 | [diff] [blame] | 70 | default "Esche" if BOARD_GOOGLE_ESCHE |
| 71 | default "Burnet" if BOARD_GOOGLE_BURNET |
xiatao5 | 8aca8da | 2020-07-30 17:48:48 +0800 | [diff] [blame] | 72 | default "Fennel" if BOARD_GOOGLE_FENNEL |
Sunway | a858ec8 | 2020-12-23 15:07:51 +0800 | [diff] [blame] | 73 | default "Katsu" if BOARD_GOOGLE_KATSU |
Lucas Chen | 4cc4275 | 2021-03-12 20:02:54 +0800 | [diff] [blame] | 74 | default "Cozmo" if BOARD_GOOGLE_COZMO |
Sunway | 8d52942 | 2021-03-17 16:38:29 +0800 | [diff] [blame] | 75 | default "Makomo" if BOARD_GOOGLE_MAKOMO |
Sunway | 43b2212 | 2021-07-09 15:40:50 +0800 | [diff] [blame] | 76 | default "Munna" if BOARD_GOOGLE_MUNNA |
Lucas Chen | c1adf40 | 2021-07-29 18:33:03 +0800 | [diff] [blame] | 77 | default "Pico" if BOARD_GOOGLE_PICO |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 78 | |
Tristan Shieh | 0688ab8 | 2018-10-19 17:29:23 +0800 | [diff] [blame] | 79 | config DRIVER_TPM_SPI_BUS |
| 80 | hex |
| 81 | default 0x0 |
| 82 | |
Tristan Shieh | 131ff8c | 2018-07-06 15:37:05 +0800 | [diff] [blame] | 83 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 84 | int |
| 85 | default 1 |
| 86 | |
Tristan Shieh | 990d825 | 2018-08-21 13:40:23 +0800 | [diff] [blame] | 87 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 88 | hex |
| 89 | default 0x2 |
| 90 | |
Hung-Te Lin | 45701fd | 2020-07-28 10:59:00 +0800 | [diff] [blame] | 91 | config BOARD_SDRAM_TABLE_OFFSET |
| 92 | hex |
Kevin Chiu | f4ba356 | 2022-05-05 14:34:56 +0800 | [diff] [blame] | 93 | default 0x10 if BOARD_GOOGLE_FENNEL || BOARD_GOOGLE_CERISE || BOARD_GOOGLE_STERN || BOARD_GOOGLE_MAKOMO || BOARD_GOOGLE_MUNNA |
xuxinxiong | 9448682 | 2021-01-14 09:29:15 +0800 | [diff] [blame] | 94 | default 0x20 if BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU |
Sheng-Liang Pan | a47dc10 | 2023-06-01 16:46:37 +0800 | [diff] [blame^] | 95 | default 0x30 if BOARD_GOOGLE_COZMO || BOARD_GOOGLE_PICO || BOARD_GOOGLE_JUNIPER || BOARD_GOOGLE_WILLOW |
Kevin Chiu | 2c7e498 | 2021-09-07 16:59:38 +0800 | [diff] [blame] | 96 | default 0x40 if BOARD_GOOGLE_KAPPA |
Kevin Chiu | f4ba356 | 2022-05-05 14:34:56 +0800 | [diff] [blame] | 97 | default 0x50 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE |
Hung-Te Lin | 45701fd | 2020-07-28 10:59:00 +0800 | [diff] [blame] | 98 | default 0x0 |
| 99 | |
Kevin Chiu | bd21476 | 2020-10-15 14:39:21 +0800 | [diff] [blame] | 100 | config BOARD_OVERRIDE_LCM_ID |
| 101 | hex |
| 102 | default 0x1 if BOARD_GOOGLE_JUNIPER || BOARD_GOOGLE_KAPPA || BOARD_GOOGLE_DAMU |
| 103 | default 0x1 if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE |
| 104 | default 0x0 |
| 105 | |
Hung-Te Lin | 4b3269e | 2020-12-10 21:54:24 +0800 | [diff] [blame] | 106 | config SPEAKER_GPIO_NAME |
| 107 | string |
| 108 | # MAX98357A, should include KENZO in future. |
| 109 | default "speaker enable" if BOARD_GOOGLE_JACUZZI || BOARD_GOOGLE_JUNIPER |
| 110 | default "speaker enable" if BOARD_GOOGLE_WILLOW || BOARD_GOOGLE_DAMU |
| 111 | # MAX98360 |
| 112 | default "speaker enable" if BOARD_GOOGLE_BURNET || BOARD_GOOGLE_ESCHE |
| 113 | default "speaker enable" if BOARD_GOOGLE_KAPPA |
| 114 | # ALC1015Q (default for Jacuzzi followers) |
Sunway | 650bf65 | 2021-05-19 09:19:21 +0800 | [diff] [blame] | 115 | default "rt1015p sdb" if BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU |
Hung-Te Lin | 4b3269e | 2020-12-10 21:54:24 +0800 | [diff] [blame] | 116 | default "rt1015p sdb" if BOARD_GOOGLE_JACUZZI_COMMON |
| 117 | # MAX98357A (default for Kukui followers) |
| 118 | default "speaker enable" |
| 119 | |
Tristan Shieh | cfd8929 | 2018-05-31 09:22:53 +0800 | [diff] [blame] | 120 | endif |