From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 09 Apr 2012 15:36:24 -0600 Subject: [U-Boot] [PATCH v3 15/23] tegra: Add warmboot implementation In-Reply-To: <1333408743-28720-16-git-send-email-sjg@chromium.org> References: <1333408743-28720-1-git-send-email-sjg@chromium.org> <1333408743-28720-16-git-send-email-sjg@chromium.org> Message-ID: <4F835658.3090305@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/02/2012 05:18 PM, Simon Glass wrote: > From: Yen Lin > > Add code to set up the warm boot area in the Tegra CPU ready for a > resume after suspend. > > Signed-off-by: Simon Glass > Acked-by: Stephen Warren > +static enum fuse_operating_mode fuse_get_operation_mode(void) > +{ > + u32 chip_id; > + struct apb_misc_gp_ctlr *gp = > + (struct apb_misc_gp_ctlr *)TEGRA2_APB_MISC_GP_BASE; > + > + chip_id = (readl(&gp->hidrev) & HIDREV_CHIPID_MASK) >> > + HIDREV_CHIPID_SHIFT; This duplicates code from the SKU retrieval function added in an earlier patch. Not a big deal; it could be unified in a followon patch.