From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Kiermaier Date: Fri, 19 Jun 2009 12:00:07 +0200 Subject: [U-Boot] Marvell Kirkwood newbie question GPIO functions In-Reply-To: <73173D32E9439E4ABB5151606C3E19E201D8E629FE@SC-VEXCH1.marvell.com> References: <73173D32E9439E4ABB5151606C3E19E201D8E629FE@SC-VEXCH1.marvell.com> Message-ID: <200906191200.07614.dk-arm-linux@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > -----Original Message----- > > From: Dieter Kiermaier [mailto:dk-arm-linux at gmx.de] > > Sent: Friday, June 19, 2009 3:17 PM > > To: Prafulla Wadaskar > > Cc: u-boot at lists.denx.de > > Subject: Re: [U-Boot] Marvell Kirkwood newbie question GPIO functions > > > > Prafulla, > > > > (...deleted some stuff...) > > > > > > > What patches are in the pipeline? > > > > > > Some other board supports (MV88F6281GTW_GE) and Kirkwood SPI driver > > > support Kirkwood USB support (at this moment) > > > > Also very interesting :) > > > > (...deleted, too...) > > > > > > What I forgot to mention is the i2c driver inside u-boot. > > > > I need this to read the mac address from an additional eeprom. > > > > This makes mass production more ease and doesn't produce > > > > hight costs > > > > > > :) > > > > > > Kirkwood has in-built i2c(TWSI) controller, well.. the plans are in > > > place enable driver for it, but this is not blocking issue > > > > right now > > > > > hence pending ;-) > > > > > > Just FYI: you can protect some flash sector and use it in place of > > > eeprom, this will lower the board cost and complexity too. > > > > > > But if you are planning to use some different GPIOs for i2c and > > > bit-banged driver on the top of it, then you will need gpio > > > > control, > > > > > so you can do it by using simple readl/writel calls > > > > meanwhile driver > > > > > to come in :-) > > > > Yes, I thought about that, too. GPIO support will also be > > helpful for doing this! > > Do you have some snippets how to readl/writel by hand? > > You can refer kw_config_gpio function in cpu/arm926ejs/kirkwood/cpu.c I will have a look and try this, thanks for the hint! > > > > The best way I will suggest you is: > > > Put pre-programmed eeprom around Kirkwood TWSI interface and enable > > >"TWSI serial ROM initialization" you don't need anything else for > > >this. (I hope you are having enough kirkwood documentation) > > > > Ref: table 32: > > >http://www.marvell.com/files/products/embedded_processors/kir > > > > kwood/HW_8 > > > > >8F62 > > >81_OpenSource.pdf > > > > Good idea - I will read about that. > > I've got access to all documents - including an marvell web > > account for internal documents. > > That's very good... > > Regards.. > Prafulla . . > > > Regards, > > Dieter > > > > > Regards.. > > > Prafulla . . > > > > > > > Dieter > > > > > > > > > > > I'm willing to contribute some code if someone > > > > guides me a bit? > > > > > > > > You are most welcomed.... > > > > > > Pls feel free to raise your queries... > > > > > > > > > > Here they are :) > > > > > Thanks, > > > > > Dieter > > > > > > > > > > > Regards.. > > > > > > Prafulla . . > > > > > > > > > > > > > Thanks in advance, > > > > > > > Dieter > > > > > > > > > > > > > > _______________________________________________ > > > > > > > U-Boot mailing list > > > > > > > U-Boot at lists.denx.de > > > > > > > http://lists.denx.de/mailman/listinfo/u-boot > > > > > > > > > > _______________________________________________ > > > > > U-Boot mailing list > > > > > U-Boot at lists.denx.de > > > > > http://lists.denx.de/mailman/listinfo/u-boot > > > > > > > > _______________________________________________ > > > > U-Boot mailing list > > > > U-Boot at lists.denx.de > > > > http://lists.denx.de/mailman/listinfo/u-boot