From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dalon Westergreen Date: Fri, 10 Feb 2017 14:43:44 -0800 Subject: [U-Boot] [PATCH v6 1/3] SPL: add support to boot from a partition type In-Reply-To: <8cd35223-3e5c-9355-97c2-0222ecba53c7@denx.de> References: <1486671604-16203-1-git-send-email-dwesterg@gmail.com> <1486671604-16203-2-git-send-email-dwesterg@gmail.com> <20170210214338.GC26129@bill-the-cat> <8cd35223-3e5c-9355-97c2-0222ecba53c7@denx.de> Message-ID: <1486766624.6338.162.camel@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2017-02-10 at 23:08 +0100, Marek Vasut wrote: > On 02/10/2017 10:43 PM, Tom Rini wrote: > > > > On Thu, Feb 09, 2017 at 12:20:02PM -0800, Dalon Westergreen wrote: > > > > > > > > the socfpga bootrom supports mmc booting from either a raw image > > > starting at 0x0, or from a partition of type 0xa2.??This patch > > > adds support for locating the boot image in the first type 0xa2 > > > partition found. > > > > > > Assigned a partition number of -1 will cause a search for a > > > partition of type CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE > > > and use it to find the u-boot image > > > > > > Signed-off-by: Dalon Westergreen > > [snip] > > > > > > +config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE > > > + hex "Partition Type on the MMC to load U-Boot from" > > > + depends on SPL && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE > > > + default 0xa2 > > > > This default should depend on ARCH_SOCFPGA as well. > > > IMO this should be set by ARCH_SOCFPGA in arch/arm/socfpga/Kconfig just saw this, i can move it there now. >