From patchwork Tue Sep 24 13:38:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 2933881 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B19A59F289 for ; Tue, 24 Sep 2013 13:38:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A22742030E for ; Tue, 24 Sep 2013 13:38:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 843802044C for ; Tue, 24 Sep 2013 13:38:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753550Ab3IXNit (ORCPT ); Tue, 24 Sep 2013 09:38:49 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:37160 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753532Ab3IXNip (ORCPT ); Tue, 24 Sep 2013 09:38:45 -0400 Received: by mail-lb0-f174.google.com with SMTP id w6so3787712lbh.5 for ; Tue, 24 Sep 2013 06:38:42 -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:in-reply-to :references; bh=++FZn/CZ3yfCcnDaUCfxxXepuzAPTBEkfwjoFSG8KU8=; b=WZ707EDJwcU9C37SiUJRNa4BroCS3Vn9J9YOPDqXOji5uAqx0J/Nbs/qXppNhz7aIZ eYdx0FxAZcqxYXDaKaJq3wYHUT7bY+JWwLKwSnIxDrU1eRdpv5gGHFb6QvegTDQ4Cuyd qvXLfjcxx1IooBYbWiaADxSdLf5oRQorjfAgpUWLgB2pmsHsLvEv1QhphTIWI3UOUas3 +GbKxnS6pG82IFABKAQQQ7bkKQm7EHzj5qdqy6e503Ymm7J/s3EY7wR2c+BKqv+UxYIM 5nkxyYYlQ2fKshrARTJmeUNU8BkeYiJ3+mvzKDIz/fyaD0r9u/otS5VhA5uuorKnsYr8 KEww== X-Gm-Message-State: ALoCoQnElfwszrOa6iLGPiMXQiZsF5bacmv1nAx1Z3NRQBDD9/K+It3yevIyGZ5mJsG3FWjDJq2H X-Received: by 10.112.181.100 with SMTP id dv4mr1871137lbc.34.1380029922228; Tue, 24 Sep 2013 06:38:42 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id k6sm16685243lae.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 24 Sep 2013 06:38:41 -0700 (PDT) From: Valentine Barshak To: linux-media@vger.kernel.org, Simon Horman , Mauro Carvalho Chehab , Guennadi Liakhovetski , Hans Verkuil , Magnus Damm Cc: Subject: [PATCH 2/3] media: rcar_vin: Add preliminary r8a7790 H2 support Date: Tue, 24 Sep 2013 17:38:35 +0400 Message-Id: <1380029916-10331-3-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1380029916-10331-1-git-send-email-valentine.barshak@cogentembedded.com> References: <1380029916-10331-1-git-send-email-valentine.barshak@cogentembedded.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.2 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 --- 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..cf81e02 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 },