Re: [PATCH v2 1/2] Actions: OWL: Calculate SDRAM size

2020-05-09 Thread Amit Tomer
Hi Mani, > > This doesn't work on Bubblegum96. But poking into the vendor tree, I'm able > to come up with below working code: > > val = (readl(DMM_INTERLEAVE_PER_CH_CFG) >> 8) & 0xf; > cap = 64 * (1 << val); > > So, you can use this and remove other stuffs. Also this function

Re: [PATCH v2 1/2] Actions: OWL: Calculate SDRAM size

2020-05-09 Thread Manivannan Sadhasivam
Hi Amit, On Fri, May 08, 2020 at 03:53:45PM +0530, Amit Singh Tomar wrote: > Calculate the SDRAM size from DDR capacity register registers instead > of using hard-coded value. This is quite useful to get correct size > on differnt boards based on Actions OWL family of SoCs (S700 and S900). > >

[PATCH v2 1/2] Actions: OWL: Calculate SDRAM size

2020-05-08 Thread Amit Singh Tomar
Calculate the SDRAM size from DDR capacity register registers instead of using hard-coded value. This is quite useful to get correct size on differnt boards based on Actions OWL family of SoCs (S700 and S900). There is no documentation available that talks about DDR registers, and this is very