From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Fri, 23 May 2008 00:03:07 +0900 Subject: [U-Boot-Users] [PATCH] mips: If CONFIG_CMD_SPI is defined, call spi_init() In-Reply-To: <20080521204118.2B94466126@mcmullan-linux.hq.netapp.com> References: <20080521204118.2B94466126@mcmullan-linux.hq.netapp.com> Message-ID: <48358B2B.7040301@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jason McMullan wrote: > The mips architecture currently does not call 'spi_init()' > in the generic board initialization routine is CONFIG_CMD_SPI > is defined. > > This patch rectifies that problem. > > Signed-off-by: Jason McMullan Applied with two CodingStyle fixes. See below. > @@ -422,6 +423,12 @@ void board_init_r (gd_t *id, ulong dest_addr) > nand_init(); /* go init the NAND */ > #endif > > +#ifdef CONFIG_CMD_SPI > + puts("SPI: "); ^ > + spi_init(); /* go init the SPI */ ^ > + puts ("ready\n"); > +#endif > + > #if defined(CONFIG_MISC_INIT_R) > /* miscellaneous platform dependent initialisations */ > misc_init_r (); Note that I'm Linux's CodingStyle lover. But in this case, we should use the same CodingStyle in a single file. Thanks, Shinya