Shelley Chen submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Shelley Chen: Looks good to me, approved
mainboard/google/herobrine: Configure SDCC clock

Configure 384MHz for eMMC clock and 50MHz for SD card clock.

BUG=b:182963902
TEST=Validated on qualcomm sc7280 development board

Change-Id: I8acbce58614add0228adc39289762da10937cbe2
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50585
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
---
M src/mainboard/google/herobrine/mainboard.c
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/google/herobrine/mainboard.c b/src/mainboard/google/herobrine/mainboard.c
index 365fad4..dc60e6e 100644
--- a/src/mainboard/google/herobrine/mainboard.c
+++ b/src/mainboard/google/herobrine/mainboard.c
@@ -1,11 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-only */

+#include "board.h"
+#include <boardid.h>
+#include <bootblock_common.h>
+#include <soc/clock.h>
+#include <console/console.h>
#include <device/device.h>
#include <bootblock_common.h>
+#include <soc/clock.h>

static void mainboard_init(struct device *dev)
{
-
+ /* Configure clock for eMMC */
+ clock_configure_sdcc(1, 384 * MHz);
+ /* Configure clock for SD card */
+ clock_configure_sdcc(2, 50 * MHz);
}

static void mainboard_enable(struct device *dev)

To view, visit change 50585. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8acbce58614add0228adc39289762da10937cbe2
Gerrit-Change-Number: 50585
Gerrit-PatchSet: 66
Gerrit-Owner: Ravi kumar <rbokka@codeaurora.org>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Sajida Bhanu <sbhanu@codeaurora.org>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: mturney mturney <mturney@codeaurora.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-CC: Ravi Kumar Bokka <c_rbokka@qualcomm.corp-partner.google.com>
Gerrit-MessageType: merged