mainboard/google/bluey: Enable display clocks and MMCX power rail
Add support to enable MMCX power rail and vote for MM0 BCM resource required for display. This change includes support to enable display clocks. TEST= 1. Create an image.serial.bin and ensure it boots on X1P42100. 2. Verified MMCX rail enablement and MM0 BCM vote using ARC and BCM AOP dump. Serial Log: [INFO ] RPMH_REG: Initialized mmcx.lvl at addr=0x30080 [INFO ] ARC regulator initialized successfully [DEBUG] RPMH_REG: Sent active request for mmcx.lvl [INFO ] ARC level has been set successfully [DEBUG] BCM: Found address 0x00050024 for resource MM0 [INFO ] BCM: Successfully voted for MM0 (addr=0x00050024, val=0x60004001) [INFO ] BCM vote for MM0 sent successfully 3. Verified if the clocks are enabled by taking clock dump. Clock enablement is verified by dumping the 31st bit of the corresponding clock’s CBCR register. A value of 0 in bit 31 indicates that the clock is ON. The register details are part of HRD-X1P42100-S1 document. https://docs.qualcomm.com/bundle/resource/topics/HRD-X1P42100-S1/ Change-Id: I89715fb4e3a6122388068a819e24cb409e204155 Signed-off-by: Swathi Tamilselvan <tswathi@qualcomm.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90507 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e1e7b9b203
commit
0c26c4494d
1 changed files with 7 additions and 1 deletions
|
|
@ -9,10 +9,12 @@
|
|||
#include <device/device.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <gpio.h>
|
||||
#include <soc/clock.h>
|
||||
#include <soc/pcie.h>
|
||||
#include <soc/qupv3_config_common.h>
|
||||
#include <soc/qup_se_handlers_common.h>
|
||||
#include "board.h"
|
||||
#include <soc/rpmh_config.h>
|
||||
#include <soc/usb/usb.h>
|
||||
|
||||
/*
|
||||
|
|
@ -87,7 +89,11 @@ static void display_startup(void)
|
|||
return;
|
||||
}
|
||||
|
||||
/* TODO: add logic for display init */
|
||||
/* Initialize RPMh subsystem and display power rails */
|
||||
if (display_rpmh_init() != CB_SUCCESS)
|
||||
return;
|
||||
|
||||
enable_mdss_clk();
|
||||
}
|
||||
|
||||
static void mainboard_init(struct device *dev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue