From patchwork Tue Feb 10 07:50:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 44521 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C81321512 for ; Tue, 10 Feb 2015 07:51:28 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b57sf10687548eek.0 for ; Mon, 09 Feb 2015 23:51:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=XhS6x6HOrw96Pzz3kWIfa4rycZK691tqDIzob7QbzuM=; b=Nld3c8RKdOOYrW6H3L7H6/Qwa+GdALnyrwZkWXE+ivJXGys/1zZaVRbpFNGo/DzJDG uSDYuSSz1Y5N0n2oficIRbppDY4QkZ+jNsPP5HJN8b3h9o1yjO3MPqignU3d65oqXEhb 4fWoYUlqOHP9eHYB0D6hAKLXJ2w2U+M6smoheujg9jr5Xr8KD7F7DHMKos0eUj+YSZVg Z84colcuGaS6Xto6x0Dj9cGr48AxzIwAtCUFCB/JLcVLNClODqoRgoJAvwcQjEA9Mfsc gT44n+f+jcqBDBvvsVsLoWqU3evRkIjPa+nYaZtkIM1AIZSF5FnU6LpHXY76B38ZVXvj sLsA== X-Gm-Message-State: ALoCoQmv4E7GAtetlzMGDe2OkJy6T9ajCwH3RYRTe7mpiE54DKD7dnK/WeYWep+kLjMl9WS8BRju X-Received: by 10.180.105.129 with SMTP id gm1mr2316022wib.3.1423554687260; Mon, 09 Feb 2015 23:51:27 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.193 with SMTP id v1ls596809lag.102.gmail; Mon, 09 Feb 2015 23:51:27 -0800 (PST) X-Received: by 10.112.42.163 with SMTP id p3mr14202816lbl.114.1423554687105; Mon, 09 Feb 2015 23:51:27 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id d5si7538648lbc.136.2015.02.09.23.51.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 23:51:26 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id b6so12019175lbj.12 for ; Mon, 09 Feb 2015 23:51:26 -0800 (PST) X-Received: by 10.112.54.167 with SMTP id k7mr21319737lbp.72.1423554686694; Mon, 09 Feb 2015 23:51:26 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp448277lbj; Mon, 9 Feb 2015 23:51:25 -0800 (PST) X-Received: by 10.68.242.200 with SMTP id ws8mr35982867pbc.138.1423554678350; Mon, 09 Feb 2015 23:51:18 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx5si19205425pad.218.2015.02.09.23.51.17; Mon, 09 Feb 2015 23:51:18 -0800 (PST) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbbBJHuy (ORCPT + 4 others); Tue, 10 Feb 2015 02:50:54 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:37184 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752250AbbBJHuv (ORCPT ); Tue, 10 Feb 2015 02:50:51 -0500 Received: by pdbfl12 with SMTP id fl12so12624595pdb.4 for ; Mon, 09 Feb 2015 23:50:51 -0800 (PST) X-Received: by 10.68.135.37 with SMTP id pp5mr35668259pbb.105.1423554651086; Mon, 09 Feb 2015 23:50:51 -0800 (PST) Received: from linaro.solutionip.com ([210.177.145.245]) by mx.google.com with ESMTPSA id sf7sm14287307pbc.29.2015.02.09.23.50.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Feb 2015 23:50:49 -0800 (PST) From: Zhangfei Gao To: balbi@ti.com, john.youn@synopsys.com, Mian Yousaf Kaukab , "dan . zhao" , Wangbinghui , Peter Chen , Sergei Shtylyov Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Zhangfei Gao Subject: [PATCH v3 3/5] usb: dwc2: platform: add hi6220 support Date: Tue, 10 Feb 2015 15:50:25 +0800 Message-Id: <1423554627-694-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423554627-694-1-git-send-email-zhangfei.gao@linaro.org> References: <1423554627-694-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Zhangfei Gao --- drivers/usb/dwc2/platform.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index ae095f0..f7c67db 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -50,6 +50,35 @@ static const char dwc2_driver_name[] = "dwc2"; +static const struct dwc2_core_params params_hi6220 = { + .otg_cap = 2, /* No HNP/SRP capable */ + .otg_ver = 0, /* 1.3 */ + .dma_enable = 1, + .dma_desc_enable = 0, + .speed = 0, /* High Speed */ + .enable_dynamic_fifo = 1, + .en_multiple_tx_fifo = 1, + .host_rx_fifo_size = 512, + .host_nperio_tx_fifo_size = 512, + .host_perio_tx_fifo_size = 512, + .max_transfer_size = 65535, + .max_packet_count = 511, + .host_channels = 16, + .phy_type = 1, /* UTMI */ + .phy_utmi_width = 8, + .phy_ulpi_ddr = 0, /* Single */ + .phy_ulpi_ext_vbus = 0, + .i2c_enable = 0, + .ulpi_fs_ls = 0, + .host_support_fs_ls_low_power = 0, + .host_ls_low_power_phy_clk = 0, /* 48 MHz */ + .ts_dline = 0, + .reload_ctl = 0, + .ahbcfg = GAHBCFG_HBSTLEN_INCR16 << + GAHBCFG_HBSTLEN_SHIFT, + .uframe_sched = 0, +}; + static const struct dwc2_core_params params_bcm2835 = { .otg_cap = 0, /* HNP/SRP capable */ .otg_ver = 0, /* 1.3 */ @@ -129,6 +158,7 @@ static int dwc2_driver_remove(struct platform_device *dev) static const struct of_device_id dwc2_of_match_table[] = { { .compatible = "brcm,bcm2835-usb", .data = ¶ms_bcm2835 }, + { .compatible = "hisilicon,hi6220-usb", .data = ¶ms_hi6220 }, { .compatible = "rockchip,rk3066-usb", .data = ¶ms_rk3066 }, { .compatible = "snps,dwc2", .data = NULL }, { .compatible = "samsung,s3c6400-hsotg", .data = NULL},