summaryrefslogtreecommitdiffstats
path: root/include/fsl-mc/fsl_mc.h
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-11-04 12:25:59 +0530
committerYork Sun <yorksun@freescale.com>2015-11-30 08:53:03 -0800
commit1730a17db9a9ce21380ba99eb4d2f10884186cca (patch)
tree72d2aee76db6b124080447f500723d1d72d4a898 /include/fsl-mc/fsl_mc.h
parentfb4a87a73785ad4d6e204978ad727564f9fb58a4 (diff)
downloadtalos-obmc-uboot-1730a17db9a9ce21380ba99eb4d2f10884186cca.tar.gz
talos-obmc-uboot-1730a17db9a9ce21380ba99eb4d2f10884186cca.zip
driver: net: fsl-mc: Create DPAA2 object at run-time
Freescale's DPAA2 ethernet driver depends upon the static DPL for the DPRC, DPNI, DPBP, DPIO objects. Instead of static objects, Create DPNI, DPBP, DPIO objects at run-time. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/fsl-mc/fsl_mc.h')
-rw-r--r--include/fsl-mc/fsl_mc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fsl-mc/fsl_mc.h b/include/fsl-mc/fsl_mc.h
index c8f168a3d2..ffe6da54b7 100644
--- a/include/fsl-mc/fsl_mc.h
+++ b/include/fsl-mc/fsl_mc.h
@@ -29,6 +29,9 @@
((void __iomem *)((uintptr_t)SOC_MC_PORTALS_BASE_ADDR + \
(_portal_id) * SOC_MC_PORTAL_STRIDE))
+#define MC_PORTAL_OFFSET_TO_PORTAL_ID(_portal_offset) \
+ ((_portal_offset) / SOC_MC_PORTAL_STRIDE)
+
struct mc_ccsr_registers {
u32 reg_gcr1;
u32 reserved1;
@@ -57,5 +60,5 @@ int get_aiop_apply_status(void);
u64 mc_get_dram_addr(void);
unsigned long mc_get_dram_block_size(void);
int fsl_mc_ldpaa_init(bd_t *bis);
-void fsl_mc_ldpaa_exit(bd_t *bis);
+int fsl_mc_ldpaa_exit(bd_t *bd);
#endif
OpenPOWER on IntegriCloud