@@ -708,14 +708,17 @@ enum ifc_amask_sizes {
708708#define MRAM_BASE 0xFF800000
709709#define MRAM_BASE_PHYS_HIGH 0xFULL
710710
711+ /* eSDHC */
712+ #define ESDHC_BASE (CCSRBAR + 0x114000)
713+
711714
712715
713716/* eSPI */
714717#define ESPI_MAX_CS_NUM 4
715718#define ESPI_MAX_RX_LEN (1 << 16)
716719#define ESPI_FIFO_WORD 4
717720
718- #define ESPI_BASE (CCSRBAR + 0x7000 )
721+ #define ESPI_BASE (CCSRBAR + 0x110000 )
719722#define ESPI_SPMODE ((volatile uint32_t*)(ESPI_BASE + 0x00)) /* controls eSPI general operation mode */
720723#define ESPI_SPIE ((volatile uint32_t*)(ESPI_BASE + 0x04)) /* controls interrupts and report events */
721724#define ESPI_SPIM ((volatile uint32_t*)(ESPI_BASE + 0x08)) /* enables/masks interrupts */
@@ -1432,7 +1435,7 @@ static int hal_pcie_init(void)
14321435 /* TODO: Check if link is active. Read config PCI_LTSSM */
14331436 #if 0
14341437 link = pci_config_read16 (0 , 0 , 0 , PCI_LTSSM );
1435- enabled = (link >= PCI_LTSSM_L0 );
1438+ enabled = (link >= PCI_LTSSM_L0 );
14361439 #endif
14371440 }
14381441
@@ -2487,6 +2490,14 @@ int hal_dts_fixup(void* dts_addr)
24872490 fdt_setprop (fdt , off , "bus-range" , bus_range , sizeof (bus_range ));
24882491 }
24892492 }
2493+
2494+ /* fix SDHC */
2495+ off = fdt_node_offset_by_compatible (fdt , -1 , "fsl,esdhc" );
2496+ if (off != !FDT_ERR_NOTFOUND ) {
2497+ fdt_fixup_val (fdt , off , "sdhc@" , "clock-frequency" , hal_get_bus_clk ());
2498+ fdt_fixup_str (fdt , off , "cpu" , "status" , "okay" );
2499+ }
2500+
24902501#endif /* !BUILD_LOADER_STAGE1 */
24912502 (void )dts_addr ;
24922503 return 0 ;
0 commit comments