From 1de2dd25f72b2cc425acd3f83ecf0eb0a1486702 Mon Sep 17 00:00:00 2001 From: Shaik Sajida Bhanu Date: Wed, 11 Nov 2020 19:33:42 +0530 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50585 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen --- src/mainboard/google/herobrine/mainboard.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/herobrine/mainboard.c b/src/mainboard/google/herobrine/mainboard.c index 365fad41aa..dc60e6e2c4 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 +#include +#include +#include #include #include +#include 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)