From patchwork Sat Dec 7 23:59:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3305241 Return-Path: X-Original-To: patchwork-linux-sh@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 581EEC0D4A for ; Sat, 7 Dec 2013 22:59:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58D5320320 for ; Sat, 7 Dec 2013 22:59:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77ADE20306 for ; Sat, 7 Dec 2013 22:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755779Ab3LGW7U (ORCPT ); Sat, 7 Dec 2013 17:59:20 -0500 Received: from mail-la0-f47.google.com ([209.85.215.47]:49941 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754671Ab3LGW7U (ORCPT ); Sat, 7 Dec 2013 17:59:20 -0500 Received: by mail-la0-f47.google.com with SMTP id ep20so819494lab.34 for ; Sat, 07 Dec 2013 14:59:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=Js5VKVnsgr5+Pb7T7jvMcpM/BE3pQ/x/ukxIgBWzYgc=; b=RCqemJN6GkL+jbnEBj2dX82kgkRwN0j3lY+JHT25BLsSMZodgVo8Bk7NrRX4Mxfeir ImTghmrZc9Bn4s5aJ/ufnkM6ZHv8GLaDX3H1OafsqI6ACQvJbOMxHyo2C/mM5CgIIRbV WAtVAJVMC6gwISkL3mZPJU3tXN2s/ylu9ILX0NG1B3TscErNM13V4MrdWUto5xHH6v4b BkXU4vP/M632F7vzfNlZzu2WfZG7fE3XND0UkvVic8Bcv2c/NdHvQBAQFvyQ2WPrWTJ6 FDovkB7QzpswqiO0TrlvgLiEqymT2s9aqeI5AQeAqORGLxdESDVqRBRwB68+fB89lAil YUbA== X-Gm-Message-State: ALoCoQmtBuxE3C+zoRTMYzPLSonAbmtLYHdABI5YC7/+Sky4iykryRr/7EaeM1Ip7Rm84zQoaOb0 X-Received: by 10.152.238.9 with SMTP id vg9mr51723lac.55.1386457158263; Sat, 07 Dec 2013 14:59:18 -0800 (PST) Received: from wasted.dev.rtsoft.ru (ppp83-237-60-6.pppoe.mtu-net.ru. [83.237.60.6]) by mx.google.com with ESMTPSA id tc8sm3491119lbb.9.2013.12.07.14.59.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 07 Dec 2013 14:59:17 -0800 (PST) To: netdev@vger.kernel.org Subject: [PATCH v2] sh_eth: add R8A7791 support Cc: linux-sh@vger.kernel.org From: Sergei Shtylyov Organization: Cogent Embedded Date: Sun, 8 Dec 2013 02:59:18 +0300 MIME-Version: 1.0 Message-Id: <201312080259.19163.sergei.shtylyov@cogentembedded.com> 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.1 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 Add support for yet another ARM member of the R-Car family, R-Car M2, also known as R8A7791 -- it will share the code and data with previously added R8A7790. Despite the Ether devices in these SoCs are indistinguishable at least from the driver's point of view, we do introduce a new platform device ID "r8a7791-ether" unlike the wildcard ID used for R8A7778/9 SoCs, due to newly established policy for the Renesas SoCs. Signed-off-by: Sergei Shtylyov --- This patch is atop of DaveM's 'net-next.git' repo. Changes in version 2: - added a new platform device ID for R8A7791 instead of changing the existing ID for R8A7790 to a R8A779x wildcard ID. drivers/net/ethernet/renesas/Kconfig | 2 +- drivers/net/ethernet/renesas/sh_eth.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: net-next/drivers/net/ethernet/renesas/Kconfig =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/Kconfig +++ net-next/drivers/net/ethernet/renesas/Kconfig @@ -13,4 +13,4 @@ config SH_ETH Renesas SuperH Ethernet device driver. This driver supporting CPUs are: - SH7619, SH7710, SH7712, SH7724, SH7734, SH7763, SH7757, - R8A7740, R8A777x and R8A7790. + R8A7740, R8A777x and R8A779x. Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -395,8 +395,8 @@ static struct sh_eth_cpu_data r8a777x_da .hw_swap = 1, }; -/* R8A7790 */ -static struct sh_eth_cpu_data r8a7790_data = { +/* R8A7790/1 */ +static struct sh_eth_cpu_data r8a779x_data = { .set_duplex = sh_eth_set_duplex, .set_rate = sh_eth_set_rate_r8a777x, @@ -2807,7 +2807,8 @@ static struct platform_device_id sh_eth_ { "sh7763-gether", (kernel_ulong_t)&sh7763_data }, { "r8a7740-gether", (kernel_ulong_t)&r8a7740_data }, { "r8a777x-ether", (kernel_ulong_t)&r8a777x_data }, - { "r8a7790-ether", (kernel_ulong_t)&r8a7790_data }, + { "r8a7790-ether", (kernel_ulong_t)&r8a779x_data }, + { "r8a7791-ether", (kernel_ulong_t)&r8a779x_data }, { } }; MODULE_DEVICE_TABLE(platform, sh_eth_id_table);