From patchwork Mon May 7 07:33:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 909558 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="jKHHN1Gs"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40fZCS24Znz9ryk for ; Mon, 7 May 2018 17:35:16 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E1E24C22054; Mon, 7 May 2018 07:34:52 +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.6 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E42BCC22085; Mon, 7 May 2018 07:34:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CF1FFC22079; Mon, 7 May 2018 07:34:11 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by lists.denx.de (Postfix) with ESMTPS id EF9E7C22071 for ; Mon, 7 May 2018 07:34:07 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id e1-v6so8257939pga.6 for ; Mon, 07 May 2018 00:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xfUyO07DPs+pCNOG2PJNfN/2HsTr9wStM1oc6ZavtvI=; b=jKHHN1GsSQkooQ76bHG1R2SVmRb6BzMo2RQbc28oKndukCmihuZGY36LkFtOPzKPt6 dyqedk5bo+LeOkSTjIEKtxvKsT6I04w/GDqHl/EiNlxgd0xaf6O+40AeJvzfRTwpSxNe +yQ8a/KsCzni6RoDzDqvkqzsjxNLsv6Zt4WnQ= 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=xfUyO07DPs+pCNOG2PJNfN/2HsTr9wStM1oc6ZavtvI=; b=RqyRpFKV3IAxSyqOV30P7TUWfujjzhu1Yt4eYxjX4PkiSoJ3QLCwP1LoJV79GQISvG XyIm1SypXiwtMiuZrDXM+YDIyLv8W8GBJU9ONxFXPF9pGgUlflNEYTIWYE5mvCQC9XG5 K1AEwmXhkXIOV3W1DCbfta8TAldES2fZzILLXyH7Hsftw+fQGIZVKVbG1V9w6l6X2Fmt /3fHcUEwaw5+wlT7UQk5RJQfQzz8Jh6oakamSG5hxxAz7BoGulpx/mudhUhEKKB+K10q kz8t/z8J7EYLPKsLhemmrsKhont3J6nF9Rfc8fANyVhtwAiJcEzkigODEAnUUjlxR5uK lZGg== X-Gm-Message-State: ALQs6tAPJX/Th20Q4s5V30WJMuIurx3BvhgKKHri1+gOMJKGfM3JJWTR 7LrVDp7ffiug4OUf2MyaGhphxKL64aA= X-Google-Smtp-Source: AB8JxZpJYIbZpCrPM016aOjsFthitU6Tv5URZu4McoIy5oICqsz2NWtVAdt5bFwwWf5Q6U63nlMG0Q== X-Received: by 10.98.254.14 with SMTP id z14mr6475964pfh.73.1525678446361; Mon, 07 May 2018 00:34:06 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.172]) by smtp.gmail.com with ESMTPSA id 76sm59400891pfm.178.2018.05.07.00.34.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 May 2018 00:34:05 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Mon, 7 May 2018 13:03:18 +0530 Message-Id: <20180507073351.30582-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180507073351.30582-1-jagan@amarulasolutions.com> References: <20180507073351.30582-1-jagan@amarulasolutions.com> Cc: Maxime Ripard , Marek Vasut , linux-sunxi@googlegroups.com Subject: [U-Boot] [PATCH v7 02/35] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" - add proper macros for musb_config members - use bool 'true' for multipoint and dyn_fifo instead of numerical 1 Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index c77bde0354..3f3b89886a 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 = {