From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 30 Jul 2009 21:16:08 +0200 Subject: [U-Boot] [PATCH] OneNAND: S5PC100 OneNAND IPL support In-Reply-To: <9c9fda240907281606v57247827m2e52a7e5974ae1ab@mail.gmail.com> References: <20090721005544.GA14191@july> <20090723224229.GB28766@game.jcrosoft.org> <9c9fda240907232228r615c8a2bv600a6c47b8b5b7de@mail.gmail.com> <20090727200935.GE5259@game.jcrosoft.org> <9c9fda240907271558g5b7275b6t611e2137474c22f4@mail.gmail.com> <20090728134217.GK5259@game.jcrosoft.org> <9c9fda240907281606v57247827m2e52a7e5974ae1ab@mail.gmail.com> Message-ID: <20090730191608.GB2637@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > > I'll prefer we find a way to not put soc specific code in the generic code > > maybe we can crete a header which will be soc specific or a generic that we > > will include depending on the soc > > something like weak alias? > > The new problem is now I want to support S5PC100 & S5PC110 Samsung SoC > simultaneously. > But these has different interface. c100 has CMD_MAP method, c110 has > similar generic but different. > At runtime it detects the cpu id and determine which read function is used. > At this case, s5pc100/c110 has no size limitation because of internal > ROM code. At boot it loads 16KiB and 8KiB data to internal RAM > respectively. > > Okay I will try to make it generic and resend it after finishing the > port s5pc110 works ok so this patch will be add at the same thime of the s5pc110 in the next branch Best Regards, J.