mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-09 10:47:41 +01:00
ipq5018: skip USB init & deinit if EUD enable.
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org> Change-Id: I156d64a35048d5170424047e08b34304219357f0
This commit is contained in:
parent
82e2d85569
commit
0bf31a7cd2
2 changed files with 18 additions and 1 deletions
|
|
@ -1077,6 +1077,13 @@ void board_usb_deinit(int id)
|
|||
{
|
||||
int nodeoff, ssphy;
|
||||
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))
|
||||
|
|
@ -1244,12 +1251,17 @@ int ipq_board_usb_init(void)
|
|||
int i, nodeoff, ssphy;
|
||||
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);
|
||||
if (nodeoff < 0){
|
||||
printf("USB: Node Not found, skipping initialization\n");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
ssphy = fdtdec_get_int(gd->fdt_blob, nodeoff, "ssphy", 0);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@
|
|||
#include <asm/arch-qca-common/qca_common.h>
|
||||
#include "phy.h"
|
||||
|
||||
/*
|
||||
* Eud register
|
||||
*/
|
||||
#define EUD_EUD_EN2 0x0005A000
|
||||
|
||||
#define MSM_SDC1_BASE 0x7800000
|
||||
#define MSM_SDC1_SDHCI_BASE 0x7804000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue