Message ID | 1517927164-18197-3-git-send-email-jagan@amarulasolutions.com |
---|---|
State | Deferred |
Delegated to: | Marek Vasut |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RnBtYVMg"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zbRnH69NLz9s82 for <incoming@patchwork.ozlabs.org>; Wed, 7 Feb 2018 01:34:59 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 54707C21E42; Tue, 6 Feb 2018 14:32:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2587DC21E40; Tue, 6 Feb 2018 14:31:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 42A17C21E3A; Tue, 6 Feb 2018 14:31:29 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id 63B8CC21E28 for <u-boot@lists.denx.de>; Tue, 6 Feb 2018 14:31:25 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id b62so667412pfk.10 for <u-boot@lists.denx.de>; Tue, 06 Feb 2018 06:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LRYEgeEOD3qz8WJIaKiXAFHrKk9cFTuVCeG8/hyd1TA=; b=RnBtYVMgSpnNfQeZOnHejmpdtxF5xMLKTANdKROyKzJUMPlr6SOokid7EhA+A9TRHj 6Qe9fL+tXYwOjbjFu0mwdBknUwsE4hJDJxRg1Rcw86hdQoK4bTIqVnJha8gfbXzD8xwC nx4Yjvwy/cQqUyOYVq2GIrB2oN0mcaKosbr/IC2G4ahfhHKAfneidqrdsuTI3+Wv35QE usMCyoWDdocPKoKQW6kBiy+j+cBO9zTjyZknRALtbQCoqhQdJyIvDFYA6yLNo33aOeg+ 5ZYMpEtjxbElXfTG5QWzOgDdDoepB19FLSTZKqsNje+JmOeZc0MEahkRW7b8OJOP61IQ 4W3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LRYEgeEOD3qz8WJIaKiXAFHrKk9cFTuVCeG8/hyd1TA=; b=GggTlVrWhKr4viUiB3IbKKXzrapAdW8b30rsjL4QmJu9HDL54drtH9hhuiK4/IvDzX 7YM2kRAGa2LUks1ASnz15Uc7cFLhV0z1r6drP96Vs0/XUjkdqUc2R/tMBqq3z1OCB6xc ZiiIRPD46W62gC4lscsWxkqGKHyOMvlhZPg3CD0oQWFRPT4QIu7H/XL9gFQ399Fdu+A9 ui99jnGp5EWmLlQeiovsJaB7MwK0/TiYowa09FwCd4sroe0o/0VVgRt/W1JHXj9pLrzp 7t6pfkC3hXLD3mZ0i+I7/rCjMhvTorYNJIDoonnu3XebC2ia2ThHpw2s7tGDLV5OjTyh WvGA== X-Gm-Message-State: APf1xPCjzwAxOCOrlqcH+dcvKCSurigT2AcWrhe3V/BDXlJhtWkO8Zix LOIJLdlpFGX1o9UuzdG5BB8Vngee X-Google-Smtp-Source: AH8x2242xjnP0TwezSXuU6vYIPvrDpYIz6gRq8QkwebUOGSwivZeVRcoEd9pDl+pkCWOnHWl+LTGZQ== X-Received: by 10.98.194.201 with SMTP id w70mr2278093pfk.188.1517927483715; Tue, 06 Feb 2018 06:31:23 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id h2sm17457613pgp.65.2018.02.06.06.31.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 06:31:23 -0800 (PST) From: Jagan Teki <jagannadh.teki@gmail.com> X-Google-Original-From: Jagan Teki <jagan@amarulasolutions.com> To: u-boot@lists.denx.de Date: Tue, 6 Feb 2018 19:55:32 +0530 Message-Id: <1517927164-18197-3-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> References: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> Cc: Marek Vasut <marex@denx.de>, Maxime Ripard <maxime.ripard@free-electrons.com> Subject: [U-Boot] [PATCH v4 02/34] musb: sunxi: Add proper macros instead of numericals X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
phy: sunxi: Add Allwinner sun4i USB PHY
|
expand
|
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index c77bde0..3f3b898 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -297,11 +297,15 @@ static const struct musb_platform_ops sunxi_musb_ops = { .disable = sunxi_musb_disable, }; +/* Allwinner OTG supports up to 5 endpoints */ +#define SUNXI_MUSB_MAX_EP_NUM 6 +#define SUNXI_MUSB_RAM_BITS 11 + static struct musb_hdrc_config musb_config = { - .multipoint = 1, - .dyn_fifo = 1, - .num_eps = 6, - .ram_bits = 11, + .multipoint = true, + .dyn_fifo = true, + .num_eps = SUNXI_MUSB_MAX_EP_NUM, + .ram_bits = SUNXI_MUSB_RAM_BITS, }; static struct musb_hdrc_platform_data musb_plat = {
- add proper macros for musb_config members - use bool 'true' for multipoint and dyn_fifo instead of numerical 1 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/usb/musb-new/sunxi.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)