From patchwork Fri Oct 4 14:20:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 2988981 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 61537BFF0B for ; Fri, 4 Oct 2013 14:21:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA53A2044B for ; Fri, 4 Oct 2013 14:21:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A12EE2045A for ; Fri, 4 Oct 2013 14:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754729Ab3JDOU6 (ORCPT ); Fri, 4 Oct 2013 10:20:58 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:61656 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754635Ab3JDOUz (ORCPT ); Fri, 4 Oct 2013 10:20:55 -0400 Received: by mail-la0-f45.google.com with SMTP id eh20so3259672lab.4 for ; Fri, 04 Oct 2013 07:20:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0/tIzPfh3Ta6bVGJpKUOg1qfSL7VQcniwfl+XmUU31E=; b=JpM06sE7sel51AS60vmBI4jD/3sO1Alg2RIV0NacV2IqIvQAUF0DCJgRQNX8Nwx5Nb z5wPKfIyKpRDYmCBQHrRQFls5w5I+hTWJ0lJttt5rzIcMyGTHN+K46BPZUha5GR3DpiW +EpsmXH3dhI4CWBJroNe33rGmwqRh5ebaD0m6urEIJeooGUAdc4REoISUS2Fn1J860Fs aGX+ERGQRLGn73WSS9RO30RovY8r2JRckpvYgJKPqvzP+I3w1dJUaBplgNP/x9gz0av7 VAaPRJyHKwvwVeD+kP382hCpvVodaYJiU7wAuwUdrCEww2tUfvWLGZM9Bqox6FM3UUGB /Y5w== X-Gm-Message-State: ALoCoQmJqLCmgkiLxX0BNk6+cm+G9pKDEv7ThuUyGyaTIt4EoVSNseVDq99RP4+CKp6SnCdvTcpC X-Received: by 10.112.77.134 with SMTP id s6mr1834183lbw.38.1380896454485; Fri, 04 Oct 2013 07:20:54 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id n15sm11311545laa.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 04 Oct 2013 07:20:53 -0700 (PDT) From: Valentine Barshak To: linux-media@vger.kernel.org, Hans Verkuil Cc: Simon Horman , Magnus Damm , Laurent Pinchart , Mauro Carvalho Chehab , Guennadi Liakhovetski , linux-sh@vger.kernel.org Subject: [PATCH] media: rcar_vin: Add preliminary r8a7790 support Date: Fri, 4 Oct 2013 18:20:52 +0400 Message-Id: <1380896452-10687-1-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Valentine Barshak Acked-by: Simon Horman --- drivers/media/platform/soc_camera/rcar_vin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index d02a7e0..b21f777 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -105,6 +105,7 @@ #define VIN_MAX_HEIGHT 2048 enum chip_id { + RCAR_H2, RCAR_H1, RCAR_M1, RCAR_E1, @@ -300,7 +301,8 @@ static int rcar_vin_setup(struct rcar_vin_priv *priv) dmr = 0; break; case V4L2_PIX_FMT_RGB32: - if (priv->chip == RCAR_H1 || priv->chip == RCAR_E1) { + if (priv->chip == RCAR_H2 || priv->chip == RCAR_H1 || + priv->chip == RCAR_E1) { dmr = VNDMR_EXRGB; break; } @@ -1381,6 +1383,7 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { }; static struct platform_device_id rcar_vin_id_table[] = { + { "r8a7790-vin", RCAR_H2 }, { "r8a7779-vin", RCAR_H1 }, { "r8a7778-vin", RCAR_M1 }, { "uPD35004-vin", RCAR_E1 },