Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFED4C433EF for ; Sun, 13 Mar 2022 06:04:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6077E81FBB; Sun, 13 Mar 2022 07:04:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="P43zX3ID"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 048658191C; Sun, 13 Mar 2022 07:04:05 +0100 (CET) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 95E8D8141D for ; Sun, 13 Mar 2022 07:04:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pg1-x52e.google.com with SMTP id 27so10991160pgk.10 for ; Sat, 12 Mar 2022 22:04:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IOHA570uDKbuQN8oBIEt8h50k+sOsXGNZDwKLQLwq2Q=; b=P43zX3IDuFTZTgbmjR+6fV4mQh9bKu06bg/w6ieIb0pVa0suswRytX1NTP3G0E5XSZ XggOSZ4WmR8A/rjSZ20v+Gzr73ShaJPE655D4P9qOveA6ukHZaZ+Cig7c6AoMKAz6kNX axzGod7P+J7tIawhl9w5YLtQuVo6UuhKJam1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IOHA570uDKbuQN8oBIEt8h50k+sOsXGNZDwKLQLwq2Q=; b=ISAAM7LewUAWED55aCuMH41b4Jb5dBESUBdWyUo6H+lQsx8sl3rmpqleOR5KvR0lXA ESjKUEN4Nx/YjAUghb7feNP+zUHeaYD3HEZ0MFQm9Ci0zb179bLyTpz94Mjn67nkg6uY 4RKK/ZKozksqdTt6dkswubYPjaiWozuLIYxco8/Onswh2yatl4hJT5jWIErd9t9fsMEy YNagvfnZ1eMf6hHWtyAfzbGW3EveM7N9illC3M1vZ7jMoO0C4hHu4INkqxflOdVovi8w c/Mhx6FMNMRl2TKrRYmAE8ZpJ/wpZRgyd7cskPaFfBdA+MQoQhAsrak8IrKzJ0KsEtb5 QtqQ== X-Gm-Message-State: AOAM533yqTgFPt+f0gsX00lx2FCS4Xys882oefh1+accHgwTCQ74pXI3 ihfgj8I0W+++ZT4QZ9WRp82dlGS/251W9ZVo X-Google-Smtp-Source: ABdhPJwtvUkzBnpjLprxLVynKdLofM3C5l9gL3o8iayRpBeuEfq2egk/8Zc5m7UEBPvm4+DQjA0MwA== X-Received: by 2002:a62:1d91:0:b0:4f6:f558:6d15 with SMTP id d139-20020a621d91000000b004f6f5586d15mr18212186pfd.79.1647151438734; Sat, 12 Mar 2022 22:03:58 -0800 (PST) Received: from sjg1.roam.corp.google.com ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id r17-20020a639b11000000b003810ac60e40sm6393141pgd.69.2022.03.12.22.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 22:03:58 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass Subject: [PATCH v2 1/2] x86: Add an enum name for the GNVS firmware type Date: Sat, 12 Mar 2022 23:03:27 -0700 Message-Id: <20220313060328.604768-1-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.723.g4982287a31-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This enum is currently anonymous. Add a name so it can be used in the code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Add some comments for the enum arch/x86/include/asm/intel_gnvs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/intel_gnvs.h b/arch/x86/include/asm/intel_gnvs.h index fc743dc9285..0b69530edbf 100644 --- a/arch/x86/include/asm/intel_gnvs.h +++ b/arch/x86/include/asm/intel_gnvs.h @@ -47,7 +47,13 @@ enum { BINF_RW_B = 2 }; -enum { +/** + * enum cros_fw_type_t - Used to indicate Chromium OS firmware type + * + * Chromium OS uses a region of the GNVS starting at offset 0x100 to store + * various bits of information, including the type of firmware being booted + */ +enum cros_fw_type_t { FIRMWARE_TYPE_AUTO_DETECT = -1, FIRMWARE_TYPE_RECOVERY = 0, FIRMWARE_TYPE_NORMAL = 1, -- 2.35.1.723.g4982287a31-goog