From patchwork Mon Jun 17 07:32:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1116815 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="KzvRlyRU"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45S3z32TSlz9s3l for ; Mon, 17 Jun 2019 18:19:27 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DC5B1C21F91; Mon, 17 Jun 2019 07:55:56 +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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 5C4BCC21FB1; Mon, 17 Jun 2019 07:43:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 68A11C21FA0; Mon, 17 Jun 2019 07:41:08 +0000 (UTC) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by lists.denx.de (Postfix) with ESMTPS id 0529EC21E57 for ; Mon, 17 Jun 2019 07:41:01 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id p1so3735521plo.2 for ; Mon, 17 Jun 2019 00:41:00 -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 :mime-version:content-transfer-encoding; bh=4ooZ4JipFDgtDLaGnlpclxsC67JdyjRNWw7MSSBZLXI=; b=KzvRlyRUlfs93wJMekTtVXCFIL7ZA43XIsnps79TyHKbowi56wrjkGcR0ydpyO7hMb T9bnIhLcw/tbn/3cDZU9mdjs3bQ+l9mWZ9AZGy0OYOTOrvvTIffXgzG4Al5GF5S8kyWx 9T8juvIw6ngQrxiB9eJ0PLkQFbLuzbZjpWcx4= 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=4ooZ4JipFDgtDLaGnlpclxsC67JdyjRNWw7MSSBZLXI=; b=jTkBUcLJaMX1rR+LgIOTXS2/cDV11J+ORYv+xMn6qAc2ye54aZlIX0Tbtv0zz9Jh/P WLUUHNdQCfeIPTmXDhHbjN0770UWJkvbShNXIaRXwmO3kPdHXsKXruyHcfWsg2hHUNPz OStilLiskDVyyucpb9nkGPleXc3DgBQc5s/Ed+BY5N0AW72osXkD7D20FyNl/UPK1qJg JVRQLe6iVZ2hldoNukVSrJkh3qYQq0zhMRuVlXJaMIyMZpizloDe5M6dxCpUh979ubif YHJp0wSCaBgjqSX7Xn66/4JgsqlN3W7JBOWTlbI2yt5EV1rf2jm6q52ceZedcdiER3n8 mX0Q== X-Gm-Message-State: APjAAAWoAAF74wNGD41LoIfbnZwPNB+u+4uCosgLn5HCRrCmndSzixzR hq0wedLdZPKluFYyTPaML1Ak0g== X-Google-Smtp-Source: APXvYqy0gtB+kluW30GPQW3BeRy7WP7LO4OTohB8yvUtEwJwU+w8Ym6mOrY+wsOdzflmiduhVCjpHw== X-Received: by 2002:a17:902:a516:: with SMTP id s22mr66643305plq.178.1560757259674; Mon, 17 Jun 2019 00:40:59 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.40.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:40:59 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Date: Mon, 17 Jun 2019 13:02:37 +0530 Message-Id: <20190617073252.27810-85-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190617073252.27810-1-jagan@amarulasolutions.com> References: <20190617073252.27810-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com, linux-amarula@amarulasolutions.com, Manivannan Sadhasivam Subject: [U-Boot] [PATCH v2 84/99] rockchip: rk3399: syscon: Add pmu support 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add pmu compatible with relevant U_BOOT_DRIVER for rk3399 via syscon rk3399 driver. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen --- 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