From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Sun, 07 Dec 2008 17:46:34 +0100 Subject: [U-Boot] [PATCH-OMAP3] OMAP3: Check for MMC card In-Reply-To: <20081206174633.GH2977@game.jcrosoft.org> References: <1228546839-23311-1-git-send-email-dirk.behme@googlemail.com> <20081206174633.GH2977@game.jcrosoft.org> Message-ID: <493BFDEA.7050903@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jean-Christophe PLAGNIOL-VILLARD wrote: >>- fat_register_device(&mmc_blk_dev, 1); >>- return 0; >>+ if (configure_mmc(&cur_card_data) == 1) { >>+ mmc_blk_dev.if_type = IF_TYPE_MMC; >>+ mmc_blk_dev.part_type = PART_TYPE_DOS; >>+ mmc_blk_dev.dev = 0; >>+ mmc_blk_dev.lun = 0; >>+ mmc_blk_dev.type = 0; >>+ >>+ /* FIXME fill in the correct size (is set to 32MByte) */ >>+ mmc_blk_dev.blksz = MMCSD_SECTOR_SIZE; >>+ mmc_blk_dev.lba = 0x10000; >>+ mmc_blk_dev.removable = 0; >>+ mmc_blk_dev.block_read = mmc_bread; >>+ >>+ fat_register_device(&mmc_blk_dev, 1); >>+ return 0; >>+ } else return 1; > > please use > } else { > return 1; > } > > just return 1; This and all other pending OMAP3 patches: http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-arm.git;a=shortlog;h=refs/heads/omap3-j24 Many thanks to Steve for this! Best regards Dirk Btw.: I heard doing this took ~3min ;)