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: 2988971 Return-Path: X-Original-To: patchwork-linux-sh@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 4CA0B9F289 for ; Fri, 4 Oct 2013 14:21:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F09020456 for ; Fri, 4 Oct 2013 14:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3EF7120426 for ; Fri, 4 Oct 2013 14:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395Ab3JDOU5 (ORCPT ); Fri, 4 Oct 2013 10:20:57 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:59289 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754654Ab3JDOUz (ORCPT ); Fri, 4 Oct 2013 10:20:55 -0400 Received: by mail-lb0-f171.google.com with SMTP id u14so3376853lbd.30 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=jznWjWJY3GRo3DKeMQHFjFYTV8x1DYDnFSgN3AKA/zZ+5xVreCTdf6z+I5ej1OyUeh I4W+VfamwaE8nLK9ib+PQkVOYOopzVClm1VKOpk1w7UYnJYut75Y9r/WpbxCZmhNZJRr uXnxZL9w5wBm0eHJ4HGZDX8ux9wLRoYwpce0sH5PmRi+IeoiLtF6ttEQy6an3McyfGtf su3eQy8cs2McNJl8DlVFucyxElefgbZHN69GdJi+B2Pt3xbWMY9YZmyZrnfxYcnZ8bkH 6GacqxPoMFyFSoflJk6SwbZCwi4J4C/W/JvMY+kv4ZFLZRguuY/OHXUFU5qFfLDnOoHD kvdg== X-Gm-Message-State: ALoCoQlP1gKjSkpgoP0rLL94aQuY1ao8UMUcqdSOMC4n6G0LemfMiM4c877HuFg6BDAw4Y/xUnMD 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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 },