From patchwork Sat Nov 3 21:41:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 196952 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 147472C00D6 for ; Sun, 4 Nov 2012 08:45:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8248D4A33E; Sat, 3 Nov 2012 22:44:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WaTh9vKPR37x; Sat, 3 Nov 2012 22:44:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 178DA4A1B1; Sat, 3 Nov 2012 22:42:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0B8484A140 for ; Sat, 3 Nov 2012 22:42:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1AIqZCpSf13a for ; Sat, 3 Nov 2012 22:42:23 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-gg0-f202.google.com (mail-gg0-f202.google.com [209.85.161.202]) by theia.denx.de (Postfix) with ESMTPS id BCEEE4A13F for ; Sat, 3 Nov 2012 22:42:05 +0100 (CET) Received: by mail-gg0-f202.google.com with SMTP id i4so544048ggm.3 for ; Sat, 03 Nov 2012 14:42:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=iZwJtLmV/W+Pesz7tDkI0yE7pLixryn5CQrT6q4PHHA=; b=TvrzltEU1t/mBgHN9pjtnTkF38/e3pp2RjiPeNPe9WvPCVJ23Lf4KDZb7upg3lqT+P us3zxfO6gU6cSvuS3eugetYtfsuc+pVqb9xGqJBUZQfGRK/8OllwdffGtG2gb2D9lvI6 zw9A+rDhgyPoCxssJinTnzYd4It9PraABZ90Jqz7YXWEbA5NYigo0vDLFm5tLY3cS9QQ hJ31Rf3d1haNKw9uhb+pARggHLViXNxRXU2C08DpF2FrwIJjiY5PpJwjjJYpfpUyIqDM WC8TceDpYrDUb8zxWzh7QItSHT5UqKSnScsZ9Df0bEUh4pS+aa2QcWDxbcfojGOOklBM 8+ow== Received: by 10.236.158.105 with SMTP id p69mr3772076yhk.10.1351978923789; Sat, 03 Nov 2012 14:42:03 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id b7si821396yhj.1.2012.11.03.14.42.03 (version=TLSv1/SSLv3 cipher=AES128-SHA); Sat, 03 Nov 2012 14:42:03 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 7F102100047; Sat, 3 Nov 2012 14:42:03 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 4C7B6161948; Sat, 3 Nov 2012 14:42:03 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 3 Nov 2012 14:41:35 -0700 Message-Id: <1351978902-23719-14-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1351978902-23719-1-git-send-email-sjg@chromium.org> References: <1351978902-23719-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmkudWH+5aBhK+g6WTBLZihaGOrycYUPR34ne3f8nTE3FW+aXWD/sQcMN4hHGGdpC6yvhyPhNAoXDqFZjqJgA8ekMTCUe3g/k4DSnrrAZIRCCqawNS8CZlW//DqztxnpbKJhhxFT7xsSSs2sQs0GsP2L8rKs5IgyzlZY6BIwS0+RJHpXUOHYLQmUWi+h7gob/H9FRAD Cc: Duncan Laurie Subject: [U-Boot] [PATCH 13/20] x86: Issue SMI to finalize Coreboot in final stage X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Duncan Laurie This will write magic value to APMC command port which will trigger an SMI and cause coreboot to lock down the ME, chipset, and CPU. Signed-off-by: Duncan Laurie Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index ff42661..59d730e 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -118,5 +118,9 @@ int board_final_cleanup(void) enable_cache(); } + /* Issue SMI to Coreboot to lock down ME and registers */ + printf("Finalizing Coreboot\n"); + outb(0xcb, 0xb2); + return 0; }