From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= Date: Thu, 22 Feb 2018 10:02:33 +0100 Subject: [U-Boot] [PATCH v8 4/4] common: Generic firmware loader for file system In-Reply-To: <1517814409-25698-5-git-send-email-tien.fong.chee@intel.com> References: <1517814409-25698-1-git-send-email-tien.fong.chee@intel.com> <1517814409-25698-5-git-send-email-tien.fong.chee@intel.com> Message-ID: <20180222100233.3d67485d@karo-electronics.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi, On Mon, 5 Feb 2018 15:06:49 +0800 tien.fong.chee at intel.com wrote: > From: Tien Fong Chee > > This is file system generic loader which can be used to load > the file image from the storage into target such as memory. > The consumer driver would then use this loader to program whatever, > ie. the FPGA device. > > Signed-off-by: Tien Fong Chee > Reviewed-by: Lothar Waßmann > --- > common/Kconfig | 9 ++ > common/Makefile | 1 + > common/fs_loader.c | 320 +++++++++++++++++++++++++++++++++++++++++++++ > doc/README.firmware_loader | 76 +++++++++++ > include/fs_loader.h | 28 ++++ > 5 files changed, 434 insertions(+) > create mode 100644 common/fs_loader.c > create mode 100644 doc/README.firmware_loader > create mode 100644 include/fs_loader.h > [...] > +#if defined(CONFIG_SPL_MMC_SUPPORT) && defined(CONFIG_SPL_BUILD) > +__weak int init_mmc(void) > +{ > + /* Just for the case MMC is not yet initialized */ > + struct mmc *mmc = NULL; > + int err; > + > +#ifdef CONFIG_SPL > + spl_mmc_find_device(&mmc, spl_boot_device()); > +#else > + debug("#define CONFIG_SPL is required or overrriding %s\n", > s/overrr/overr/ Lothar Waßmann