From patchwork Tue Jul 16 11:57:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 794 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C37C93F08F for ; Tue, 16 Jul 2019 14:00:38 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id x19sf12509756pgx.1 for ; Tue, 16 Jul 2019 05:00:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563278437; cv=pass; d=google.com; s=arc-20160816; b=qgUdGK2TA+ePKVbkSgvKODG5h7sMW9by8A9j4CAnumpKq/CABVU/xsc75SmZMIMdKt gAkggXmPJ32yQni208v6OveSoc0IXAvFqmTixzTlYib1E3Pf2NzEtBr8OG//VoFL6MM0 I8idgR0iYVXye44SHFdKkeMh89MTMfZDl+ZP9VzwF899Sy2wmxkc03M527jifFSKNMY6 9kLRnxnZiVwdIvPVtlG6r1T7GSKdZQNF0gYZUkJdFmyGC804YByFLGaXhNIcbQQ98hrW OnxghxLuxkE3inywZ7t4IiYdDX+gsb72yu+mRW09BPaAQ1N1/8IkV2uBlqczDnIGc3zI /JWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SfBANrTcCyRnOvHlJQRGtJix1H4LxgkT4A2gphF9iZc=; b=QJIAUbLBPL+ILHcZ5/+pAJ5SZHU4lF6AsSClom9CVGHJQiU17YzJU/BfwDNFCi9Tpd nAI9aeObkBOxhUr+7AT8tSjTW5U6bVTrbyBuQGJaibRkochN0lHoIraJzoKSwHRRkmQM HozCvJ50KM70tTGF//tUa+yDehcuWwDKw1lS97Xv5/LomU4Xoo+OV6yhYZJohupMJQhi 9B5h3+MzHXI/556Lv+r1jXzQD1rAe79OIiXM1dXO4Si+jc3BZJcfOW7O/EsFDxXKwPMs nGVxpdlkuNJ+6K1xmV/eaVLfmROcR8KbMdPNQV2HTpAo7CxszhXoqA28I8OprxbBSBPH /6RQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YLmq6cnq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=SfBANrTcCyRnOvHlJQRGtJix1H4LxgkT4A2gphF9iZc=; b=QUqoJ2MbXh6QpWmKj5KhLq49yPc0yTmasoCoLAaG7ZVnLOnW7aMjPwLCRIzwP7ZXKM eb1aeXBtWWrvLNu+xBgGVDlACw0GKn8mufvuDDN9F++hD+MVGSK1Uh6VB/lQnn/2lsd+ YEz9t+NDCJmpisEIzu/1rlGHHfYfd68hxwTwc= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=SfBANrTcCyRnOvHlJQRGtJix1H4LxgkT4A2gphF9iZc=; b=IL84Rs89ZuUpB4H8qtrXp1kGE1L9yGRX0kNus7/gw8ftoyaLCa4YoyxLNcyVUfyZf4 +gP3C80blqfCcYjpTvJftuEJLwd6bS5uR61jgFfUEOteLsbRUs8QvDhtbtO7N/802zB0 p1LtE3bMmgeCgrfhLS3Cm6yt92sh+l7f2/a7ZRgpAibmjs6+aIZm/xpgE/cE9IATa3I0 Xvoomrj81Wh0RK5MGHdT87HIfp51XUTkg1yfHJQ9cXnGVfPJKpNusmWzfH+7S2s8s+0I Cnw0huzwZREqeZ/VEjmqQqT0mmPakmJbzLEmxEUxodqrWZg7dLA1YGZBzGw1hiZMRo8h vhpg== X-Gm-Message-State: APjAAAXFVqxg0zGjN4tgm7Pgj03SkS+lfR5CFKmP+QhZ6nvEvaYMwoW1 5RVXqs2ko4Umnrb6UZEvC6Ie1Pa7 X-Google-Smtp-Source: APXvYqz4Cu1xYfd7JiRrTggVfKK7BBVV2P9md9PeoJ+sZ6fOLPn0TKUKMNVq5XgUvHZi13rpF7i+gA== X-Received: by 2002:a17:902:744c:: with SMTP id e12mr34580461plt.287.1563278437635; Tue, 16 Jul 2019 05:00:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:614e:: with SMTP id o14ls3435970pgv.7.gmail; Tue, 16 Jul 2019 05:00:37 -0700 (PDT) X-Received: by 2002:a63:e1e:: with SMTP id d30mr33037258pgl.100.1563278437172; Tue, 16 Jul 2019 05:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563278437; cv=none; d=google.com; s=arc-20160816; b=qx0DOrBwY7pVfcFO+4s4xgVMlL2d89vq4OJGcE2Adk11+qFfcviNZrdUkurAPDUrXo xtWvsA9qYncbUMo9znNIWrBjybggnGl4Eu1DJPkCFa3oHelL8C00GDt3SvDyfrGHYalW pUmkY+fKU8t/logx+9uXKlsUe97iCjgpFd4yaoUgbzOWbFpRMfjEtukcHvJlimk2Psjf zIehMO9zXrpIAEt1tKLMhfL7fi+85Xs4BfEpec0A7tyw7S053kznDHv8daab8GpaDVnt mvcVAUvJSnA5VSalmKrEZBEjsSECHp6PaCrrQsafgXrJJ0mLnCUhkn02jk5BaPg/MtsJ hgXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=4ooZ4JipFDgtDLaGnlpclxsC67JdyjRNWw7MSSBZLXI=; b=fhnLj0GX6jWs/ERYtPx/Uxq9xpZ35MOxjOyCb0b0r6T9sPTDwluoksLax1hgC7aFC7 SUVmwBg3ogoOeix6BQY28AtQ++0ADk9xjZFc/ImsUspJUmZ5suY9Lk0CBccoRP8+chI2 jUGLxDMk188yWLpBiclg3SerEGImqFGZYQ9c5UU1KEaM4Je9sqIhUgblpq1QJXmQVHeM jkcj3S9pOMRkaQbK+xTDauN/mCN8mv1GzN3RTjwMZzZnmInCQYrKlwUVeJtUdR27mCho QmctOOUN0yjAMmbNP13UXWXNz2zgg74+o9Tnob+/Jgf2epYOjgA8NwXTqw9MMkWnGvLJ hyXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YLmq6cnq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l98sor24748665pje.13.2019.07.16.05.00.37 for (Google Transport Security); Tue, 16 Jul 2019 05:00:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:898e:: with SMTP id v14mr35652467pjn.119.1563278436875; Tue, 16 Jul 2019 05:00:36 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id z24sm36269566pfr.51.2019.07.16.05.00.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 05:00:36 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: Manivannan Sadhasivam , gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 45/57] rockchip: rk3399: syscon: Add pmu support Date: Tue, 16 Jul 2019 17:27:33 +0530 Message-Id: <20190716115745.12585-46-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190716115745.12585-1-jagan@amarulasolutions.com> References: <20190716115745.12585-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YLmq6cnq; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pmu compatible with relevant U_BOOT_DRIVER for rk3399 via syscon rk3399 driver. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c index a8bb5b11e5..259ca44d68 100644 --- a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c @@ -13,6 +13,7 @@ static const struct udevice_id rk3399_syscon_ids[] = { { .compatible = "rockchip,rk3399-pmugrf", .data = ROCKCHIP_SYSCON_PMUGRF }, { .compatible = "rockchip,rk3399-pmusgrf", .data = ROCKCHIP_SYSCON_PMUSGRF }, { .compatible = "rockchip,rk3399-cic", .data = ROCKCHIP_SYSCON_CIC }, + { .compatible = "rockchip,rk3399-pmu", .data = ROCKCHIP_SYSCON_PMU }, { } }; @@ -58,4 +59,11 @@ U_BOOT_DRIVER(rockchip_rk3399_cic) = { .of_match = rk3399_syscon_ids + 3, .bind = rk3399_syscon_bind_of_platdata, }; + +U_BOOT_DRIVER(rockchip_rk3399_pmu) = { + .name = "rockchip_rk3399_pmu", + .id = UCLASS_SYSCON, + .of_match = rk3399_syscon_ids + 4, + .bind = rk3399_syscon_bind_of_platdata, +}; #endif