Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7142695imu; Thu, 31 Jan 2019 05:45:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN41j4tUaME2PoI9JCq+BLKKjhPnEp+v7XfoqBVEFd0vFHewfmOIS8ph00kvRhqk6eMDw0nB X-Received: by 2002:a17:902:1e9:: with SMTP id b96mr34934673plb.150.1548942323145; Thu, 31 Jan 2019 05:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942323; cv=none; d=google.com; s=arc-20160816; b=tuujWLqbKSzitCBToGsMCn8r9jYBNRMGqgD8kCbrB07Bo3OJow34K4f4Y5xTYmnAKw l9yq5DBTequ09LH+85iWwbj7zFl+5i6hzeMhBVWVx0Gw3kJXQbhFCaBFo6h9pBrnsWAh xmrfTJfNQS8HVIglJzXKwoC/vFi+fsFG7L8CadTbj/mXF0jjnhJtwplshIzKFLmfI5m7 89ylSNR2Eef8J8FUGerXZS1KnP8GmqKwsxXfoVnZEgyw84QEYV1XiZFEE61/q3Ga6GYY VgM6sT3ZQLGg+qsCh1Oj3IRAp5J4EKeQmcV13M6OgnYnvl5bZwCKDsxlev2aJ3h5paSL bSqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K5vMBO4aqrhzgeSw21nioDJfMcdmFayCNuqBHxzCinc=; b=F8BkqmiiuKiMdKgE/GGnfUjLXx5ghzezM9cod+PKbRcAdNC/If8QXQXCgEigcyj4CY wIYdG3blhywaK8vYz7OwFx50iGlf090uo+0LY0WKQ0ih0OAX/e1YUXPNYc7ELO5XZHO/ YHE8aOnFqsijQALrQaXDpyx0qzqS1hoOOn2u7WBw+koSkomCvijdUXRjDiKjx98p4OMb aiC3zYH8GRHhJPMg/heYmlj0PMmanFvcn9fK94A3m/PdDiLLZPR3Kg/oooIwsfIYWHcM pMdrWxKZEgUzy7aMZNiDss+zmUAWmzPOvDNW/ZgiUafbvywCZ9rFnFdVD7Eqkq0rqJkY MdQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=t4Dhfll4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si4689774plz.105.2019.01.31.05.45.07; Thu, 31 Jan 2019 05:45:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=t4Dhfll4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387780AbfAaNkJ (ORCPT + 99 others); Thu, 31 Jan 2019 08:40:09 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46012 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387752AbfAaNkH (ORCPT ); Thu, 31 Jan 2019 08:40:07 -0500 Received: by mail-wr1-f65.google.com with SMTP id t6so3281703wrr.12 for ; Thu, 31 Jan 2019 05:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K5vMBO4aqrhzgeSw21nioDJfMcdmFayCNuqBHxzCinc=; b=t4Dhfll4FUhhKqT5NS/ho9aZ106LH3gvp2RZ4l+k/jeHbcR2XkT2RUutoBUP/kuntp 0csrkM6Ll5qka5MJ64qDlFk7BBR75rEoxN8+ZscVTPdvNLov0XF3V5RFCXtsnBF/Y1HZ popx0r0k/zssRDtMemaSIE6t4EV89UF3LMMUjMo9mJsJqtKKe47NO9ojGRZ209n69HtY mxJKYITNrObAVYY8C7Os7GwdEBJziWjatG2ofjnMpveHD1BAag+VTirjYFYnVsLSK0AQ 2EMb37vU66DtliZY7i6OpjXnbol2AJKSIwMxfQYnoHaHQ7t6/O9LxeVPtIBqzW8LASYY KCMw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=K5vMBO4aqrhzgeSw21nioDJfMcdmFayCNuqBHxzCinc=; b=pE0UXX5F7BMRmEj/nuY1o7JK+7M6u9TqI7EvAPBsaP2pwcyPlh+q1hXmAy28yYN07N KH7dxRECIWS90J9H6Ieg2kWkRY+4NBGOhZKt+SV7O/+f+sUr1N66qZZzxcnlFl8EFwOS G1zYr0YKRVk9jCfHWzNnaos42pbBHBRpwzuuqknwaO73ESsuwNrGl1XlVWs7kJO8IMM1 HW1nc8CCa753D9I3cNnMTCxV09JSftJAFFTGX2Un9nIdCrWGGwwnOCRKxjNIxu+WqJ4O l7In/VGrbZ2TAx/YFcMyblEmRbOAycLXGiIkPzJ8YZCc8w2dB3RKLC9APtjT3Es4Ee03 LsUA== X-Gm-Message-State: AJcUukdhPLmYxkCHh/IbDuj5PbvJD2jDOrleNC+lB9AfkQa1X/GEWwR/ z2Ev2ldg8OX/WcGTrWmMN3HG9w== X-Received: by 2002:a5d:61c4:: with SMTP id q4mr33108437wrv.308.1548942005475; Thu, 31 Jan 2019 05:40:05 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:40:04 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 20/35] ARM: davinci: cp-intc: add a wrapper around cp_intc_init() Date: Thu, 31 Jan 2019 14:39:13 +0100 Message-Id: <20190131133928.17985-21-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski We're going to extend the cp_intc_init() function with a config structure so we can drop the intc-related fields from davinci_soc_info. Once we do it, we won't be able to use this routine directly as the init_irq callback. Wrap the calls in additional helpers that don't take parameters and can be assigned to init_irq. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-da850-evm.c | 2 +- arch/arm/mach-davinci/board-mityomapl138.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 +- arch/arm/mach-davinci/da830.c | 5 +++++ arch/arm/mach-davinci/da850.c | 5 +++++ arch/arm/mach-davinci/include/mach/da8xx.h | 2 ++ 7 files changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index 4c1836fa654e..b3a0148f7f1a 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -693,7 +693,7 @@ static void __init da830_evm_map_io(void) MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM") .atag_offset = 0x100, .map_io = da830_evm_map_io, - .init_irq = cp_intc_init, + .init_irq = da830_init_irqs, .init_time = da830_init_time, .init_machine = da830_evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 548a3c351c02..efc9a33da6e1 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1521,7 +1521,7 @@ static void __init da850_evm_map_io(void) MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM") .atag_offset = 0x100, .map_io = da850_evm_map_io, - .init_irq = cp_intc_init, + .init_irq = da850_init_irqs, .init_time = da850_init_time, .init_machine = da850_evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c index eb6a9465f229..59a6f5db4222 100644 --- a/arch/arm/mach-davinci/board-mityomapl138.c +++ b/arch/arm/mach-davinci/board-mityomapl138.c @@ -623,7 +623,7 @@ static void __init mityomapl138_map_io(void) MACHINE_START(MITYOMAPL138, "MityDSP-L138/MityARM-1808") .atag_offset = 0x100, .map_io = mityomapl138_map_io, - .init_irq = cp_intc_init, + .init_irq = da850_init_irqs, .init_time = da850_init_time, .init_machine = mityomapl138_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index 7f852722ff08..af6580ce71eb 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -461,7 +461,7 @@ static void __init omapl138_hawk_map_io(void) MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard") .atag_offset = 0x100, .map_io = omapl138_hawk_map_io, - .init_irq = cp_intc_init, + .init_irq = da850_init_irqs, .init_time = da850_init_time, .init_machine = omapl138_hawk_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index f1e7b6c644e5..8b9220badef5 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c @@ -742,6 +742,11 @@ void __init da830_init(void) WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module"); } +void __init da830_init_irqs(void) +{ + cp_intc_init(); +} + void __init da830_init_time(void) { void __iomem *pll; diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 40b90730e847..9f48e1ac61fb 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -671,6 +671,11 @@ void __init da850_init(void) WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module"); } +void __init da850_init_irqs(void) +{ + cp_intc_init(); +} + void __init da850_init_time(void) { void __iomem *pll0; diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index ab4a57f433f4..a5b4b1b964fd 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h @@ -88,10 +88,12 @@ extern unsigned int da850_max_speed; #define DA8XX_ARM_RAM_BASE 0xffff0000 void da830_init(void); +void da830_init_irqs(void); void da830_init_time(void); void da830_register_clocks(void); void da850_init(void); +void da850_init_irqs(void); void da850_init_time(void); void da850_register_clocks(void); -- 2.20.1