Commit 5bc3643e authored by Ben Peled's avatar Ben Peled Committed by Marcin Wojtas
Browse files

plat: marvell: t9130: pass actual CP count for load_image



Add CN913x case to bl2_plat_get_cp_count.
Fix loading of cp1/2 image. This is a preparation
patch for adding CN913x SoC family support.

Change-Id: Id84a30203d20572fc0dfd3f91ea395c199a85fe9
Signed-off-by: default avatarBen Peled <bpeled@marvell.com>
parent ebf307bf
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define MVEBU_3900_DEV_ID (0x6025) #define MVEBU_3900_DEV_ID (0x6025)
#define MVEBU_80X0_DEV_ID (0x8040) #define MVEBU_80X0_DEV_ID (0x8040)
#define MVEBU_80X0_CP115_DEV_ID (0x8045) #define MVEBU_80X0_CP115_DEV_ID (0x8045)
#define MVEBU_CN9130_DEV_ID (0x7025)
#define MVEBU_CP110_SA_DEV_ID (0x110) #define MVEBU_CP110_SA_DEV_ID (0x110)
#define MVEBU_CP110_REF_ID_A1 1 #define MVEBU_CP110_REF_ID_A1 1
#define MVEBU_CP110_REF_ID_A2 2 #define MVEBU_CP110_REF_ID_A2 2
......
...@@ -138,6 +138,8 @@ uint32_t bl2_plat_get_cp_count(int ap_idx) ...@@ -138,6 +138,8 @@ uint32_t bl2_plat_get_cp_count(int ap_idx)
if (revision == MVEBU_80X0_DEV_ID || if (revision == MVEBU_80X0_DEV_ID ||
revision == MVEBU_80X0_CP115_DEV_ID) revision == MVEBU_80X0_CP115_DEV_ID)
return 2; return 2;
else if (revision == MVEBU_CN9130_DEV_ID)
return CP_COUNT;
else else
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment