Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2522006imm; Mon, 28 May 2018 09:40:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbK+7pvuUSs78zwRT2qPKTChKNBneBoyIEj1/QRpp0xki03+7QLkt/Qxrge+JaFV/tYrJn X-Received: by 2002:a17:902:9689:: with SMTP id n9-v6mr13952846plp.363.1527525621501; Mon, 28 May 2018 09:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527525621; cv=none; d=google.com; s=arc-20160816; b=PvzK5I4tBOEaI8Zig4vBhAzpXqLpKgqaRDs1nZnTw0uzluqv8PLOClGYeh4WnQjW/S VSMPqgob10373lT+hbzyZxHq+URV62me4SJw5qQidIkrIBoI7LGsfp8602wYArQpbVV+ cxE/oMd+TkbPPQzcOASEg+ptqVu6Q1bE/y3VLPKfGQfRFWbugyb+e0Uu2+U1mUCzw49U AKm+aaF8CTK+RA7MXIRWU8EICr062t4YS11RFbuKW+B1DPasC/+AED+SqZoYmLXnLn4H lasBc+sRG7nMYZNpOgSomOP02vGSRbLlWUSG8u5ZRe6dlcql5A7VVApdFaboOuBltm0h 0Egg== 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=Nvk9HiRg7L8NFouBvUU1ADHNwr71wVTd9+Evh3AZhrE=; b=MnA5Q3cSg52OlUkAcEYeFfqEfYjF5ctdVEAfADdDaCyV9kSl4+hsnui/GOOr4G8+Uu Z9jvBxeKaUumvVXe3k9zntPjNtC5gdkbWt9UluZNsoexXq8gb0qaj43A0VFRYbW1jllg ibBjhhtJc7LcpnpYML8LNRJccFEsx2hF+CUKK0g0sTkfGIZYwWdfHWzd1EgdbPlirLM8 prrDfDPoX+S1tmZkzLLZuVqaC728LPBkXTaFqgjEDR1mUppRVJkN+DzXFeQCjVrymilJ WZ7P6ziom5c6BbF+VgtMCmH0ZVH3pUqZ/Q1fC66yStXzthPUP50COhr2+vB7z8MuLYcN Gx3w== 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 g22-v6si23604091pgv.468.2018.05.28.09.39.36; Mon, 28 May 2018 09:40:21 -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 S940346AbeE1Qh6 (ORCPT + 99 others); Mon, 28 May 2018 12:37:58 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:42093 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940339AbeE1Qhm (ORCPT ); Mon, 28 May 2018 12:37:42 -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 9DBB840011; Mon, 28 May 2018 18:37:35 +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 5/5] arch: sh: ap325rxa: Use new renesas-ceu camera driver Date: Mon, 28 May 2018 18:37:11 +0200 Message-Id: <1527525431-22852-6-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 ap325rxa board file instead of the soc_camera based sh_mobile_ceu_camera driver. Get rid of soc_camera specific components, and register CEU0 with a single video sensor (ov7725). 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. The ap325rxa board file registers another camera (ncm03j) for which I found no driver in mainline kernel version, and that was configured/probed by sending i2c messages (of 'magic blobs) from the board file itself. I removed the sensor registration from this new version as it used soc_camera components that will be later removed. While at there update license to SPDX header and sort headers alphabetically. Compile tested only. Signed-off-by: Jacopo Mondi --- arch/sh/boards/mach-ap325rxa/setup.c | 282 +++++++++------------------------ arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 2 +- 2 files changed, 80 insertions(+), 204 deletions(-) diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index de8393c..8f234d04 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c @@ -1,40 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Renesas - AP-325RXA * (Compatible with Algo System ., LTD. - AP-320A) * * Copyright (C) 2008 Renesas Solutions Corp. * Author : Yusuke Goda - * - * 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