From patchwork Tue Nov 25 03:08:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 5371511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18DCFC11AC for ; Tue, 25 Nov 2014 03:10:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 54C3A20145 for ; Tue, 25 Nov 2014 03:10:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74C132017E for ; Tue, 25 Nov 2014 03:10:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xt6UY-0007iT-JJ; Tue, 25 Nov 2014 03:08:38 +0000 Received: from mail-pd0-f169.google.com ([209.85.192.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xt6US-0007Yk-DK for linux-arm-kernel@lists.infradead.org; Tue, 25 Nov 2014 03:08:32 +0000 Received: by mail-pd0-f169.google.com with SMTP id fp1so10942099pdb.14 for ; Mon, 24 Nov 2014 19:08:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nsS3FcY0c4YtBCN+fcvoyvDEgEG8K70b3mcJ68Jltnk=; b=DPTbHpTUirlGFZWlJINp0G2EwXqVQVmhAzU36P4O7ra7mLFJWq9v7g5M8A6y8UZVDP tH1EbW1eI//V7s+UFvvZlqBbt3eZvJpxkJMRWzF3Gai8/Bqs/5srig/DUSJ0ZphkKYBG pwl0zInUMGMPqhYz6L5JrP3PVFZmWuEkFV+OqYWWGa/LfwxBHvwSdwVXREpfG45I1CbX 3HkicdqbUViJJrzGAHGPZCvkvDvhqkTktSBZkmp/1+AQaYtmX5wTImsCFdLBXzbJN5Cq E0Gz8W9xwczHqaTNKRSHdqBVNxAaqg0tic/5Sw3P+xhwWqcI8CLR6uEJSjM5Lhv2gPQs YsrA== X-Gm-Message-State: ALoCoQnMifkW+SrhZ7pDLZvFIupA+oINnP/grqBDsu/9S5+4qNxXf8aqOw2Fej5Tgn8LgwAewC68 X-Received: by 10.68.108.67 with SMTP id hi3mr38974606pbb.19.1416884889371; Mon, 24 Nov 2014 19:08:09 -0800 (PST) Received: from quad.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id pd9sm13657937pbb.7.2014.11.24.19.08.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 19:08:08 -0800 (PST) From: Olof Johansson To: kgene.kim@samsung.com Subject: [PATCH] ARM: exynos: print CPU id on probe Date: Mon, 24 Nov 2014 19:08:06 -0800 Message-Id: <1416884886-9896-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 2.0.1.473.gc4d58ca X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141124_190832_485909_8EB2DD71 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Olof Johansson , khilman@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's useful to get the CPU ID/rev printed during boot sometimes, so add a line with that information. Given that the fields have moved within the register over time, don't try to be clever and parse it -- just print the raw values for now. Signed-off-by: Olof Johansson --- Kukjin, please apply if you're OK with this. Thanks! -Olof arch/arm/plat-samsung/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/plat-samsung/cpu.c b/arch/arm/plat-samsung/cpu.c index 360618ee39e5..71333bb61013 100644 --- a/arch/arm/plat-samsung/cpu.c +++ b/arch/arm/plat-samsung/cpu.c @@ -40,10 +40,14 @@ void __init s3c64xx_init_cpu(void) } samsung_cpu_rev = 0; + + pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); } void __init s5p_init_cpu(void __iomem *cpuid_addr) { samsung_cpu_id = __raw_readl(cpuid_addr); samsung_cpu_rev = samsung_cpu_id & 0xFF; + + pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); }