On Sat, Nov 8, 2014 at 12:45 AM, Juergen Borleis <juergen...@kreuzholzen.de> wrote: > mind entropy wrote: >> I am developing a small BSP and I am trying to configure my SDRAM. >> >> In the barebox configuration of SDRAM the BK76MAP has the value of >> 001 i.e. 64MB/64MB ( >> http://git.pengutronix.de/?p=barebox.git;a=blob;f=arch/arm/boards/friendlya >>rm-mini2440/config.h;h=347930224e4cee893db77c9142c9550e828748dc;hb=784b352ae >>eed917f9cf75b3e8fc74aec12a48a01#l117 ) see line 117. >> >> I have a K4S561632N SDRAM ( >> http://www.samsung.com/global/business/semiconductor/product/consumer-dram/ >>detail?productId=7147&iaId=742). On the board I see 2 chips. I am assuming >> these are 2 banks. > > I don't think so. The datasheet tells its a "16Mx16" device. So I guess these > two devices form a 32 bit data bus. The same usage like on the Mini2440. > It is on the mini2440. I have a doubt in the datasheet. Does the x16 mean the data bus width?
>> Should my BK76MAP be 32MB/32MB? > > Yes. With the second bank disabled. > I did not understand this. Why should the second bank be disabled? I have two 32MB IC's on the board to make it a total of 64M RAM. So shouldn't I be enabling the second bank? Not sure whether I understand what a bank means in this context. >> Also how do I get the SCAN parameter (9 bit columns in the code)? > > By reading the datasheet? Page 4: > > Organization Row Address Column Address > 16Mx16 A0~A12 A0-A8 <--------- > > Regards, > Juergen