From patchwork Sat Jun 30 15:07:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 168300 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 31C342C01BA for ; Sun, 1 Jul 2012 01:04:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DC1472808F; Sat, 30 Jun 2012 17:04:42 +0200 (CEST) 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 5XHkCDIgvFsw; Sat, 30 Jun 2012 17:04:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B44D28081; Sat, 30 Jun 2012 17:04:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D861028082 for ; Sat, 30 Jun 2012 17:04:38 +0200 (CEST) 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 ySaQJO0WK90R for ; Sat, 30 Jun 2012 17:04:38 +0200 (CEST) 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-f172.google.com (mail-gg0-f172.google.com [209.85.161.172]) by theia.denx.de (Postfix) with ESMTPS id 2F23228078 for ; Sat, 30 Jun 2012 17:04:37 +0200 (CEST) Received: by ggnc4 with SMTP id c4so3434577ggn.3 for ; Sat, 30 Jun 2012 08:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=Xm4QRostMxzNPsjpeGJbetXfvWyMA/OBnzU5pZQs7cU=; b=Z2vxQRJbGOrAtMk68IZgypl3KMpXz5CAZzJzM75lSaUmcO6tGKYd+DPIbB9viE04Gs IURbviAlV2B9H4inuvT/IbQyJj3YSqrTzVFFTAqaJ2ZD3sRAFIKQ5eUpqO5PfceTmUgs +LSCdDqTuKH60eaFKSuWU9uGqaYWpOifBcBHLYl70UkwR+WrQVAbbpFmq28xyOqHHuyT oBHy5nCkixVoqUGMd/felNibOFlFla9YiG1Sx4WSFbZiWVAmuiMj6sKub5VVfc4cPdT0 6Sebbn16R2YlnTSIMHbC2HkdTSYxex9672dhoVbRIAqaXTshNxJS/JxYxhgM3snZEz+k YaKw== Received: by 10.101.18.16 with SMTP id v16mr2356783ani.79.1341068674618; Sat, 30 Jun 2012 08:04:34 -0700 (PDT) Received: from micro.lab.ossystems.com.br.lab.ossystems.com.br ([186.218.100.214]) by mx.google.com with ESMTPS id i16sm6525919anm.12.2012.06.30.08.04.31 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jun 2012 08:04:33 -0700 (PDT) From: Otavio Salvador To: u-boot@lists.denx.de Date: Sat, 30 Jun 2012 12:07:32 -0300 Message-Id: <1341068853-22553-1-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10 Cc: Marek Vasut , Fabio Estevam Subject: [U-Boot] [PATCH v2 1/2] imx: Use a clear identification of an unidentified CPU type 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 In case an unidentified CPU type is detected it now returns i.MX??, in a const char. Signed-off-by: Otavio Salvador Cc: Marek Vasut Cc: Stefano Babic Cc: Fabio Estevam --- Changes for v2: * use i.MX?? for unidentified CPU type arch/arm/cpu/armv7/imx-common/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/imx-common/cpu.c b/arch/arm/cpu/armv7/imx-common/cpu.c index b3195dd..e7bd0bf 100644 --- a/arch/arm/cpu/armv7/imx-common/cpu.c +++ b/arch/arm/cpu/armv7/imx-common/cpu.c @@ -66,7 +66,7 @@ char *get_reset_cause(void) #if defined(CONFIG_DISPLAY_CPUINFO) -static char *get_imx_type(u32 imxtype) +static const char *get_imx_type(u32 imxtype) { switch (imxtype) { case 0x63: @@ -80,7 +80,7 @@ static char *get_imx_type(u32 imxtype) case 0x53: return "53"; default: - return "unknown"; + return "??"; } }