From patchwork Sat Nov 18 20:35:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 10064935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 09AAE602B8 for ; Sat, 18 Nov 2017 20:37:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF79D20500 for ; Sat, 18 Nov 2017 20:37:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2ECF295AD; Sat, 18 Nov 2017 20:37:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6267020500 for ; Sat, 18 Nov 2017 20:37:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=44oKQjR95Gt2UYAlq+iq86t5JrWT6iQvgIkn72Epu70=; b=mSL vyi/XK6K78EKvqko4giJEKJcRo/6jASaxrFqIfg1EUm/blrJMrRtdnGy/7GXSuTSUyYGJEjY8QqAk XDIWTKtgXQtZXMjdObp/7suf13OrHM6K6tbbFGOTZlAkK+jEaVRiJaZoYewDvmMnvUwbWwFSEDmNH uZCwjB3caH5ityKhwdx1wcMz/GVPyG3S8RzKQAXbBoRYd8CCxYvFbZNl8AtH1Q5zc4pgfYCTUj16Z B9ptDC1gA87UzQucR18hZH0AeQeLDYhvyO35cFQgSHvEz7p/APjYIXXziQqCwpkfhn8coVcCs3v0j LDhk92hgar7s+JDa8Wv4y5MNZImveHA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eG9rX-00043d-R5; Sat, 18 Nov 2017 20:37:15 +0000 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eG9r8-000421-CU for linux-arm-kernel@lists.infradead.org; Sat, 18 Nov 2017 20:36:52 +0000 Received: by mail-it0-x241.google.com with SMTP id n134so7909651itg.1 for ; Sat, 18 Nov 2017 12:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=O4kzPQONxzSDQJ/waJqPn13KQ6iNtzuhn0f7ErSuLKM=; b=rQRGSeudX/MYb0+kz2QXXGwJacgWXV7CQsnw5qYddSB11AfZrQT1nbERRMfQt5R7D1 rVb9fZNlEJh2EI++eVgBu2a8MSXoEWXKbUdQmbYRDSjDykyJ50kP5yI04Gko1O8rfsto 642oMXFCxO1yGr/BejY7O3h5VSjHVZrV3kbsO3Bcd7IqchyShEtSRn5EDCzZXG2VFX/x TeiUuMDR2TqugaAYGwIzIwAXKHsre/s8DUZ83cVmKga7aHNYT8MZr9rRBsXTOKRm5pgU z76Vnhkh/gw4qNJwT3FTUSYPyMVF9fiRlZYJ++5y9HjNE4Svn9h1eqG8uLC9r930LsE/ N7Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O4kzPQONxzSDQJ/waJqPn13KQ6iNtzuhn0f7ErSuLKM=; b=q/15H+O4qWUE897pHB22yPsTI+lhWxu8qSNuWt8/mykIV02jqjGm2K0ERB02Eek5Xp RZAoiCIMxNLlEcPmEuARAIh1OKrKCtZMFg0SJREcLn01qCApnYFRDtdS9cRB6D0PX/pp 6JLU/7GYsOLO29lwULk/aWh6/NZQXiIZ5h69Wpe1R2otYCFrl+QWWeRXHWAyWCBrd+Xo tqNVC6HIBtwv/HJigQfQgvqoNIqI1R39tHqJpbhs/Ypd759XcOY/bd9dTZngx1/ozqDa t+wynnsLivRsRt0o6jJ63UVxpwiB2R8h6HJPZGkAdNlzuykm3PgHJuCaKXt9uKXSt1lP ETtw== X-Gm-Message-State: AJaThX6RNCt2cyfNIuUlgKscs4T7sEfy6T+VQpXR5HqidtIbUd44c6Ut GEVGPjHhxn+XQBFJTF57QBQ= X-Google-Smtp-Source: AGs4zMa9as/gaDzAM7Q+TSoHvJB4pBcLXxN/4oBA2kzXIo8ipwf6IokFPRoG0y5OYe4d3umKxUiFHw== X-Received: by 10.36.28.81 with SMTP id c78mr6661784itc.96.1511037388375; Sat, 18 Nov 2017 12:36:28 -0800 (PST) Received: from localhost.localdomain (CPEac202e257683-CMac202e257680.cpe.net.fido.ca. [72.140.103.110]) by smtp.gmail.com with ESMTPSA id l206sm3425531ita.29.2017.11.18.12.36.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Nov 2017 12:36:27 -0800 (PST) From: Dongjin Kim To: Subject: [PATCH] ARM: exynos: add machine description for ODROID-XU3/4 Date: Sat, 18 Nov 2017 15:35:44 -0500 Message-Id: <20171118203544.19431-1-tobetter@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171118_123650_478475_E7BD363B X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Russell King , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Kukjin Kim , Dongjin Kim , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is to add the machine descriptions for ODROID-XU3/4 boards in order to present the hardware name at /proc/cputinfo rather than "SAMSUNG EXYNOS (Flattened Device Tree)". An embedded open source project, such as DietPi, reads the hardware name to run different features. $ cat /proc/cpuinfo | grep Hardware Hardware : ODROID-XU4 Signed-off-by: Dongjin Kim --- arch/arm/mach-exynos/exynos.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index c404c15ad07f..6197dbf9f48b 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -241,3 +241,31 @@ DT_MACHINE_START(EXYNOS_DT, "SAMSUNG EXYNOS (Flattened Device Tree)") .dt_compat = exynos_dt_compat, .dt_fixup = exynos_dt_fixup, MACHINE_END + +#define ODROID_MACHINE_START(name, compat) \ + DT_MACHINE_START(EXYNOS5422_ODROID_##name, "ODROID-"#name) \ + .l2c_aux_val = 0x3c400001, \ + .l2c_aux_mask = 0xc20fffff, \ + .smp = smp_ops(exynos_smp_ops), \ + .map_io = exynos_init_io, \ + .init_early = exynos_firmware_init, \ + .init_irq = exynos_init_irq, \ + .init_machine = exynos_dt_machine_init, \ + .init_late = exynos_init_late, \ + .dt_compat = compat, \ + .dt_fixup = exynos_dt_fixup, \ + MACHINE_END + +static char const *const exynos5422_odroidxu3_dt_compat[] __initconst = { + "hardkernel,odroid-xu3", + "hardkernel,odroid-xu3-lite", + NULL, +}; + +static char const *const exynos5422_odroidxu4_dt_compat[] __initconst = { + "hardkernel,odroid-xu4", + NULL, +}; + +ODROID_MACHINE_START(XU3, exynos5422_odroidxu3_dt_compat) +ODROID_MACHINE_START(XU4, exynos5422_odroidxu4_dt_compat)