From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hoefle Marco Date: Thu, 5 Nov 2015 14:40:29 +0000 Subject: [U-Boot] u-boot device model SPI + SPI Flash In-Reply-To: <5639F451.1090501@xilinx.com> References: <7ccbb9ae7fdb4663832167baa173d6b8@LysExc01.nanotronic.local> <0af28a07c7704451be0aa3fce01764d0@LysExc01.nanotronic.local> <320637582ef942f0b71a55d692d254e5@LysExc01.nanotronic.local> <7a85439a92f64a71a5f2b08b3fdc4576@LysExc01.nanotronic.local> <562E2FEE.60605@xilinx.com> <562F61EA.5080303@xilinx.com> <562F8F1A.4050903@xilinx.com> <5631D75E.2000402@xilinx.com> <4a9b0987ae1047fdb9bd0e84160400ac@LysExc01.nanotronic.local>, <5639F451.1090501@xilinx.com> Message-ID: <7d9fad7ec38548d4854dc5094a7e0c42@LysExc01.nanotronic.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Michal, I have already adapted microblaze-generic.h accordingly (I think): #define CONFIG_DM #define CONFIG_DM_SPI 1 # define CONFIG_DM_SPI_FLASH 1 Only with these settings u-boot xilinx_spi.c will compile. Without DM driver wont compile and with DM SPI does not work. Thanks, Marco ________________________________________ Von: Michal Simek Gesendet: Mittwoch, 4. November 2015 13:04 An: Hoefle Marco; Michal Simek; Jagan Teki Cc: u-boot at lists.denx.de; emanuel stiebler Betreff: Re: AW: AW: [U-Boot] u-boot device model SPI + SPI Flash Hi, you have to change microblaze configuration to enable DM. If you look at xilinx git tree then you will have all patches what you need. Unfortunatelly there is no configuration for SPI DM because petalinux is not using microblaze-generic configuration. When I have time I will try to fix this but that's why I don't have now. Thanks, Michal On 11/03/2015 10:08 AM, Hoefle Marco wrote: > Hello Michal, > I saw a change on this file drivers/mtd/spi/sf-uclass.c regarding the dm problem. > I replaced this file on mainline u-boot but the result is the same. > Is there anything else to change? > I looked at your here: > https://github.com/Xilinx/u-boot-xlnx/commits/master/drivers/spi > > Thanks, > Marco > > > ________________________________________ > Von: Michal Simek > Gesendet: Donnerstag, 29. Oktober 2015 09:22 > An: Hoefle Marco; Michal Simek; Jagan Teki > Cc: u-boot at lists.denx.de; emanuel stiebler > Betreff: Re: AW: [U-Boot] u-boot device model SPI + SPI Flash > > Hi, > > On 10/27/2015 04:03 PM, Hoefle Marco wrote: >> Hello Michal, >> ok I will then stop trying to get SPI working on mainline and watch your commits on >> https://github.com/Xilinx/u-boot-xlnx >> >> We have a custom Artix Board here and I would be happy to test your commits on our hardware. > > I have sent patches to mainline mailing list and also update xilinx tree. > > petalinux bsp which uses this configuration should be out at the end of Nov. > > Thanks, > Michal > > >