Skip to content

Commit 6eb8137

Browse files
committed
Merge branch 'clk-socfpga' into clk-next
* clk-socfpga: clk: socfpga: agilex: mpu_l2ram_clk should be mpu_ccu_clk clk: socfpga: agilex: add nand_x_clk and nand_ecc_clk dt-bindings: agilex: add NAND_X_CLK and NAND_ECC_CLK
2 parents b3a9e3b + 44a7f3e commit 6eb8137

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

drivers/clk/socfpga/clk-agilex.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
252252
0, 0, 0, 0, 0x30, 0, 0},
253253
{ AGILEX_MPU_PERIPH_CLK, "mpu_periph_clk", "mpu_clk", NULL, 1, 0, 0x24,
254254
0, 0, 0, 0, 0, 0, 4},
255-
{ AGILEX_MPU_L2RAM_CLK, "mpu_l2ram_clk", "mpu_clk", NULL, 1, 0, 0x24,
255+
{ AGILEX_MPU_CCU_CLK, "mpu_ccu_clk", "mpu_clk", NULL, 1, 0, 0x24,
256256
0, 0, 0, 0, 0, 0, 2},
257257
{ AGILEX_L4_MAIN_CLK, "l4_main_clk", "noc_clk", NULL, 1, 0, 0x24,
258258
1, 0x44, 0, 2, 0, 0, 0},
@@ -294,8 +294,12 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
294294
8, 0, 0, 0, 0, 0, 0},
295295
{ AGILEX_SPI_M_CLK, "spi_m_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
296296
9, 0, 0, 0, 0, 0, 0},
297-
{ AGILEX_NAND_CLK, "nand_clk", "l4_main_clk", NULL, 1, 0, 0x7C,
297+
{ AGILEX_NAND_X_CLK, "nand_x_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
298298
10, 0, 0, 0, 0, 0, 0},
299+
{ AGILEX_NAND_CLK, "nand_clk", "nand_x_clk", NULL, 1, 0, 0x7C,
300+
10, 0, 0, 0, 0, 0, 4},
301+
{ AGILEX_NAND_ECC_CLK, "nand_ecc_clk", "nand_x_clk", NULL, 1, 0, 0x7C,
302+
10, 0, 0, 0, 0, 0, 4},
299303
};
300304

301305
static int agilex_clk_register_c_perip(const struct stratix10_perip_c_clock *clks,

include/dt-bindings/clock/agilex-clock.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
#define AGILEX_SDMMC_CLK 50
6666
#define AGILEX_SPI_M_CLK 51
6767
#define AGILEX_USB_CLK 52
68-
#define AGILEX_NUM_CLKS 53
68+
#define AGILEX_NAND_X_CLK 53
69+
#define AGILEX_NAND_ECC_CLK 54
70+
#define AGILEX_NUM_CLKS 55
6971

7072
#endif /* __AGILEX_CLOCK_H */

0 commit comments

Comments
 (0)