Hung-Te Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36767 )
Change subject: mb/google/kukui: Support panels using ANX7625
......................................................................
mb/google/kukui: Support panels using ANX7625
For Kukui followers using ANX7625 eDP bridge to access panel.
BUG=b:140132295
TEST=make # board = kukui
Change-Id: I7dc9c68d076fd0ba4e963cde9414d25c17b332cb
Signed-off-by: Hung-Te Lin <hungte(a)chromium.org>
---
M src/mainboard/google/kukui/Kconfig
M src/mainboard/google/kukui/Makefile.inc
A src/mainboard/google/kukui/panel_anx7625.c
3 files changed, 76 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/67/36767/1
diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig
index e6d604e..3b53478 100644
--- a/src/mainboard/google/kukui/Kconfig
+++ b/src/mainboard/google/kukui/Kconfig
@@ -42,6 +42,7 @@
select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER
select DRIVER_PARADE_PS8640 if BOARD_GOOGLE_JACUZZI
+ select DRIVER_ANALOGIX_ANX7625 if BOARD_GOOGLE_JUNIPER || BOARD_GOOGLE_DAMU || BOARD_GOOGLE_KAPPA
select MT8183_DRAM_EMCP if BOARD_GOOGLE_KRANE
config MAINBOARD_DIR
diff --git a/src/mainboard/google/kukui/Makefile.inc b/src/mainboard/google/kukui/Makefile.inc
index 2e8a79a..7839422 100644
--- a/src/mainboard/google/kukui/Makefile.inc
+++ b/src/mainboard/google/kukui/Makefile.inc
@@ -30,4 +30,6 @@
ramstage-$(CONFIG_BOARD_GOOGLE_KRANE) += panel_krane.c
ramstage-$(CONFIG_BOARD_GOOGLE_KUKUI) += panel_kukui.c
ramstage-$(CONFIG_DRIVER_PARADE_PS8640) += panel_ps8640.c
+ramstage-$(CONFIG_DRIVER_ANALOGIX_ANX7625) += panel_anx7625.c
+
ramstage-y += reset.c
diff --git a/src/mainboard/google/kukui/panel_anx7625.c b/src/mainboard/google/kukui/panel_anx7625.c
new file mode 100644
index 0000000..10cbf5c
--- /dev/null
+++ b/src/mainboard/google/kukui/panel_anx7625.c
@@ -0,0 +1,73 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2019 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <console/console.h>
+#include <delay.h>
+#include <drivers/analogix/anx7625/anx7625.h>
+#include <edid.h>
+#include <gpio.h>
+#include <soc/i2c.h>
+#include <string.h>
+
+#include "panel.h"
+
+
+static void power_on_anx7625(void)
+{
+ gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 0);
+ gpio_output(GPIO_PP1200_MIPIBRDG_EN, 1); //1.0
+ gpio_output(GPIO_VDDIO_MIPIBRDG_EN, 1); //3.3
+ gpio_output(GPIO_PP1800_LCM_EN, 1); //1.8
+ mdelay(2);
+ gpio_output(GPIO_MIPIBRDG_PWRDN_L_1V8, 1);
+ mdelay(10);
+ gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 1);
+ gpio_output(GPIO_PP3300_LCM_EN, 1);
+}
+
+static void dummy_power_on(void)
+{
+ /* The panel has been already powered on when getting panel information
+ * so we should do nothing here.
+ */
+}
+
+static struct panel_serializable_data anx7625_data = {
+ .orientation = LB_FB_ORIENTATION_NORMAL,
+ .init = { INIT_END_CMD },
+};
+
+static struct panel_description anx7625_panel = {
+ .s = &anx7625_data,
+ .power_on = dummy_power_on,
+};
+
+struct panel_description *get_panel_description(int panel_id)
+{
+ /* To read panel EDID, we have to first power on anx7625. */
+ power_on_anx7625();
+
+ u8 i2c_bus = 4;
+ mtk_i2c_bus_init(i2c_bus);
+
+ anx7625_init(i2c_bus);
+ struct edid *edid = &anx7625_data.edid;
+ if (anx7625_dp_get_edid(i2c_bus, edid)) {
+ printk(BIOS_ERR, "Can't get panel's edid\n");
+ return NULL;
+ }
+ anx7625_dp_start(i2c_bus, edid);
+ return &anx7625_panel;
+}
--
To view, visit https://review.coreboot.org/c/coreboot/+/36767
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7dc9c68d076fd0ba4e963cde9414d25c17b332cb
Gerrit-Change-Number: 36767
Gerrit-PatchSet: 1
Gerrit-Owner: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-MessageType: newchange
awokd(a)danwin1210.me has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36192 )
Change subject: vc/amd/agesa/f16kb: Fix out of bounds read
......................................................................
vc/amd/agesa/f16kb: Fix out of bounds read
ByteLane is incorrectly used unitialized from prior for statement.
Found nothing in following code that attempted to reference
PassTestRxEnDly at that index, so appears safe to delete.
Additionally, found nothing following with the
OutOfRange[ByteLane]==TRUE condition that would expect
'PassTestRxEnDly[ByteLane] = RxOrig[ByteLane];'.
Change-Id: Icd18a146aba6b6120d37518d8c40c7efbc05afa3
Signed-off-by: Joe Moore <awokd(a)danwin1210.me>
Found-by: Coverity CID 1241804
---
M src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/mtthrcSeedTrain.c
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/36192/1
diff --git a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/mtthrcSeedTrain.c b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/mtthrcSeedTrain.c
index ce295ac..caf8f51 100644
--- a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/mtthrcSeedTrain.c
+++ b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Tech/mtthrcSeedTrain.c
@@ -314,7 +314,6 @@
//
IDS_HDT_CONSOLE (MEM_FLOW, "\n\t\t Setting PassTestRxEnDly\n");
IDS_HDT_CONSOLE (MEM_FLOW, "\t PassTestRxEnDly: ");
- PassTestRxEnDly[ByteLane] = RxOrig[ByteLane];
for (ByteLane = 0; ByteLane < MaxByteLanes; ByteLane++) {
if (RxEnDlyTargetFound[ByteLane] == FALSE) {
// Calculate "PassTestRxEnDly" from current "RxEnDly"
--
To view, visit https://review.coreboot.org/c/coreboot/+/36192
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Icd18a146aba6b6120d37518d8c40c7efbc05afa3
Gerrit-Change-Number: 36192
Gerrit-PatchSet: 1
Gerrit-Owner: awokd(a)danwin1210.me
Gerrit-MessageType: newchange
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36177 )
Change subject: util/lint: Enforce SPDX licenses only in src/acpi directory
......................................................................
util/lint: Enforce SPDX licenses only in src/acpi directory
Signed-off-by: Martin Roth <martin(a)coreboot.org>
Change-Id: I9241f96eed652c8ca72d4f4a94f860a875e55680
---
M util/lint/lint-stable-000-license-headers
1 file changed, 5 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/36177/1
diff --git a/util/lint/lint-stable-000-license-headers b/util/lint/lint-stable-000-license-headers
index 441e679..fcaf32c 100755
--- a/util/lint/lint-stable-000-license-headers
+++ b/util/lint/lint-stable-000-license-headers
@@ -1,22 +1,14 @@
#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
# This file is part of the coreboot project.
#
-# Copyright (C) 2016 Google Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-#
# DESCR: Check that files have license headers
+# Directories requiring SPDX Identifiers only
+util/lint/lint-000-license-headers "src/acpi" SPDX_ONLY
+
# Top level
-util/lint/lint-000-license-headers "src/acpi src/arch src/commonlib src/console \
+util/lint/lint-000-license-headers "src/arch src/commonlib src/console \
src/cpu src/device src/ec src/mainboard src/northbridge src/soc \
src/southbridge src/superio"
--
To view, visit https://review.coreboot.org/c/coreboot/+/36177
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9241f96eed652c8ca72d4f4a94f860a875e55680
Gerrit-Change-Number: 36177
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange