Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1401887ybf; Thu, 27 Feb 2020 10:15:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxGKZl1CH9BAwmvvXdOeEbDx0motM2LOG5Lz3NmaxAcfBYXuAsZCZx56x7fMQmSfj61NCej X-Received: by 2002:a9d:6c55:: with SMTP id g21mr158637otq.264.1582827322799; Thu, 27 Feb 2020 10:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582827322; cv=none; d=google.com; s=arc-20160816; b=eDSUTrYmaXCeqj3TgzSSEf+nkIDGXzWl5nEeukubciTyIKdMYT61l6iDafl5d78MoO RMsiAKFfX3shb2T72Ml81uqAyVw01qeGMFMUHgd98h6cpPC3FF6k3D3B+i5b8jAfr0eT kjvHVkqTRgJWf9tCWSfWYwZB3kczcPeM/XQeI5L4tz9SvlrI/nM7XDP97NBDb4qTS+RO ft/xV1yDmgnbXTztgczr3hk1umG1Ir/GZAtg9iqTq2r+segCH2qNOt8a6soZOV5q1c9/ brk+ts5RrQHD+Dzxd5d0Yg7YokL02VJA6xRc2m211CqwswZsZd5lkjigUQ7k9iKGKGiZ 3EkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KKHUWz0Uha+CDG15YVmtHwxSiy2XT+hJxNbxwEkR868=; b=KdiAag7quBTXyVTMNzOWW97IDb94K+V0ybPVJ89vY0nT+9B4SjJ5mZ2/H8d5DYKVGX UDTZoUMGx3rDldx5J8UeCHq0k6FNpvHqLX5A7fd/kRcMcFHDlLCL/kTZUEvBeVA6xUcR F9I8pGsW02i39nDTG1H+YiEKSqu6bG5t3vIIF8kjzLlfNS8kK3v2czE+giklvfjcCRwm xAFccADoyif+xmBTb7VFLhUM8kNp7E8jq7H/lj69DAKPsus/eHH01a94iEHsPZyEUToI YDixRMai2jMoxb5s/HshC+8ywWhDc+n3t2Dle1Le85JQgjJoZsWoSZ5zbCqVDwQ4V3ui 7BPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uF9Ne9LO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si279799oic.34.2020.02.27.10.15.09; Thu, 27 Feb 2020 10:15:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uF9Ne9LO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730545AbgB0SPA (ORCPT + 99 others); Thu, 27 Feb 2020 13:15:00 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:34007 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730327AbgB0SO7 (ORCPT ); Thu, 27 Feb 2020 13:14:59 -0500 Received: by mail-ot1-f67.google.com with SMTP id j16so89981otl.1 for ; Thu, 27 Feb 2020 10:14:58 -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 :mime-version:content-transfer-encoding; bh=KKHUWz0Uha+CDG15YVmtHwxSiy2XT+hJxNbxwEkR868=; b=uF9Ne9LOzTJajpv69uldX3AlwwCsOG21dTH6WDxjIygZq8IYdQaVrWnpoRAHUbl9pc 2Wi8RK01BtA2wDp7AEz+f6DLqMim+kBabrziprkHt9My6ifj58ykYGyRyHk0f9es3E21 g0u14rY2qTDrLve2najzfjzWsQnswHdAi8/0gGRta6WRcXc5z61ckYfEbRHgDfNA+rau 5KZTIcCWvEgU0UV5SnrOTKQaCVJ55kx24ykG2YMVnJq/iCN8OfLz1tN4luydERR7G6vT wJ/b89Ko0vmX8rUk4Hdg6pvjREuHMOkTE94hzyi/KIvGBF2ITAjvStgSoZnt+yD130XP QgWA== 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:mime-version:content-transfer-encoding; bh=KKHUWz0Uha+CDG15YVmtHwxSiy2XT+hJxNbxwEkR868=; b=twm+wVGlpQdLneODF3cFC8+/xwr6NrCRu65db1E1Ad+EUzmstLY5wbba/ExUUVO7nd oSbyp6adhgRK29pVo1IZlPNArOhtjnZM5PL3GtUa7A84trMzmmlXhJ75CA5pYSVxtXMy Rh5HDe31ukNasvljrtuQ6CqRyvUiKrGY6WtqnKlx9jcViV8EtyGXb3hf1YyqRQ0NllHx MnMxFGqCo5ok/heRvkKEMMxlbg7hrACD4C2qI60/ncVN5yENnoWqCbWhua0MIt7kKk+U TNQo6gthF53sKn95Zgho70LSOgukD6XSOc2GY16GZxF+Bl+m9+DfdUM9wxkH5C41Fg1W YOmA== X-Gm-Message-State: APjAAAXzF8UBdW2bWZFXWY7FYN+Xq1cRIVdN89wmVz1o0QYBP+Q2XhaM YOU6+byaP0wOh3RsJdwsom8= X-Received: by 2002:a9d:7f98:: with SMTP id t24mr156313otp.338.1582827298541; Thu, 27 Feb 2020 10:14:58 -0800 (PST) Received: from farregard-ubuntu.kopismobile.org (c-73-177-17-21.hsd1.ms.comcast.net. [73.177.17.21]) by smtp.gmail.com with ESMTPSA id t203sm2205534oig.39.2020.02.27.10.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 10:14:58 -0800 (PST) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] musb: sunxi: add support for the suniv MUSB controller Date: Thu, 27 Feb 2020 12:14:50 -0600 Message-Id: <20200227181452.31558-4-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200227181452.31558-1-thirtythreeforty@gmail.com> References: <20200227181452.31558-1-thirtythreeforty@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The suniv SoC has a MUSB controller like the one in A33, but with a SRAM region to be claimed. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: George Hilliard --- drivers/usb/musb/sunxi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index f3f76f2ac63f..76806b781844 100644 --- a/drivers/usb/musb/sunxi.c +++ b/drivers/usb/musb/sunxi.c @@ -714,14 +714,17 @@ static int sunxi_musb_probe(struct platform_device *pdev) INIT_WORK(&glue->work, sunxi_musb_work); glue->host_nb.notifier_call = sunxi_musb_host_notifier; - if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb")) + if (of_device_is_compatible(np, "allwinner,sun4i-a10-musb") || + of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) { set_bit(SUNXI_MUSB_FL_HAS_SRAM, &glue->flags); + } if (of_device_is_compatible(np, "allwinner,sun6i-a31-musb")) set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags); if (of_device_is_compatible(np, "allwinner,sun8i-a33-musb") || - of_device_is_compatible(np, "allwinner,sun8i-h3-musb")) { + of_device_is_compatible(np, "allwinner,sun8i-h3-musb") || + of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) { set_bit(SUNXI_MUSB_FL_HAS_RESET, &glue->flags); set_bit(SUNXI_MUSB_FL_NO_CONFIGDATA, &glue->flags); } @@ -814,6 +817,7 @@ static int sunxi_musb_remove(struct platform_device *pdev) } static const struct of_device_id sunxi_musb_match[] = { + { .compatible = "allwinner,suniv-f1c100s-musb", }, { .compatible = "allwinner,sun4i-a10-musb", }, { .compatible = "allwinner,sun6i-a31-musb", }, { .compatible = "allwinner,sun8i-a33-musb", }, -- 2.25.0