From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 21 Apr 2016 09:39:42 -0400 Subject: [U-Boot] [PATCH 12/16] ARM: omap4/5: Add device type to CPU string In-Reply-To: <1460417838-22343-13-git-send-email-d-allred@ti.com> References: <1460417838-22343-1-git-send-email-d-allred@ti.com> <1460417838-22343-13-git-send-email-d-allred@ti.com> Message-ID: <20160421133942.GX3732@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 11, 2016 at 06:37:14PM -0500, Daniel Allred wrote: > Update the CPU string output so that the device > type is now included as part of the CPU string that > is printed as the SPL or u-boot comes up. This update > adds a suffix of the form "-GP" or "-HS" for production > devices, so that general purpose (GP) and high security > (HS) can be distiguished. Applies to all OMAP5 variants. [snip] > diff --git a/arch/arm/include/asm/arch-omap4/cpu.h b/arch/arm/include/asm/arch-omap4/cpu.h > index f7595ae..34609b9 100644 > --- a/arch/arm/include/asm/arch-omap4/cpu.h > +++ b/arch/arm/include/asm/arch-omap4/cpu.h > @@ -59,6 +59,13 @@ struct watchdog { > #define TCLR_AR (0x1 << 1) > #define TCLR_PRE (0x1 << 5) > > +/* device type */ > +#define DEVICE_MASK (BIT(8) | BIT(9) | BIT(10)) > +#define TST_DEVICE 0x0 > +#define EMU_DEVICE 0x1 > +#define HS_DEVICE 0x2 > +#define GP_DEVICE 0x3 Lets move these to arch/arm/include/asm/omap_common.h (which someday we need to re-work using the mach infrastructure or similar). -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: