From patchwork Wed Feb 28 06:16:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 878940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zrlhX1VK4z9s0R for ; Wed, 28 Feb 2018 17:17:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lgvS1jpz"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zrlhW6PvszF1Xj for ; Wed, 28 Feb 2018 17:16:59 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lgvS1jpz"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c01::244; helo=mail-pl0-x244.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lgvS1jpz"; dkim-atps=neutral Received: from mail-pl0-x244.google.com (mail-pl0-x244.google.com [IPv6:2607:f8b0:400e:c01::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zrlh132DJzF1XY for ; Wed, 28 Feb 2018 17:16:33 +1100 (AEDT) Received: by mail-pl0-x244.google.com with SMTP id y8-v6so936104pll.13 for ; Tue, 27 Feb 2018 22:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=rGr+X46ZloGeUecPRiv9bapBByJHcQnaDTEoWZEkSWc=; b=lgvS1jpzq9ZiGmqS3RsUthKVKMBuLcQKNoI1KrJFOaJeoYzBIUK472BtPTt5kI1gsH xEvR0T55UZ/6DIF2lHbXlzK1TVvP9ooxThkagqDZcC9NAAxgk0sQ4vGpjS43wfUoWWU0 eDDcY0aBTVtsZY8Izs47KIXDCzV9VlKAqtjfNd3cH2WoqNWHyumcKz57fgpxUaCcKgUJ rN8FfVfsan4Gh9QMR04xBt3nfP9NsJ4jkvkMNVFBk2/vZHBV3LJCU5kjpK1Oc6uR0Q5k TZn9jOQLbwkdLXmqVDg7AyWvy5BEnjbgVMJauRf87fmudOmWEJri7ctmkHKbGoRFbNJk CkJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=rGr+X46ZloGeUecPRiv9bapBByJHcQnaDTEoWZEkSWc=; b=se4Ji4qMF8aYq8LaORswS5EXyTsy648VNuQInx/MRGKpq1PH1iwh6mo7nHj4+gnk/o g9IJXD+UZd7LHalqAikCNgUBSTcX9pR2+T0KP7F9FjF8J5FOML/S15946qU/kFFsyTOM EwEiZ+UGi0bP6fybr2OlZsK2FG0ymR9c8V1P9QpluO/wMXBGEbW5dd8tKo0bgguXb+IJ gtjG/9dZohPzGwgpW4avNrq9Ua3KEPhGS5l4ikyhgcs7lSY8/0EOfHkR+ORMcKrdRBh+ uOEgRlxRugakq6VgdpmAvl9EC6AjloZ2O93SDFeHdnV7MvJd+IDvZX8ZvW4qUGZvGbPz yqSw== X-Gm-Message-State: APf1xPAuPazzmACVM8WxkIz36hrsToi0VrWRYWdzn8sNh5nqI8qlqxYE /hb6FLIsWStgGQCYDaNwGoqrsWPk X-Google-Smtp-Source: AH8x226XAG/EmvSs9PHGabnzZsGEjtLoQGuxoAwCzMwyLESpuwKc2bKsDU1ff1eDxkPHqHqPhR3F8A== X-Received: by 2002:a17:902:3183:: with SMTP id x3-v6mr16734944plb.383.1519798590486; Tue, 27 Feb 2018 22:16:30 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id q15sm1205889pgv.38.2018.02.27.22.16.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 22:16:29 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 28 Feb 2018 16:46:25 +1030 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Wed, 28 Feb 2018 16:46:09 +1030 Message-Id: <20180228061610.30856-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180228061610.30856-1-joel@jms.id.au> References: <20180228061610.30856-1-joel@jms.id.au> Subject: [Skiboot] [PATCH 1/2] ast-bmc: Document BMC scratch register X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cyril Bur MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" ASPEED BMCs use SIO register 0x29 to configure host firmwrae settings. This documents those setings as currently used by Hostboot in [1]. Despite the naming, these settings are relevant for ast2500 systems as well. [1] src/usr/initservice/bootconfig/bootconfig_ast2400.H Signed-off-by: Joel Stanley --- hw/ast-bmc/ast-io.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hw/ast-bmc/ast-io.c b/hw/ast-bmc/ast-io.c index 1e826fcca6d0..cd1aba2a177a 100644 --- a/hw/ast-bmc/ast-io.c +++ b/hw/ast-bmc/ast-io.c @@ -95,6 +95,26 @@ #define BMC_SIO_SCR28 0x28 #define BOOT_FLAGS_VERSION 0x42 +/* + * SIO Register 0x29: Boot Flags (normal bit ordering) + * + * [7:6] Hostboot Boot mode: + * 00 : Normal + * 01 : Terminate on first error + * 10 : istep mode + * 11 : reserved + * [5:4] Boot options + * 00 : reserved + * 01 : Memboot + * 10 : Clear gard + * 11 : reserved + * [ 3 ] BMC mbox PNOR driver + * [2:0] Hostboot Log level: + * 000 : Normal + * 001 : Enable Scan trace + * xxx : reserved + */ + #define BMC_SIO_SCR29 0x29 #define BMC_SIO_SCR29_MEMBOOT 0x10