Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2818507ybh; Mon, 9 Mar 2020 13:44:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt5LwPfsc3Xys7SB+l/xmLX+7B8K4ZGccO6+mjhW686WwqNsSDaLc2GpFL/EiZLHu5gbuxh X-Received: by 2002:a9d:5551:: with SMTP id h17mr14176771oti.360.1583786698043; Mon, 09 Mar 2020 13:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583786698; cv=none; d=google.com; s=arc-20160816; b=DgUR59k2iFXbigLAE02G10lGPTekHD+nzvWU7RjZA+qpz8cX24jK2DgfHTWpZPSG+6 c3XVEyRUSUhMqXQlKmYeSVwy3a2mxma39faVGaVDxbaaM/GYSoF12EP6/C97t0DA5ar+ lhcWRXf32qW3PvncJ8xYJ+HQtaTakxksup3N69gt8dQwNTgpV1bcRpW6mVM7duIp1Z4C OvrtW6g8IXhovFgSuTlElhpNbGVUf8sijocI8cKUYRuMLNpLm4NCOMwqR3iz3IDvxtmc YYcAvtdVpM0gQgpDwXu486rGnaes+P3A6mmhe2BS22uEKmdw3Hzomfl+XdfeAjBhzg4L 6ocA== 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=l9lsR+q+S8UagXzEs1KzCN+08G/C1ceQ5b11VLXn751h/L5Pd4vn04Ucw9cQ8k4/4K Ti0ULQYp26oPwBqzussVyN8KOa4GYkgUGmIiIGPyHxrFb8URM6LitdjNy9m06K4YQ+wB /3LsYBeZqjEVQepuCweuxwYZagj0m1Le1EkOM/MHYzt/aLoLzhs8EM3MirB/CEGuhqaj +wHKU6kIxo3x5sraGZvpi9+h333A6uX0q1r9i9XR6f514xpo4XnLyn8D8HVp/4t7yKzH PKVQWFU2Y8xCFkT9o6SMggeX9ZpuAVNOOXLVrZGZUvgXs4K/oATwU1AdhL3CWLw5trj2 lGfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eW2RpvuY; 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 c203si1072154oib.273.2020.03.09.13.44.46; Mon, 09 Mar 2020 13:44:58 -0700 (PDT) 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=eW2RpvuY; 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 S1726905AbgCIUoC (ORCPT + 99 others); Mon, 9 Mar 2020 16:44:02 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:36418 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgCIUoB (ORCPT ); Mon, 9 Mar 2020 16:44:01 -0400 Received: by mail-yw1-f68.google.com with SMTP id j71so11580076ywb.3; Mon, 09 Mar 2020 13:43:59 -0700 (PDT) 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=eW2RpvuYPPkcwhjG9Vmv6IcKW5Qnqmjl08/IRhSljpMizzQhJcIV+BAL6xf5VOMNtd mfFawM7Uec3t7mNYUnwllnhTM8yxo2o0twGxeBwPwIat4xz2QHwdCxEXPVqkLLM3xwOs CVvtuLZ3mL/zUmhmHXxbVtd/1+aYOST/iP7uCvw704CKaa2HSms7ZxZbAZXOrdVVnmZa AB3MxMx7PhJeewGgaZYNA00v9qF0xEOcuVNKoTznjxlpSVE/pkL4zDbGSgccawpC4fZl nVBU5InX77ry1rNKET7p1jzcnpaz71BoiURh1SFYpDwjKHqjdDRdgxFElX+DNrms/gla E20Q== 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=RoSSfpEpR78EoTMHe32UfAWU0QFLLlq8o5bLy6PSTYEGCxJ4lbx7qwvUeuPcmFTyqo zW91U+Ww8eEgZocxw4UjFXZfpMm6z1UZX+LrjRNANsnQ2zRI//aFFnPXwe/HaUGAe93d dbg6kJ1QhA6Q+7GAYYc6r2eCmbYpVGzALA1zAPg1MdRTqVWDpBt8i9XMRC6mxQUQBKwi H9c56eZBpnWxF8qBw7y+FBwoDr4ZgeW/ZfJ7ysn2Xj5BGF4ewoJHZYkVh6iMJuqgEyLK 2Y9mjrePIqH/JeQYwNvPDBJxreyMOomq2Z97mrNFe9Mc6Fx2t5QZD9QG6Uqsu4S73/dP DoYA== X-Gm-Message-State: ANhLgQ0VXi3rIoD7GFNTRzLi0t+pjHV++B73noDnoPLarQA3E83Vwhjc lVuod9DaDxLK+AxPviadsJ4= X-Received: by 2002:a0d:ffc4:: with SMTP id p187mr18238754ywf.4.1583786637913; Mon, 09 Mar 2020 13:43:57 -0700 (PDT) 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 s63sm17998768ywd.82.2020.03.09.13.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 13:43:57 -0700 (PDT) From: George Hilliard To: Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: George Hilliard , Icenowy Zheng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 3/5] musb: sunxi: add support for the suniv MUSB controller Date: Mon, 9 Mar 2020 15:43:24 -0500 Message-Id: <20200309204326.27403-4-thirtythreeforty@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200309204326.27403-1-thirtythreeforty@gmail.com> References: <20200309204326.27403-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