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>
This commit is contained in:
Shaik Sajida Bhanu 2020-11-11 19:33:42 +05:30 committed by Shelley Chen
parent 3fe6c03a39
commit 1de2dd25f7
1 changed files with 10 additions and 1 deletions

View File

@ -1,11 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* 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 <device/device.h>
#include <bootblock_common.h> #include <bootblock_common.h>
#include <soc/clock.h>
static void mainboard_init(struct device *dev) 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) static void mainboard_enable(struct device *dev)