Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2523031imm; Mon, 28 May 2018 09:41:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL89vrk1HiCB5ys+SZ4WV0wZszFBkdUIME+WshEYTYfIRXY1lIe/N7u+H1gt/6tSFEX/hrx X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr9509872plb.74.1527525701196; Mon, 28 May 2018 09:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527525701; cv=none; d=google.com; s=arc-20160816; b=zKaMVuoz2P5UurwjzDBzHj6Ns6HWMjsYYwpdcv1a8FoNiUaSli7iAq5gBQnCvZZgBA mBPOBaiidNfI4HoTtIFO2RKeH7w/do9JmQyfogUOhPMokuEsxXg57HG+syvX5cjmhwyg oLYDXnh2fftylNjdxXXyyG9fKkbu7WmUjQdHDYBn771p1pO6H3Up2n61fKyd/yhhsiyr UHCRdqzjik+evHYGfXa4EXKZzPk9MuVY/1JVKxN9NXiX/iC6f3Sq4oyiW7qxOySdrc4D mSONJcUX5U/zIsqmTxOI4I+6c2FrHwUx1vZd9Vp3GlWNtETFNNMdblC3xCC50zRmKoO0 t2mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=R2MQXfaUhEQ5ZYbTzn2U2GDCpShqOG5SRZwz3SIZAII=; b=w1Mzim2SCLSLNFzSG3wlizbXjo0+0P/TA8IiaxqkixthnEl0oMkd2h9M4JrWBP3S1P +wdIi58LtKgNtluBk+WKotNhuvz/LARWlHmZ1ingzGzY8b4p1SSLuUwbhSTvg/bz5YET DJOfGBX1QHtCenww/VNxgSvw1VI1/lTEbdPnTLo8cYJrSFTLRCgN75MQrrkhfF3KRXTv 1CpcwwY16LxXTtei9KnUYL2P+Apb32DhiSpfanEwDswPWsCialFJkVyrINdvUAEJdm9x ln8teosMck3e7HJU4kk1xNDw3pPHJswL7eYFMWytzVvHMfOZSshMvf77OjlG8Qpf4rVg z0Xw== ARC-Authentication-Results: i=1; mx.google.com; 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 w22-v6si29939594plq.196.2018.05.28.09.40.56; Mon, 28 May 2018 09:41:41 -0700 (PDT) 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; 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 S940318AbeE1QjB (ORCPT + 99 others); Mon, 28 May 2018 12:39:01 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:50253 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940222AbeE1Qhd (ORCPT ); Mon, 28 May 2018 12:37:33 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 4C1644000B; Mon, 28 May 2018 18:37:29 +0200 (CEST) From: Jacopo Mondi To: hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, sakari.ailus@iki.fi, mchehab@kernel.org, ysato@users.sourceforge.jp, dalias@libc.org Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arch: sh: kfr2r09: Use new renesas-ceu camera driver Date: Mon, 28 May 2018 18:37:09 +0200 Message-Id: <1527525431-22852-4-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527525431-22852-1-git-send-email-jacopo+renesas@jmondi.org> References: <1527525431-22852-1-git-send-email-jacopo+renesas@jmondi.org> X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new renesas-ceu camera driver in kfr2r09 board file instead of the soc_camera based sh_mobile_ceu_camera driver. Get rid of soc_camera specific components, and move clk and gpio handling away from board file, registering the clock source and the enable gpios for driver consumption. Memory for the CEU video buffers is now reserved with membocks APIs, and need to be declared as dma_coherent during machine initialization to remove that architecture specific part from CEU driver. While at there update license to SPDX header and sort headers alphabetically. No need to udapte the clock source names, as commit c2f9b05fd5c1 ("media: arch: sh: ecovec: Use new renesas-ceu camera driver") already updated it to the new ceu driver name for all SH7724 boards (possibly breaking kfr2r09 before this commit). Compile tested only. Signed-off-by: Jacopo Mondi --- arch/sh/boards/mach-kfr2r09/setup.c | 217 +++++++++++++++++------------------- 1 file changed, 103 insertions(+), 114 deletions(-) diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 6af7777..e59c577 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c @@ -1,41 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0 /* * KFR2R09 board support code * * Copyright (C) 2009 Magnus Damm - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. */ -#include -#include -#include -#include -#include -#include -#include + +#include +#include +#include +#include + +#include + +#include #include -#include +#include #include +#include +#include +#include #include #include -#include +#include +#include +#include +#include +#include +#include #include +#include #include #include +#include #include #include -#include + +#include + +#include #include -#include -#include + #include