Ben Warren <[EMAIL PROTECTED]> wrote: > +/* Controller-specific definitions: */ > + > +/* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */ > +#ifdef CONFIG_MPC8XXX_SPI > +# ifndef CONFIG_HARD_SPI > +# define CONFIG_HARD_SPI > +# endif > +#endif
Grumble. I'm really looking forward to that Kconfig system so we can get rid of crap like this...it won't exactly become prettier as more SPI drivers are added... Btw, I wonder if the _real_ fix is to move the stuff in spi_init() into spi_claim_bus() and just kill spi_init() altogether. This will match the u-boot design requirement about not touching hardware you don't intend to use a bit more closely. But I can certainly understand that you want to keep the existing code working before doing something like that. Haavard ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users