[linux-sunxi] Re: [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-11-23 Thread Siarhei Siamashka
On Fri, 31 Oct 2014 09:53:52 +0200 Siarhei Siamashka wrote: > On Thu, 16 Oct 2014 10:42:19 +0200 > Hans de Goede wrote: > > > Hi, > > > > On 10/15/2014 09:28 PM, Siarhei Siamashka wrote: > > > On Wed, 15 Oct 2014 12:10:45 +0200 > > > Hans de Goede wrote: > > > > > >> Before the u-boot dram c

[linux-sunxi] Re: [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-10-31 Thread Siarhei Siamashka
On Thu, 16 Oct 2014 10:42:19 +0200 Hans de Goede wrote: > Hi, > > On 10/15/2014 09:28 PM, Siarhei Siamashka wrote: > > On Wed, 15 Oct 2014 12:10:45 +0200 > > Hans de Goede wrote: > > > >> Before the u-boot dram cleanup u-boot would always set PLL5 factor m to > >> 2 (reg value 1) and div p to

[linux-sunxi] Re: [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-10-16 Thread Hans de Goede
Hi, On 10/15/2014 09:28 PM, Siarhei Siamashka wrote: > On Wed, 15 Oct 2014 12:10:45 +0200 > Hans de Goede wrote: > >> Before the u-boot dram cleanup u-boot would always set PLL5 factor m to >> 2 (reg value 1) and div p to 1, and get_cmu_clk in the nand code >> would calculate the pll5p clk like

[linux-sunxi] Re: [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-10-15 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 12:10:45 +0200 Hans de Goede wrote: > Before the u-boot dram cleanup u-boot would always set PLL5 factor m to > 2 (reg value 1) and div p to 1, and get_cmu_clk in the nand code > would calculate the pll5p clk like this: > > clk = 24 * factor_n * factor_k / div_p / factor_m; >