clk: tegra: add TEGRA20_CLK_NOR to init table]
Subsystems (2)
PATCH v2 1/6 clk: tegra: add TEGRA20_CLK_NOR to init table]
In reply to a message not in the archiveQuoted 6 lines · Mirza Krak
From: Mirza Krak <[email protected]>
Add
TEGRA20_CLK_NORto init tabel and set default rate to 92 MHz which
is max rate.
table
Quoted 16 lines
Signed-off-by Mirza Krak <[email protected]mane.org>
---
Changes in v2:
- no changes?drivers/clk/tegra/clk-tegra20.c | 1 +
?1 file changed, 1 insertion(+)drivers/clk/tegra/clk- renamed from drivers/clk/tegra/clk-tegra20.c +0
-0
tegra20.c
index 837e5cb..13d3b5a 100644
drivers/clk/tegra/clk-tegra20.c static struct tegra_clk_init_table init_table[] · line 1051
Quoted 5 lines
drivers/clk/tegra/clk-tegra20.c +1
-0@@ -1047,6 +1047,7 @@ static struct tegra_clk_init_table init_table[] __initdata = { ? { TEGRA20_CLK_SDMMC3, TEGRA20_CLK_PLL_P, 48000000, 0 }, ? { TEGRA20_CLK_SDMMC4, TEGRA20_CLK_PLL_P, 48000000, 0 }, ? { TEGRA20_CLK_SPI, TEGRA20_CLK_PLL_P, 20000000, 0 }, + { TEGRA20_CLK_NOR, TEGRA20_CLK_PLL_P, 92000000, 0 },
I'm just curious where that 92 MHz came from. According to the Tegra 2 Interface Design Guide up to 133 MHz should actually be possible.
Quoted 6 lines
drivers/clk/tegra/clk-tegra20.c +0
-0? { TEGRA20_CLK_SBC1, TEGRA20_CLK_PLL_P, 100000000, 0 }, ? { TEGRA20_CLK_SBC2, TEGRA20_CLK_PLL_P, 100000000, 0 },? {
TEGRA20_CLK_SBC3,TEGRA20_CLK_PLL_P, 100000000, 0 },
--
2.1.4
2016-08-31 9:15 GMT+02:00 Marcel Ziswiler <[email protected]>:
Quoted 9 lines · Mirza Krak
Quoted 6 lines
From: Mirza Krak <[email protected]>
Add
TEGRA20_CLK_NORto init tabel and set default rate to 92 MHz which
is max rate.table
ACK
Quoted 11 lines
Quoted 11 lines
Signed-off-by Mirza Krak <[email protected]mane.org>
---
Changes in v2:
- no changesdrivers/clk/tegra/clk-tegra20.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
drivers/clk/tegra/clk-tegra20.c static struct tegra_clk_init_table init_table[] · line 1051
Quoted 11 lines
drivers/clk/tegra/clk- renamed from drivers/clk/tegra/clk-tegra20.c +0
-0
tegra20.c
index 837e5cb..13d3b5a 100644drivers/clk/tegra/clk-tegra20.c +1
-0@@ -1047,6 +1047,7 @@ static struct tegra_clk_init_table init_table[] __initdata = { { TEGRA20_CLK_SDMMC3, TEGRA20_CLK_PLL_P, 48000000, 0 }, { TEGRA20_CLK_SDMMC4, TEGRA20_CLK_PLL_P, 48000000, 0 }, { TEGRA20_CLK_SPI, TEGRA20_CLK_PLL_P, 20000000, 0 }, + { TEGRA20_CLK_NOR, TEGRA20_CLK_PLL_P, 92000000, 0 },I'm just curious where that 92 MHz came from. According to the Tegra 2 Interface Design Guide up to 133 MHz should actually be possible.
The maximum rates for both T20 and T30 are values that are set as maximum in the downstream L4T kernel.
In tegra2_clocks.c:PERIPH_CLK("nor", "tegra-nor", NULL, 42, 0x1d0, 0x31E, 92000000, mux_pllp_pllc_pllm_clkm, MUX | DIV_U71), /* requires min voltage */
And in tegra3_clocks.cPERIPH_CLK("nor", "tegra-nor", NULL, 42, 0x1d0, 127000000, mux_pllp_pllc_pllm_clkm, MUX | DIV_U71), /* requires min voltage */
I looked up the commit in the downstream kernel that added the "nor" clock, it does not mention reason behind the maximal rates. Author was Manoj Chourasia, added him to CC.
I actually do not have the Tegra2 Interface Design Guide, do not know if I can get access to it.
Best Regards
Mirza
Quoted 10 lines · Mirza Krak
I'm just curious where that 92 MHz came from. According to the
Quoted 2 lines
Tegra 2
Interface Design Guide up to 133 MHz should actually be possible.The maximum rates for both T20 and T30 are values that are set as maximum in the downstream L4T kernel.
In
tegra2_clocks.c:PERIPH_CLK("nor", "tegra-nor", NULL, 42, 0x1d0, 0x31E, 92000000, mux_pllp_pllc_pllm_clkm, MUX | DIV_U71), /* requires min voltage */
Quoted 8 lines
And in
tegra3_clocks.cPERIPH_CLK("nor", "tegra-nor", NULL, 42, 0x1d0, 127000000, mux_pllp_pllc_pllm_clkm, MUX | DIV_U71), /* requires min voltage */I looked up the commit in the downstream kernel that added the "nor" clock, it does not mention reason behind the maximal rates. Author was
Manoj Chourasia, added him to CC.
Let's see whether we do get any feedback from him.
Nonetheless it may be good to add this information to the commit message so should somebody ever feel the same curiosity like I did he would at least know where it initially came from.
Quoted 2 lines
I actually do not have the Tegra2 Interface Design Guide, do not know if I can get access to it.
I guess that one is only accessible under NDA. We could of course try to get one in place for you but I can't promise you anything.
Quoted 2 lines
Best Regards
Mirza
Thanks, Mirza