mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 08:51:31 +01:00
ipq9574: Add EUD check support
This change skip USB init if EUD is enable. Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org> Change-Id: I26b4177b1b4fdf08ab3fbff81a71eb09c3b8b4a3
This commit is contained in:
parent
ac5b7ca764
commit
31e210f2e7
2 changed files with 16 additions and 0 deletions
|
|
@ -284,6 +284,12 @@ void board_usb_deinit(int id)
|
|||
int nodeoff;
|
||||
char node_name[8];
|
||||
|
||||
if(readl(EUD_EUD_EN2))
|
||||
/*
|
||||
* Eud enable skipping deinit part
|
||||
*/
|
||||
return;
|
||||
|
||||
snprintf(node_name, sizeof(node_name), "usb%d", id);
|
||||
nodeoff = fdt_path_offset(gd->fdt_blob, node_name);
|
||||
if (fdtdec_get_int(gd->fdt_blob, nodeoff, "qcom,emulation", 0))
|
||||
|
|
@ -505,6 +511,11 @@ int ipq_board_usb_init(void)
|
|||
int i, nodeoff;
|
||||
char node_name[8];
|
||||
|
||||
if(readl(EUD_EUD_EN2)) {
|
||||
printf("USB: EUD Enable, skipping initialization\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < CONFIG_USB_MAX_CONTROLLER_COUNT; i++) {
|
||||
snprintf(node_name, sizeof(node_name), "usb%d", i);
|
||||
nodeoff = fdt_path_offset(gd->fdt_blob, node_name);
|
||||
|
|
|
|||
|
|
@ -238,6 +238,11 @@ __weak void board_pcie_clock_init(int id) {}
|
|||
unsigned int __invoke_psci_fn_smc(unsigned int, unsigned int,
|
||||
unsigned int, unsigned int);
|
||||
|
||||
/*
|
||||
* Eud register
|
||||
*/
|
||||
#define EUD_EUD_EN2 0x7A000
|
||||
|
||||
/**
|
||||
* Number of RAM partition entries which are usable by APPS.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue