From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Tomer Date: Sat, 9 May 2020 12:45:38 +0530 Subject: [PATCH v2 1/2] Actions: OWL: Calculate SDRAM size In-Reply-To: <20200509070051.GI5845@Mani-XPS-13-9360> References: <1588933426-3952-1-git-send-email-amittomer25@gmail.com> <1588933426-3952-2-git-send-email-amittomer25@gmail.com> <20200509070051.GI5845@Mani-XPS-13-9360> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 should be named > as owl_get_ddr_cap(). Thanks for pointing this out, and I just sent v3 as v2 didn't even compile for Bubblegum96. Would send the updated version that works on S900. Thanks Amit.