aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas/rzg/pfc/pfc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/renesas/rzg/pfc/pfc_init.c')
-rw-r--r--drivers/renesas/rzg/pfc/pfc_init.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/renesas/rzg/pfc/pfc_init.c b/drivers/renesas/rzg/pfc/pfc_init.c
index 61ad6e6f6b..762450cd2b 100644
--- a/drivers/renesas/rzg/pfc/pfc_init.c
+++ b/drivers/renesas/rzg/pfc/pfc_init.c
@@ -9,10 +9,14 @@
#include <lib/mmio.h>
#if RCAR_LSI == RCAR_AUTO
+#include "G2E/pfc_init_g2e.h"
#include "G2H/pfc_init_g2h.h"
#include "G2M/pfc_init_g2m.h"
#include "G2N/pfc_init_g2n.h"
#endif /* RCAR_LSI == RCAR_AUTO */
+#if (RCAR_LSI == RZ_G2E)
+#include "G2E/pfc_init_g2e.h"
+#endif /* RCAR_LSI == RZ_G2N */
#if (RCAR_LSI == RZ_G2H)
#include "G2H/pfc_init_g2h.h"
#endif /* RCAR_LSI == RZ_G2H */
@@ -54,6 +58,9 @@ void rzg_pfc_init(void)
case PRR_PRODUCT_M3N:
pfc_init_g2n();
break;
+ case PRR_PRODUCT_E3:
+ pfc_init_g2e();
+ break;
default:
PRR_PRODUCT_ERR(reg);
break;
@@ -82,6 +89,13 @@ void rzg_pfc_init(void)
pfc_init_g2n();
#endif /* RCAR_LSI != RZ_G2N */
break;
+ case PRR_PRODUCT_E3:
+#if RCAR_LSI != RZ_G2E
+ PRR_PRODUCT_ERR(reg);
+#else
+ pfc_init_g2e();
+#endif
+ break;
default:
PRR_PRODUCT_ERR(reg);
break;
@@ -103,6 +117,11 @@ void rzg_pfc_init(void)
PRR_PRODUCT_ERR(reg);
}
pfc_init_g2n();
+#elif (RCAR_LSI == RZ_G2E)
+ if ((reg & PRR_PRODUCT_MASK) != PRR_PRODUCT_E3) {
+ PRR_PRODUCT_ERR(reg);
+ }
+ pfc_init_g2e();
#else /* RCAR_LSI == RZ_G2M */
#error "Don't have PFC initialize routine(unknown)."
#endif /* RCAR_LSI == RZ_G2M */