Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbbKYPuB (ORCPT ); Wed, 25 Nov 2015 10:50:01 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:57157 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbbKYPt7 (ORCPT ); Wed, 25 Nov 2015 10:49:59 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , Arnd Bergmann Subject: [PATCH 1/5] ARM: orion: move watchdog setup to mach-orion5x Date: Wed, 25 Nov 2015 16:49:13 +0100 Message-Id: <1448466557-435335-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1448466557-435335-1-git-send-email-arnd@arndb.de> References: <1448466557-435335-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:Y7Z16DH7ZUfGde+tfraeqWHTwK86XlWdklMTzgT9exBmRN6E9r5 m9tfBqLm10CQUsO+6/JY/9+DXQDfJsfs8If58XcFunvWn2HYCp1Y/yb7mrffYqvE8VJIutD PkT8UF5G6ajFCuoExkEPALzLyDAAHPlNdEFLRZ7igWawGGIO1qCfQ59i6cq9I9/JnW8sOEW 35SiTAjGXsNDLRaJYnSsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:7iDERCshsbQ=:I8bX4n0LJv2Ku/OR4CSCSE QovYG/3ez9nvHq5s+XXKMF7YKXYs9JoOHSBaxm0ddEqMvh2kEKbG4ZYoXUMsE1OW4iouCeL8A p211Zt2JiLExavuG8PF9AvUzjZjaOrarL8LaPtSrQvqU+yxDcXmnnImgPE2RNEwMZWbhFeYBZ ZiIBJZp27dkOkW6fnjUTjvxNZFBBy114a+0+H2q1AuIFntotJhHA0sASO8Tlnt1J4g7gIexs4 f8HKvKz2LFII0EWi62TazQ2t8hhT5hqN1lQr7xlL4/Cmbw89rnCJ7EEDlGPQWsNgew5OFtOSS /JqiJnw/UT7MwTjsAnjjAADlg40fn77fQKUUERWN9DiXPWu8rcEgZsMuB+pBMxEIVE5ctLJua EZZWIYzmVmNrxdWyBncI9oHpeG7gk8mhKyRhEgf+HlJD9A/NhrkouoNHGeIJJDAJpZY5Y0OnB +8a5oHFy/rPibu4+Q2SbowmWnjgaUWPQsaQYmwcSKk8iJGeyvQYfKHZsi8Cyj8v0lc7Pq89A5 JGdWYW+oHOBQHHlJvHNCqNsysVq3PMbD5nFNyEicJwaSMSGW4X1rGyuMGB0i1M46X+oVAbIcJ IVAY94pMnT8Je5MHMsBnGy+835hxuvE/Q9ocl8bpvsLiZ2HR3DqLGlBr2UctGq22eX9/7nxrK mTPza28d0sDvhrVyIZKkpZYSetlOF+xVgQGjueZ9eHBQZrqlAF0WGm6XTvzAFiXgM8G0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3580 Lines: 102 The watchdog device node is created in plat-orion/common.c but depends on the bridge address that is platform specific, so as a preparation for orion multiplatform support, we should move it out of the common code into orion5x. The other two users of plat-orion currently do not support the watchdog device, so this is not a problem. Signed-off-by: Arnd Bergmann --- arch/arm/mach-orion5x/common.c | 14 +++++++++++++- arch/arm/plat-orion/common.c | 21 --------------------- arch/arm/plat-orion/include/plat/common.h | 2 -- 3 files changed, 13 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 6bbb7b55c6d1..2b7889e3b7bc 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c @@ -184,9 +184,21 @@ static void __init orion5x_crypto_init(void) /***************************************************************************** * Watchdog ****************************************************************************/ +static struct resource orion_wdt_resource[] = { + DEFINE_RES_MEM(TIMER_PHYS_BASE, 0x04), + DEFINE_RES_MEM(RSTOUTn_MASK_PHYS, 0x04), +}; + +static struct platform_device orion_wdt_device = { + .name = "orion_wdt", + .id = -1, + .num_resources = ARRAY_SIZE(orion_wdt_resource), + .resource = orion_wdt_resource, +}; + static void __init orion5x_wdt_init(void) { - orion_wdt_init(); + platform_device_register(&orion_wdt_device); } diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index 8861c367d061..78c8bf4043c0 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -21,7 +21,6 @@ #include #include #include -#include #include /* Create a clkdev entry for a given device/clk */ @@ -589,26 +588,6 @@ void __init orion_spi_1_init(unsigned long mapbase) } /***************************************************************************** - * Watchdog - ****************************************************************************/ -static struct resource orion_wdt_resource[] = { - DEFINE_RES_MEM(TIMER_PHYS_BASE, 0x04), - DEFINE_RES_MEM(RSTOUTn_MASK_PHYS, 0x04), -}; - -static struct platform_device orion_wdt_device = { - .name = "orion_wdt", - .id = -1, - .num_resources = ARRAY_SIZE(orion_wdt_resource), - .resource = orion_wdt_resource, -}; - -void __init orion_wdt_init(void) -{ - platform_device_register(&orion_wdt_device); -} - -/***************************************************************************** * XOR ****************************************************************************/ static u64 orion_xor_dmamask = DMA_BIT_MASK(32); diff --git a/arch/arm/plat-orion/include/plat/common.h b/arch/arm/plat-orion/include/plat/common.h index d9a24f605a2b..9e6d76ad48a9 100644 --- a/arch/arm/plat-orion/include/plat/common.h +++ b/arch/arm/plat-orion/include/plat/common.h @@ -75,8 +75,6 @@ void __init orion_spi_init(unsigned long mapbase); void __init orion_spi_1_init(unsigned long mapbase); -void __init orion_wdt_init(void); - void __init orion_xor0_init(unsigned long mapbase_low, unsigned long mapbase_high, unsigned long irq_0, -- 2.1.0.rc2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/