Hi Steve, Sergei, This worked but doesn't give an expected result for the given register. 0x00000020 is not valid content for the SDBCR register of the DDR2 controller.
So either I'm missing something or the silicon doesn't return valid results during this stage. I might just make a quick change to U-boot to read out the value right before it boots into Linux, assuming Linux doesn't change the DDR2 configuration which from the looks of the sources, it doesnt. Thanks, Stijn On Fri, Mar 20, 2009 at 2:17 PM, Steve Chen <[email protected]> wrote: > On Fri, 2009-03-20 at 13:54 +0100, Stijn Devriendt wrote: >> I'm trying to read out the DDR2 control registers >> to obtain information about the DDR2 configuration. >> >> I currently did something like >> base = ioremap(0x2000000, PAGE_SIZE); >> result = davinci_readl(0x20000008); >> iounmap(base); >> but this results on kernel Oopses. > > Oops is expected since IO_ADDRESS(0x20000008) is not valid. Try > __raw_readl(base + 0x8); > > Regards, > > Steve > > > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
