From patchwork Mon Dec 3 23:58:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 203504 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 84BF12C00A3 for ; Tue, 4 Dec 2012 10:58:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 495D34A106; Tue, 4 Dec 2012 00:58:31 +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 ZV-WQN4YO9HA; Tue, 4 Dec 2012 00:58:31 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C8F174A118; Tue, 4 Dec 2012 00:58:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BE6834A118 for ; Tue, 4 Dec 2012 00:58:27 +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 53bgyfTkzrc0 for ; Tue, 4 Dec 2012 00:58:26 +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-wi0-f202.google.com (mail-wi0-f202.google.com [209.85.212.202]) by theia.denx.de (Postfix) with ESMTPS id E2A584A106 for ; Tue, 4 Dec 2012 00:58:25 +0100 (CET) Received: by mail-wi0-f202.google.com with SMTP id hn17so18573wib.3 for ; Mon, 03 Dec 2012 15:58:25 -0800 (PST) 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=zZu/mTcA3sfiz/08Hl3sfdp0cCpsmHKsyBZHSKogV/A=; b=atbBwgcrNKsN510AoskS2rF8KEeGrXa1Y3Fl+M+2S7OTbCUtx/3CFVRWDxH2N4R3RQ 0amP8PSc88HJYdJasWm8JPhFwUzb1YKGhbQonI2OwnWcmL+nZsapHZWLP6szGTTeMqq9 Nl3VwPeNzSP6sPvZxgQ9rhi9v2D3ErvFixz8sP9Z5R2GVfYdhqcHxV60114q9bGt+g0+ +VKyEqYcx5IPGVTVDJ4z1e51ox8731gqhdP2vebni4WsobFJjFHFwn+AkY6wV9gIY5au cZEvUo5mQNybRt8QQbdUfYX8Y4/FB/e6/t66gRqawWKzfZ2fjddfwO1VZCN0bqlFgxRQ Ly0A== Received: by 10.14.178.3 with SMTP id e3mr10717163eem.5.1354579104979; Mon, 03 Dec 2012 15:58:24 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id u8si3542926een.1.2012.12.03.15.58.24 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 03 Dec 2012 15:58:24 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id 9B79020004E; Mon, 3 Dec 2012 15:58:24 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 05830160A4A; Mon, 3 Dec 2012 15:58:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 3 Dec 2012 15:58:12 -0800 Message-Id: <1354579092-2142-1-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1351978902-23719-12-git-send-email-sjg@chromium.org> References: <1351978902-23719-12-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnW1DnL9iQD/VKbeobdiynDAQMEi0Oqxnrs6FnrZG1xcumMF6WK8/p5s027cdyTJ2mCFDKZv57s5EUvproNM4vFTrT1xiu2QeLqoE+SWd03b9wNUtl0fyXEn1Wg5j+KmfzwmLavOdtfK1r/nEXO+q0/ed4Zi8oRtHCran6dz0MEMYZSsN38wuLWOaFKj4DnTiusJLkn Cc: Stefan Reinauer , Stefan Reinauer Subject: [U-Boot] [PATCH v2 11/21] x86: Emit port 80 post codes in show_boot_progress() 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: Stefan Reinauer This helps us monitor boot progress and determine where U-Boot dies if there are any problems. Signed-off-by: Stefan Reinauer Signed-off-by: Simon Glass --- Changes in v2: - Enable boot progress in coreboot config file arch/x86/cpu/coreboot/coreboot.c | 2 ++ include/configs/coreboot.h | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index f262800..5a4c3e5 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -68,6 +69,7 @@ int board_early_init_r(void) void show_boot_progress(int val) { + outb(val, 0x80); } diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index e45ecad..94b6917 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -35,7 +35,7 @@ * (easy to change) */ #define CONFIG_SYS_COREBOOT -#undef CONFIG_SHOW_BOOT_PROGRESS +#define CONFIG_SHOW_BOOT_PROGRESS #define CONFIG_LAST_STAGE_INIT #define CONFIG_X86_NO_RESET_VECTOR #define CONFIG_SYS_VSNPRINTF