diff options
author | Tom Rini <trini@konsulko.com> | 2019-08-22 07:29:54 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-22 07:29:54 -0400 |
commit | c399dca83434290ac502207f2d6db13c59d89267 (patch) | |
tree | 0e6ed8aa92f4586ca42b167d55e1c315d6cd2a58 /drivers/net/fsl-mc/mc.c | |
parent | 1e60ccd94318fb86610e1e28512b2aaac5f4b069 (diff) | |
parent | b249fcba00e093149f8424492da155572f12d7bb (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
- i2c dm model support of lx2160a, ls1088a, lx2088a, ls1028a
- icid setup for ls1028a, ls1088a
- other small fixes
Diffstat (limited to 'drivers/net/fsl-mc/mc.c')
-rw-r--r-- | drivers/net/fsl-mc/mc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 1d96e4bdc2f..c980ba4edb9 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -282,6 +282,16 @@ static int mc_fixup_dpl_mac_addr(void *blob, int dpmac_id, MC_FIXUP_DPL); } +void fdt_fixup_mc_ddr(u64 *base, u64 *size) +{ + u64 mc_size = mc_get_dram_block_size(); + + if (mc_size < MC_DRAM_BLOCK_DEFAULT_SIZE) { + *base = mc_get_dram_addr() + mc_size; + *size = MC_DRAM_BLOCK_DEFAULT_SIZE - mc_size; + } +} + void fdt_fsl_mc_fixup_iommu_map_entry(void *blob) { u32 *prop; |