summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/security/vboot/list_vboot.md1
-rw-r--r--payloads/libpayload/configs/config.cheza3
-rw-r--r--src/mainboard/google/cheza/Kconfig46
-rw-r--r--src/mainboard/google/cheza/Kconfig.name4
-rw-r--r--src/mainboard/google/cheza/Makefile.inc20
-rw-r--r--src/mainboard/google/cheza/board.h17
-rw-r--r--src/mainboard/google/cheza/board_info.txt6
-rw-r--r--src/mainboard/google/cheza/boardid.c37
-rw-r--r--src/mainboard/google/cheza/bootblock.c9
-rw-r--r--src/mainboard/google/cheza/chromeos.c33
-rw-r--r--src/mainboard/google/cheza/chromeos.fmd42
-rw-r--r--src/mainboard/google/cheza/devicetree.cb5
-rw-r--r--src/mainboard/google/cheza/mainboard.c37
-rw-r--r--src/mainboard/google/cheza/reset.c11
-rw-r--r--src/mainboard/google/cheza/romstage.c22
15 files changed, 0 insertions, 293 deletions
diff --git a/Documentation/security/vboot/list_vboot.md b/Documentation/security/vboot/list_vboot.md
index 30083f0c90..c0ccfceafb 100644
--- a/Documentation/security/vboot/list_vboot.md
+++ b/Documentation/security/vboot/list_vboot.md
@@ -20,7 +20,6 @@
- Tricky (Dell Chromebox 3010)
- Zako (HP Chromebox G1)
- Butterfly (HP Pavilion Chromebook 14)
-- Cheza
- Banon (Acer Chromebook 15 (CB3-532))
- Celes (Samsung Chromebook 3)
- Cyan (Acer Chromebook R11 (C738T))
diff --git a/payloads/libpayload/configs/config.cheza b/payloads/libpayload/configs/config.cheza
deleted file mode 100644
index 5f60392fdb..0000000000
--- a/payloads/libpayload/configs/config.cheza
+++ /dev/null
@@ -1,3 +0,0 @@
-CONFIG_LP_CHROMEOS=y
-CONFIG_LP_ARCH_ARM64=y
-CONFIG_LP_TIMER_ARM64_ARCH=y
diff --git a/src/mainboard/google/cheza/Kconfig b/src/mainboard/google/cheza/Kconfig
deleted file mode 100644
index 3f3f75607b..0000000000
--- a/src/mainboard/google/cheza/Kconfig
+++ /dev/null
@@ -1,46 +0,0 @@
-
-config BOARD_GOOGLE_CHEZA_COMMON # Umbrella option to be selected by variants
- def_bool n
-
-if BOARD_GOOGLE_CHEZA_COMMON
-
-config BOARD_SPECIFIC_OPTIONS
- def_bool y
- select BOARD_ROMSIZE_KB_16384
- select COMMON_CBFS_SPI_WRAPPER
- select EC_GOOGLE_CHROMEEC
- select EC_GOOGLE_CHROMEEC_RTC
- select EC_GOOGLE_CHROMEEC_SPI
- select RTC
- select SOC_QUALCOMM_SDM845
- select SPI_FLASH
- select SPI_FLASH_WINBOND
- select MAINBOARD_HAS_CHROMEOS
- select MAINBOARD_HAS_TPM2
- select MAINBOARD_HAS_SPI_TPM_CR50
-
-config VBOOT
- select EC_GOOGLE_CHROMEEC_SWITCHES
- select VBOOT_VBNV_FLASH
-
-config MAINBOARD_DIR
- string
- default "google/cheza"
-
-config DRIVER_TPM_SPI_BUS
- hex
- default 0x5
-
-config EC_GOOGLE_CHROMEEC_SPI_BUS
- hex
- default 0xa
-
-##########################################################
-#### Update below when adding a new derivative board. ####
-##########################################################
-
-config MAINBOARD_PART_NUMBER
- string
- default "Cheza" if BOARD_GOOGLE_CHEZA
-
-endif # BOARD_GOOGLE_CHEZA_COMMON
diff --git a/src/mainboard/google/cheza/Kconfig.name b/src/mainboard/google/cheza/Kconfig.name
deleted file mode 100644
index fbfe4c919b..0000000000
--- a/src/mainboard/google/cheza/Kconfig.name
+++ /dev/null
@@ -1,4 +0,0 @@
-
-config BOARD_GOOGLE_CHEZA
- bool "Cheza"
- select BOARD_GOOGLE_CHEZA_COMMON
diff --git a/src/mainboard/google/cheza/Makefile.inc b/src/mainboard/google/cheza/Makefile.inc
deleted file mode 100644
index 949d775624..0000000000
--- a/src/mainboard/google/cheza/Makefile.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-## SPDX-License-Identifier: GPL-2.0-only
-
-bootblock-y += boardid.c
-bootblock-y += chromeos.c
-bootblock-y += bootblock.c
-bootblock-y += reset.c
-
-verstage-y += boardid.c
-verstage-y += chromeos.c
-verstage-y += reset.c
-
-romstage-y += boardid.c
-romstage-y += chromeos.c
-romstage-y += romstage.c
-romstage-y += reset.c
-
-ramstage-y += boardid.c
-ramstage-y += chromeos.c
-ramstage-y += mainboard.c
-ramstage-y += reset.c
diff --git a/src/mainboard/google/cheza/board.h b/src/mainboard/google/cheza/board.h
deleted file mode 100644
index 0207537800..0000000000
--- a/src/mainboard/google/cheza/board.h
+++ /dev/null
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef __COREBOOT_SRC_MAINBOARD_GOOGLE_CHEZA_BOARD_H
-#define __COREBOOT_SRC_MAINBOARD_GOOGLE_CHEZA_BOARD_H
-
-#include <gpio.h>
-#include <soc/gpio.h>
-
-#define GPIO_EC_IN_RW GPIO(11)
-#define GPIO_AP_EC_INT GPIO(122)
-#define GPIO_AP_SUSPEND GPIO(126)
-#define GPIO_WP_STATE GPIO(128)
-#define GPIO_H1_AP_INT GPIO(129)
-
-void setup_chromeos_gpios(void);
-
-#endif /* ! __COREBOOT_SRC_MAINBOARD_GOOGLE_CHEZA_BOARD_H */
diff --git a/src/mainboard/google/cheza/board_info.txt b/src/mainboard/google/cheza/board_info.txt
deleted file mode 100644
index 5e6e3b235a..0000000000
--- a/src/mainboard/google/cheza/board_info.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Vendor name: Google
-Board name: Cheza Qualcomm SDM845 reference board
-Category: eval
-ROM protocol: SPI
-ROM socketed: n
-Flashrom support: y
diff --git a/src/mainboard/google/cheza/boardid.c b/src/mainboard/google/cheza/boardid.c
deleted file mode 100644
index 2a3684646e..0000000000
--- a/src/mainboard/google/cheza/boardid.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <boardid.h>
-#include <gpio.h>
-
-uint32_t board_id(void)
-{
- const gpio_t pins[] = {[2] = GPIO(51), [1] = GPIO(62), [0] = GPIO(38)};
- static uint32_t id = UNDEFINED_STRAPPING_ID;
-
- if (id == UNDEFINED_STRAPPING_ID)
- id = gpio_base2_value(pins, ARRAY_SIZE(pins));
-
- return id;
-}
-
-uint32_t ram_code(void)
-{
- const gpio_t pins[] = {[1] = GPIO(147), [0] = GPIO(146)};
- static uint32_t id = UNDEFINED_STRAPPING_ID;
-
- if (id == UNDEFINED_STRAPPING_ID)
- id = gpio_base2_value(pins, ARRAY_SIZE(pins));
-
- return id;
-}
-
-uint32_t sku_id(void)
-{
- const gpio_t pins[] = {[1] = GPIO(113), [0] = GPIO(79)};
- static uint32_t id = UNDEFINED_STRAPPING_ID;
-
- if (id == UNDEFINED_STRAPPING_ID)
- id = gpio_base2_value(pins, ARRAY_SIZE(pins));
-
- return id;
-}
diff --git a/src/mainboard/google/cheza/bootblock.c b/src/mainboard/google/cheza/bootblock.c
deleted file mode 100644
index 05e53a64bb..0000000000
--- a/src/mainboard/google/cheza/bootblock.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <bootblock_common.h>
-#include "board.h"
-
-void bootblock_mainboard_init(void)
-{
- setup_chromeos_gpios();
-}
diff --git a/src/mainboard/google/cheza/chromeos.c b/src/mainboard/google/cheza/chromeos.c
deleted file mode 100644
index cb010919d9..0000000000
--- a/src/mainboard/google/cheza/chromeos.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <boot/coreboot_tables.h>
-#include <bootmode.h>
-#include "board.h"
-
-int get_write_protect_state(void)
-{
- return !gpio_get(GPIO_WP_STATE);
-}
-
-void setup_chromeos_gpios(void)
-{
- gpio_input_pullup(GPIO_EC_IN_RW);
- gpio_input_pullup(GPIO_AP_EC_INT);
- gpio_output(GPIO_AP_SUSPEND, 1);
- gpio_input(GPIO_WP_STATE);
- gpio_input_pullup(GPIO_H1_AP_INT);
-}
-
-void fill_lb_gpios(struct lb_gpios *gpios)
-{
- struct lb_gpio chromeos_gpios[] = {
- {GPIO_EC_IN_RW.addr, ACTIVE_LOW, gpio_get(GPIO_EC_IN_RW),
- "EC in RW"},
- {GPIO_AP_EC_INT.addr, ACTIVE_LOW, gpio_get(GPIO_AP_EC_INT),
- "EC interrupt"},
- {GPIO_H1_AP_INT.addr, ACTIVE_LOW, gpio_get(GPIO_H1_AP_INT),
- "TPM interrupt"},
- };
-
- lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
-}
diff --git a/src/mainboard/google/cheza/chromeos.fmd b/src/mainboard/google/cheza/chromeos.fmd
deleted file mode 100644
index 23d2d87ae2..0000000000
--- a/src/mainboard/google/cheza/chromeos.fmd
+++ /dev/null
@@ -1,42 +0,0 @@
-## SPDX-License-Identifier: GPL-2.0-only
-
-FLASH@0x0 8M {
- WP_RO 4M {
- RO_SECTION 0x184000 {
- BOOTBLOCK 96K
- COREBOOT(CBFS)
- #TODO: Move FMAP to 2M or 3M once FSG can be smaller
- FMAP@0x180000 0x1000
- GBB 0x2f00
- RO_FRID 0x100
- }
- RO_VPD(PRESERVE) 16K
- RO_DDR_TRAINING(PRESERVE) 8K
- RO_LIMITS_CFG(PRESERVE) 4K
- RO_FSG(PRESERVE)
- }
-
- RW_VPD(PRESERVE) 32K
- RW_NVRAM(PRESERVE) 16K
- RW_DDR_TRAINING(PRESERVE) 8K
- RW_LIMITS_CFG(PRESERVE) 4K
- RW_ELOG(PRESERVE) 4K
- RW_SHARED 4K {
- SHARED_DATA
- }
-
- RW_SECTION_A 1280K {
- VBLOCK_A 8K
- FW_MAIN_A(CBFS)
- RW_FWID_A 256
- }
-
-
- RW_SECTION_B 1280K {
- VBLOCK_B 8K
- FW_MAIN_B(CBFS)
- RW_FWID_B 256
- }
-
- RW_LEGACY(CBFS)
-}
diff --git a/src/mainboard/google/cheza/devicetree.cb b/src/mainboard/google/cheza/devicetree.cb
deleted file mode 100644
index 717653b379..0000000000
--- a/src/mainboard/google/cheza/devicetree.cb
+++ /dev/null
@@ -1,5 +0,0 @@
-## SPDX-License-Identifier: GPL-2.0-only
-
-chip soc/qualcomm/sdm845
- device cpu_cluster 0 on end
-end
diff --git a/src/mainboard/google/cheza/mainboard.c b/src/mainboard/google/cheza/mainboard.c
deleted file mode 100644
index e2d02de4b7..0000000000
--- a/src/mainboard/google/cheza/mainboard.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <device/device.h>
-#include <gpio.h>
-#include <soc/usb.h>
-
-static struct usb_board_data usb1_board_data = {
- .pll_bias_control_2 = 0x28,
- .imp_ctrl1 = 0x08,
- .port_tune1 = 0x20,
-};
-
-static void setup_usb(void)
-{
- /*
- * Primary USB is used only for DP functionality on cheza platform.
- * Hence Setting up only Secondary USB DWC3 controller.
- */
- setup_usb_host1(&usb1_board_data);
-
- gpio_output(GPIO(120), 1); /* Deassert HUB_RST_L to enable hub. */
-}
-
-static void mainboard_init(struct device *dev)
-{
- setup_usb();
-}
-
-static void mainboard_enable(struct device *dev)
-{
- dev->ops->init = &mainboard_init;
-}
-
-struct chip_operations mainboard_ops = {
- .name = CONFIG_MAINBOARD_PART_NUMBER,
- .enable_dev = mainboard_enable,
-};
diff --git a/src/mainboard/google/cheza/reset.c b/src/mainboard/google/cheza/reset.c
deleted file mode 100644
index 9b5810f20b..0000000000
--- a/src/mainboard/google/cheza/reset.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <ec/google/chromeec/ec.h>
-#include <reset.h>
-
-/* Can't do a "real" reset before the PMIC is initialized in QcLib (romstage),
- but this works well enough for our purposes. */
-void do_board_reset(void)
-{
- google_chromeec_reboot(0, EC_REBOOT_COLD, 0);
-}
diff --git a/src/mainboard/google/cheza/romstage.c b/src/mainboard/google/cheza/romstage.c
deleted file mode 100644
index e4f72a691f..0000000000
--- a/src/mainboard/google/cheza/romstage.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <arch/stages.h>
-#include <soc/usb.h>
-#include <soc/qclib_common.h>
-
-static void prepare_usb(void)
-{
- /*
- * Do DWC3 core and phy reset. Kick these resets
- * off early so they get at least 1ms to settle.
- */
- reset_usb1();
-}
-
-void platform_romstage_main(void)
-{
- prepare_usb();
-
- /* QCLib: DDR init & train */
- qclib_load_and_run();
-}