From e32b6228fe3974f50cea757b64bad13bb56e3402 Mon Sep 17 00:00:00 2001 From: Marek Vasut <marek.vasut+renesas@gmail.com> Date: Wed, 12 Dec 2018 16:35:00 +0100 Subject: [PATCH] rcar_gen3: drivers: qos: Synchronize tables Synchronize the QoS tables with Renesas ATF release 2.0.0 . Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> --- .../renesas/rcar/qos/E3/qos_init_e3_v10.c | 10 +----- .../rcar/qos/E3/qos_init_e3_v10_mstat390.h | 8 ++--- .../rcar/qos/E3/qos_init_e3_v10_mstat780.h | 8 ++--- .../renesas/rcar/qos/H3/qos_init_h3_v20.c | 3 +- .../renesas/rcar/qos/H3/qos_init_h3_v30.c | 5 ++- .../rcar/qos/H3/qos_init_h3_v30_mstat195.h | 6 ++-- .../rcar/qos/H3/qos_init_h3_v30_mstat390.h | 6 ++-- .../renesas/rcar/qos/H3/qos_init_h3n_v30.c | 11 ++----- .../rcar/qos/H3/qos_init_h3n_v30_mstat195.h | 6 ++-- .../rcar/qos/H3/qos_init_h3n_v30_mstat390.h | 6 ++-- .../renesas/rcar/qos/M3/qos_init_m3_v11.c | 3 +- .../renesas/rcar/qos/M3N/qos_init_m3n_v10.c | 10 +----- .../rcar/qos/M3N/qos_init_m3n_v10_mstat195.h | 4 +-- .../rcar/qos/M3N/qos_init_m3n_v10_mstat390.h | 4 +-- drivers/staging/renesas/rcar/qos/qos_common.h | 11 ++++++- drivers/staging/renesas/rcar/qos/qos_init.c | 33 +++++++------------ 16 files changed, 56 insertions(+), 78 deletions(-) diff --git a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c index 593fefb62..db519121f 100644 --- a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c +++ b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c @@ -12,7 +12,7 @@ #include "../qos_reg.h" #include "qos_init_e3_v10.h" -#define RCAR_QOS_VERSION "rev.0.02" +#define RCAR_QOS_VERSION "rev.0.05" #define QOSCTRL_EARLYR (QOS_BASE1 + 0x0060U) #define QOSCTRL_FSS (QOS_BASE1 + 0x0048U) @@ -134,14 +134,6 @@ void qos_init_e3_v10(void) } } - /* 3DG bus Leaf setting */ - io_write_32(GPU_ACT_GRD, 0x00001234U); - io_write_32(GPU_ACT0, 0x00000000U); - io_write_32(GPU_ACT1, 0x00000000U); - io_write_32(GPU_ACT2, 0x00000000U); - io_write_32(GPU_ACT3, 0x00000000U); - io_write_32(GPU_ACT_GRD, 0x00000000U); - /* RT bus Leaf setting */ io_write_32(RT_ACT0, 0x00000000U); io_write_32(RT_ACT1, 0x00000000U); diff --git a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat390.h b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat390.h index cf376a286..d7f9d1486 100644 --- a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat390.h +++ b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat390.h @@ -27,20 +27,20 @@ static uint64_t mstat_fix[] = { /* 0x0098, */ 0x0000000000000000UL, /* 0x00a0, */ 0x000C08380000FFFFUL, /* 0x00a8, */ 0x000C04110000FFFFUL, - /* 0x00b0, */ 0x000C04110000FFFFUL, + /* 0x00b0, */ 0x000C04150000FFFFUL, /* 0x00b8, */ 0x0000000000000000UL, /* 0x00c0, */ 0x000C08380000FFFFUL, /* 0x00c8, */ 0x000C04110000FFFFUL, - /* 0x00d0, */ 0x000C04110000FFFFUL, + /* 0x00d0, */ 0x000C04150000FFFFUL, /* 0x00d8, */ 0x0000000000000000UL, /* 0x00e0, */ 0x0000000000000000UL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x001018580000FFFFUL, - /* 0x00f8, */ 0x000C04400000FFFFUL, + /* 0x00f8, */ 0x000C084F0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x001008580000FFFFUL, - /* 0x0118, */ 0x000C19660000FFFFUL, + /* 0x0118, */ 0x000C21E40000FFFFUL, /* 0x0120, */ 0x0000000000000000UL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, diff --git a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat780.h b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat780.h index 002a664e7..439cafed8 100644 --- a/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat780.h +++ b/drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10_mstat780.h @@ -27,20 +27,20 @@ static uint64_t mstat_fix[] = { /* 0x0098, */ 0x0000000000000000UL, /* 0x00a0, */ 0x000C10700000FFFFUL, /* 0x00a8, */ 0x000C08210000FFFFUL, - /* 0x00b0, */ 0x000C08210000FFFFUL, + /* 0x00b0, */ 0x000C082A0000FFFFUL, /* 0x00b8, */ 0x0000000000000000UL, /* 0x00c0, */ 0x000C10700000FFFFUL, /* 0x00c8, */ 0x000C08210000FFFFUL, - /* 0x00d0, */ 0x000C08210000FFFFUL, + /* 0x00d0, */ 0x000C082A0000FFFFUL, /* 0x00d8, */ 0x0000000000000000UL, /* 0x00e0, */ 0x0000000000000000UL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x00102CAF0000FFFFUL, - /* 0x00f8, */ 0x000C087F0000FFFFUL, + /* 0x00f8, */ 0x000C0C9D0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x00100CAF0000FFFFUL, - /* 0x0118, */ 0x000C32CC0000FFFFUL, + /* 0x0118, */ 0x000C43C80000FFFFUL, /* 0x0120, */ 0x0000000000000000UL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c index f27a7dce6..c4f8701cd 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c @@ -12,7 +12,8 @@ #include "../qos_reg.h" #include "qos_init_h3_v20.h" -#define RCAR_QOS_VERSION "rev.0.19" + +#define RCAR_QOS_VERSION "rev.0.20" #define QOSWT_TIME_BANK0 (20000000U) /* unit:ns */ diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c index b3e65df94..95f4810f6 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c @@ -12,7 +12,8 @@ #include "../qos_reg.h" #include "qos_init_h3_v30.h" -#define RCAR_QOS_VERSION "rev.0.07" + +#define RCAR_QOS_VERSION "rev.0.10" #define QOSCTRL_FSS (QOS_BASE1 + 0x0048U) @@ -226,8 +227,6 @@ void qos_init_h3_v30(void) io_write_32(AXI_TR3CR, 0x00010000U); io_write_32(AXI_TR4CR, 0x00010000U); - /* 3DG bus Leaf setting */ - /* RT bus Leaf setting */ io_write_32(RT_ACT0, 0x00000000U); io_write_32(RT_ACT1, 0x00000000U); diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat195.h b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat195.h index daa4076e7..28a240fe1 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat195.h +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat195.h @@ -36,12 +36,12 @@ static uint64_t mstat_fix[] = { /* 0x00e0, */ 0x00100C090000FFFFUL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x001024090000FFFFUL, - /* 0x00f8, */ 0x000C08080000FFFFUL, + /* 0x00f8, */ 0x000C100D0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x00100C090000FFFFUL, - /* 0x0118, */ 0x000C18180000FFFFUL, - /* 0x0120, */ 0x000C18180000FFFFUL, + /* 0x0118, */ 0x000C1C1B0000FFFFUL, + /* 0x0120, */ 0x000C1C1B0000FFFFUL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, /* 0x0138, */ 0x00100C0B0000FFFFUL, diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat390.h b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat390.h index f72165c16..def658512 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat390.h +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30_mstat390.h @@ -36,12 +36,12 @@ static uint64_t mstat_fix[] = { /* 0x00e0, */ 0x001014110000FFFFUL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x001044110000FFFFUL, - /* 0x00f8, */ 0x000C10100000FFFFUL, + /* 0x00f8, */ 0x000C1C1A0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x001014110000FFFFUL, - /* 0x0118, */ 0x000C302F0000FFFFUL, - /* 0x0120, */ 0x000C302F0000FFFFUL, + /* 0x0118, */ 0x000C38360000FFFFUL, + /* 0x0120, */ 0x000C38360000FFFFUL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, /* 0x0138, */ 0x001018150000FFFFUL, diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c index e4909b9c1..71e039628 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c @@ -12,7 +12,8 @@ #include "../qos_reg.h" #include "qos_init_h3n_v30.h" -#define RCAR_QOS_VERSION "rev.0.03" + +#define RCAR_QOS_VERSION "rev.0.06" #define QOSCTRL_FSS (QOS_BASE1 + 0x0048U) @@ -220,14 +221,6 @@ void qos_init_h3n_v30(void) io_write_32(AXI_TR3CR, 0x00010000U); io_write_32(AXI_TR4CR, 0x00010000U); - /* 3DG bus Leaf setting */ - io_write_32(GPU_ACT_GRD, 0x00001234U); - io_write_32(GPU_ACT0, 0x00000000U); - io_write_32(GPU_ACT1, 0x00000000U); - io_write_32(GPU_ACT2, 0x00000000U); - io_write_32(GPU_ACT3, 0x00000000U); - io_write_32(GPU_ACT_GRD, 0x00000000U); - /* RT bus Leaf setting */ io_write_32(RT_ACT0, 0x00000000U); io_write_32(RT_ACT1, 0x00000000U); diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat195.h b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat195.h index b73e90ba9..6dbc88a05 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat195.h +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat195.h @@ -36,12 +36,12 @@ static uint64_t mstat_fix[] = { /* 0x00e0, */ 0x00100C090000FFFFUL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x001024090000FFFFUL, - /* 0x00f8, */ 0x000C08080000FFFFUL, + /* 0x00f8, */ 0x000C100D0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x00100C090000FFFFUL, - /* 0x0118, */ 0x000C18180000FFFFUL, - /* 0x0120, */ 0x000C18180000FFFFUL, + /* 0x0118, */ 0x000C1C1B0000FFFFUL, + /* 0x0120, */ 0x000C1C1B0000FFFFUL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, /* 0x0138, */ 0x00100C0B0000FFFFUL, diff --git a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat390.h b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat390.h index 1b7c38377..880211c7e 100644 --- a/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat390.h +++ b/drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30_mstat390.h @@ -36,12 +36,12 @@ static uint64_t mstat_fix[] = { /* 0x00e0, */ 0x001014110000FFFFUL, /* 0x00e8, */ 0x0000000000000000UL, /* 0x00f0, */ 0x001044110000FFFFUL, - /* 0x00f8, */ 0x000C10100000FFFFUL, + /* 0x00f8, */ 0x000C1C1A0000FFFFUL, /* 0x0100, */ 0x0000000000000000UL, /* 0x0108, */ 0x0000000000000000UL, /* 0x0110, */ 0x001014110000FFFFUL, - /* 0x0118, */ 0x000C302F0000FFFFUL, - /* 0x0120, */ 0x000C302F0000FFFFUL, + /* 0x0118, */ 0x000C38360000FFFFUL, + /* 0x0120, */ 0x000C38360000FFFFUL, /* 0x0128, */ 0x0000000000000000UL, /* 0x0130, */ 0x0000000000000000UL, /* 0x0138, */ 0x001018150000FFFFUL, diff --git a/drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c b/drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c index 3186cf68f..10fa6b4e2 100644 --- a/drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c +++ b/drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c @@ -12,7 +12,8 @@ #include "../qos_reg.h" #include "qos_init_m3_v11.h" -#define RCAR_QOS_VERSION "rev.0.17" +#define RCAR_QOS_VERSION "rev.0.18" + #define QOSWT_TIME_BANK0 (20000000U) /* unit:ns */ diff --git a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c index 0be68c3cd..52a3ca2ce 100644 --- a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c +++ b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c @@ -12,7 +12,7 @@ #include "../qos_reg.h" #include "qos_init_m3n_v10.h" -#define RCAR_QOS_VERSION "rev.0.06" +#define RCAR_QOS_VERSION "rev.0.08" #define QOSCTRL_EARLYR (QOS_BASE1 + 0x0060U) #define QOSCTRL_FSS (QOS_BASE1 + 0x0048U) @@ -198,14 +198,6 @@ void qos_init_m3n_v10(void) #endif /* RCAR_REWT_TRAINING != RCAR_REWT_TRAINING_DISABLE */ } - /* 3DG bus Leaf setting */ - io_write_32(GPU_ACT_GRD, 0x00001234U); - io_write_32(GPU_ACT0, 0x00000000U); - io_write_32(GPU_ACT1, 0x00000000U); - io_write_32(GPU_ACT2, 0x00000000U); - io_write_32(GPU_ACT3, 0x00000000U); - io_write_32(GPU_ACT_GRD, 0x00000000U); - /* RT bus Leaf setting */ io_write_32(RT_ACT0, 0x00000000U); io_write_32(RT_ACT1, 0x00000000U); diff --git a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat195.h b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat195.h index d30e95f5a..9b8b9e926 100644 --- a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat195.h +++ b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat195.h @@ -27,11 +27,11 @@ static uint64_t mstat_fix[] = { /* 0x0098, */ 0x0000000000000000UL, /* 0x00a0, */ 0x000C041D0000FFFFUL, /* 0x00a8, */ 0x000C04090000FFFFUL, - /* 0x00b0, */ 0x000C04090000FFFFUL, + /* 0x00b0, */ 0x000C040B0000FFFFUL, /* 0x00b8, */ 0x0000000000000000UL, /* 0x00c0, */ 0x000C041D0000FFFFUL, /* 0x00c8, */ 0x000C04090000FFFFUL, - /* 0x00d0, */ 0x000C04090000FFFFUL, + /* 0x00d0, */ 0x000C040B0000FFFFUL, /* 0x00d8, */ 0x0000000000000000UL, /* 0x00e0, */ 0x0000000000000000UL, /* 0x00e8, */ 0x0000000000000000UL, diff --git a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat390.h b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat390.h index 0dc37cad8..19143ed98 100644 --- a/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat390.h +++ b/drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10_mstat390.h @@ -27,11 +27,11 @@ static uint64_t mstat_fix[] = { /* 0x0098, */ 0x0000000000000000UL, /* 0x00a0, */ 0x000C08390000FFFFUL, /* 0x00a8, */ 0x000C04110000FFFFUL, - /* 0x00b0, */ 0x000C04110000FFFFUL, + /* 0x00b0, */ 0x000C04150000FFFFUL, /* 0x00b8, */ 0x0000000000000000UL, /* 0x00c0, */ 0x000C08390000FFFFUL, /* 0x00c8, */ 0x000C04110000FFFFUL, - /* 0x00d0, */ 0x000C04110000FFFFUL, + /* 0x00d0, */ 0x000C04150000FFFFUL, /* 0x00d8, */ 0x0000000000000000UL, /* 0x00e0, */ 0x0000000000000000UL, /* 0x00e8, */ 0x0000000000000000UL, diff --git a/drivers/staging/renesas/rcar/qos/qos_common.h b/drivers/staging/renesas/rcar/qos/qos_common.h index 0174d5bfc..9bad424fb 100644 --- a/drivers/staging/renesas/rcar/qos/qos_common.h +++ b/drivers/staging/renesas/rcar/qos/qos_common.h @@ -9,6 +9,15 @@ #define RCAR_REF_DEFAULT (0U) +/* define used for get_refperiod. */ +/* REFPERIOD_CYCLE need smaller than QOSWT_WTSET0_CYCLEs */ +/* refere to plat/renesas/rcar/ddr/ddr_a/ddr_init_e3.h for E3. */ +#if (RCAR_REF_INT == RCAR_REF_DEFAULT) /* REF default */ +#define REFPERIOD_CYCLE ((126 * BASE_SUB_SLOT_NUM * 1000U)/400) /* unit:ns */ +#else /* REF option */ +#define REFPERIOD_CYCLE ((252 * BASE_SUB_SLOT_NUM * 1000U)/400) /* unit:ns */ +#endif + #if (RCAR_LSI == RCAR_E3) /* define used for E3 */ #if (RCAR_REF_INT == RCAR_REF_DEFAULT) /* REF 3.9usec */ @@ -19,7 +28,7 @@ #define OPERATING_FREQ_E3 (266U) /* MHz */ #define SL_INIT_SSLOTCLK_E3 (SUB_SLOT_CYCLE_E3 -1U) -#define QOSWT_WTSET0_CYCLE_E3 ((SUB_SLOT_CYCLE_E3 * BASE_SUB_SLOT_NUM * 1000U)/OPERATING_FREQ_E3) /* unit:ns */ +/* #define QOSWT_WTSET0_CYCLE_E3 ((SUB_SLOT_CYCLE_E3 * BASE_SUB_SLOT_NUM * 1000U)/OPERATING_FREQ_E3) */ /* unit:ns */ #endif #if (RCAR_LSI == RCAR_AUTO) || (RCAR_LSI == RCAR_M3N) diff --git a/drivers/staging/renesas/rcar/qos/qos_init.c b/drivers/staging/renesas/rcar/qos/qos_init.c index 1d1bcd59f..be4487aa3 100644 --- a/drivers/staging/renesas/rcar/qos/qos_init.c +++ b/drivers/staging/renesas/rcar/qos/qos_init.c @@ -238,6 +238,7 @@ void rcar_qos_init(void) #endif } +#if !(RCAR_LSI == RCAR_E3) uint32_t get_refperiod(void) { uint32_t refperiod = QOSWT_WTSET0_CYCLE; @@ -254,11 +255,9 @@ uint32_t get_refperiod(void) case PRR_PRODUCT_11: break; case PRR_PRODUCT_20: - refperiod = QOSWT_WTSET0_CYCLE_H3_20; - break; case PRR_PRODUCT_30: default: - refperiod = QOSWT_WTSET0_CYCLE_H3_30; + refperiod = REFPERIOD_CYCLE; break; } break; @@ -267,7 +266,7 @@ uint32_t get_refperiod(void) switch (reg & PRR_CUT_MASK) { case PRR_PRODUCT_30: default: - refperiod = QOSWT_WTSET0_CYCLE_H3N; + refperiod = REFPERIOD_CYCLE; break; } break; @@ -277,21 +276,16 @@ uint32_t get_refperiod(void) switch (reg & PRR_CUT_MASK) { case PRR_PRODUCT_10: break; - case PRR_PRODUCT_20: /* M3 Cut 11 */ + case PRR_PRODUCT_20: /* M3 Cut 11 */ default: - refperiod = QOSWT_WTSET0_CYCLE_M3_11; + refperiod = REFPERIOD_CYCLE; break; } break; #endif #if (RCAR_LSI == RCAR_AUTO) || (RCAR_LSI == RCAR_M3N) case PRR_PRODUCT_M3N: - refperiod = QOSWT_WTSET0_CYCLE_M3N; - break; -#endif -#if (RCAR_LSI == RCAR_E3) - case PRR_PRODUCT_E3: - refperiod = QOSWT_WTSET0_CYCLE_E3; + refperiod = REFPERIOD_CYCLE; break; #endif default: @@ -302,28 +296,25 @@ uint32_t get_refperiod(void) /* H3 Cut 10 */ #elif RCAR_LSI_CUT == RCAR_CUT_11 /* H3 Cut 11 */ -#elif RCAR_LSI_CUT == RCAR_CUT_20 - /* H3 Cut 20 */ - refperiod = QOSWT_WTSET0_CYCLE_H3_20; #else + /* H3 Cut 20 */ /* H3 Cut 30 or later */ - refperiod = QOSWT_WTSET0_CYCLE_H3_30; + refperiod = REFPERIOD_CYCLE; #endif #elif RCAR_LSI == RCAR_H3N /* H3N Cut 30 or later */ - refperiod = QOSWT_WTSET0_CYCLE_H3N; + refperiod = REFPERIOD_CYCLE; #elif RCAR_LSI == RCAR_M3 #if RCAR_LSI_CUT == RCAR_CUT_10 /* M3 Cut 10 */ #else /* M3 Cut 11 or later */ - refperiod = QOSWT_WTSET0_CYCLE_M3_11; + refperiod = REFPERIOD_CYCLE; #endif #elif RCAR_LSI == RCAR_M3N /* for M3N */ - refperiod = QOSWT_WTSET0_CYCLE_M3N; -#elif RCAR_LSI == RCAR_E3 /* for E3 */ - refperiod = QOSWT_WTSET0_CYCLE_E3; + refperiod = REFPERIOD_CYCLE; #endif return refperiod; } +#endif -- GitLab