Commit 2ec3221e authored by Marek Vasut's avatar Marek Vasut
Browse files

rcar_gen3: plat: Allow E3 auto-detection



Allow auto-detecting E3 when RCAR_LSI is set to RCAR_AUTO.
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
parent 5ad0e0dd
...@@ -28,7 +28,7 @@ static void bl2_realtime_cpg_init_m3n(void); ...@@ -28,7 +28,7 @@ static void bl2_realtime_cpg_init_m3n(void);
static void bl2_system_cpg_init_m3n(void); static void bl2_system_cpg_init_m3n(void);
#endif #endif
#if (RCAR_LSI == RCAR_E3) #if (RCAR_LSI == RCAR_AUTO) || (RCAR_LSI == RCAR_E3)
static void bl2_realtime_cpg_init_e3(void); static void bl2_realtime_cpg_init_e3(void);
static void bl2_system_cpg_init_e3(void); static void bl2_system_cpg_init_e3(void);
#endif #endif
...@@ -193,7 +193,7 @@ static void bl2_system_cpg_init_m3n(void) ...@@ -193,7 +193,7 @@ static void bl2_system_cpg_init_m3n(void)
} }
#endif #endif
#if (RCAR_LSI == RCAR_E3) #if (RCAR_LSI == RCAR_AUTO) || (RCAR_LSI == RCAR_E3)
static void bl2_realtime_cpg_init_e3(void) static void bl2_realtime_cpg_init_e3(void)
{ {
/* Realtime Module Stop Control Registers */ /* Realtime Module Stop Control Registers */
...@@ -251,6 +251,9 @@ void bl2_cpg_init(void) ...@@ -251,6 +251,9 @@ void bl2_cpg_init(void)
case RCAR_PRODUCT_M3N: case RCAR_PRODUCT_M3N:
bl2_realtime_cpg_init_m3n(); bl2_realtime_cpg_init_m3n();
break; break;
case RCAR_PRODUCT_E3:
bl2_realtime_cpg_init_e3();
break;
default: default:
panic(); panic();
break; break;
...@@ -284,6 +287,9 @@ void bl2_system_cpg_init(void) ...@@ -284,6 +287,9 @@ void bl2_system_cpg_init(void)
case RCAR_PRODUCT_M3N: case RCAR_PRODUCT_M3N:
bl2_system_cpg_init_m3n(); bl2_system_cpg_init_m3n();
break; break;
case RCAR_PRODUCT_E3:
bl2_system_cpg_init_e3();
break;
default: default:
panic(); panic();
break; break;
......
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