bsp/qoriq: Add BMan and QMan portals to memory map

This commit is contained in:
Sebastian Huber
2015-10-28 13:06:02 +01:00
parent 9dab6ecaf0
commit dd863f8955
3 changed files with 11 additions and 4 deletions

View File

@@ -497,6 +497,11 @@ typedef struct {
extern volatile qoriq_ccsr qoriq;
#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
extern uint8_t qoriq_bman_portal[2][16777216];
extern uint8_t qoriq_qman_portal[2][16777216];
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@@ -33,5 +33,7 @@ REGION_ALIAS ("REGION_NVRAM", EMPTY);
bsp_section_robarrier_align = 0x1000000;
bsp_section_rwbarrier_align = 0x1000000;
qoriq = 0xfe000000;
qoriq_bman_portal = 0xf4000000;
qoriq_qman_portal = 0xf6000000;
INCLUDE linkcmds.base

View File

@@ -114,11 +114,11 @@ static const entry DATA config [] = {
ENTRY_IO(bsp_section_nocachenoload_begin, bsp_section_nocachenoload_size),
#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
/* BMan Portals */
ENTRY_DEV_CACHED(0xf4000000, 0x01000000),
ENTRY_DEV(0xf5000000, 0x01000000),
ENTRY_DEV_CACHED(&qoriq_bman_portal[0][0], sizeof(qoriq_bman_portal[0])),
ENTRY_DEV(&qoriq_bman_portal[1][0], sizeof(qoriq_bman_portal[1])),
/* QMan Portals */
ENTRY_DEV_CACHED(0xf6000000, 0x01000000),
ENTRY_DEV(0xf7000000, 0x01000000),
ENTRY_DEV_CACHED(&qoriq_qman_portal[0][0], sizeof(qoriq_qman_portal[0])),
ENTRY_DEV(&qoriq_qman_portal[1][0], sizeof(qoriq_qman_portal[1])),
#endif
ENTRY_DEV(&qoriq, sizeof(qoriq))
};