summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/birman_plus/chromeos.c
diff options
context:
space:
mode:
authorAnand Vaikar <a.vaikar2021@gmail.com>2024-02-06 11:14:17 +0530
committerFelix Held <felix-coreboot@felixheld.de>2024-02-21 19:03:52 +0000
commit7ae2e2840d57060a27859086a076087389e39b77 (patch)
tree2b9ae73963b8f409abe7288d6c7b8232aaa8b450 /src/mainboard/amd/birman_plus/chromeos.c
parent0978973d3f6665e5b6e6af49b048a8d0c5e833d5 (diff)
mb/amd/birman_plus: Add Birman+ board support for Phoenix SOC
1) Initial commit for upstreaming Birmanplus mainboard changes. 2) Add the DXIO descriptors for Birmanplus mainboard. Change-Id: I075dcf0214f8dc8b33b0e429d83d270b2f0952e1 Signed-off-by: Anand Vaikar <a.vaikar2021@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/amd/birman_plus/chromeos.c')
-rw-r--r--src/mainboard/amd/birman_plus/chromeos.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mainboard/amd/birman_plus/chromeos.c b/src/mainboard/amd/birman_plus/chromeos.c
new file mode 100644
index 0000000000..515da94df1
--- /dev/null
+++ b/src/mainboard/amd/birman_plus/chromeos.c
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <bootmode.h>
+#include <boot/coreboot_tables.h>
+#include <gpio.h>
+#include <types.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
+void fill_lb_gpios(struct lb_gpios *gpios)
+{
+ struct lb_gpio chromeos_gpios[] = {};
+ lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
+}
+
+int get_write_protect_state(void)
+{
+ /* Birman doesn't have a write protect pin */
+ return 0;
+}
+
+DECLARE_NO_CROS_GPIOS();