From patchwork Mon Nov 9 08:02:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Huang X-Patchwork-Id: 541645 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 15CF41402D4 for ; Mon, 9 Nov 2015 19:10:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98D094BE4F; Mon, 9 Nov 2015 09:10:41 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjyrtryZz4cR; Mon, 9 Nov 2015 09:10:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1DF744BE41; Mon, 9 Nov 2015 09:10:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 767634BE41 for ; Mon, 9 Nov 2015 09:10:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vcr_Mb3Smv36 for ; Mon, 9 Nov 2015 09:10:38 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wi0-f195.google.com (mail-wi0-f195.google.com [209.85.212.195]) by theia.denx.de (Postfix) with ESMTPS id 439594BE1D for ; Mon, 9 Nov 2015 09:10:34 +0100 (CET) Received: by wiclo12 with SMTP id lo12so11077797wic.2 for ; Mon, 09 Nov 2015 00:10:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nZNLo3qw4driGXx+dhNv4ti1h9enP2rxf24NVLLDNw4=; b=O+cNabxZl/uQe4Pt1HK8sbLmbESKKt+KhLoHWSQ4OGiJ0Wls66XpZ1ncDBRCAHWYQF P828egsnF8dQKyizxoaAEfIQ7XttefG1fxs0JFtOQXbCKMn/VjhxCKETQTxBGYVwWdfj rNmOgV/OutwWOfzJpeNV5/AyXdWHFz96AN9kBaYz917+3TQmd6UTZXoDHAiOXpuvVDeH 8PZ7SCrv+StJS2b7irj1W4KKFD2mZ3T+bJqFUcJ/i8mgQwF8949xRMsK8zaqhoK6palJ z88JQXwDvkFV8xYDJuLi11eeXYsl7cb/vJCZKro0D9iJ9mv5FLJFBYrP/b27VOIFSU7D YFyQ== X-Received: by 10.194.184.207 with SMTP id ew15mr26861854wjc.99.1447056634204; Mon, 09 Nov 2015 00:10:34 -0800 (PST) Received: from localhost.localdomain ([191.101.59.138]) by smtp.gmail.com with ESMTPSA id e79sm12835439wmd.16.2015.11.09.00.10.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Nov 2015 00:10:33 -0800 (PST) From: Lin Huang To: sjg@chromium.org Date: Mon, 9 Nov 2015 16:02:38 +0800 Message-Id: <1447056167-16138-12-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447056167-16138-1-git-send-email-hl@rock-chips.com> References: <1447056167-16138-1-git-send-email-hl@rock-chips.com> Cc: kmixter@chromium.org, u-boot@lists.denx.de, cwz@rock-chips.com, cf@rock-chips.com, cjf@rock-chips.com, benchan@chromium.org, zyf@rock-chips.com Subject: [U-Boot] [PATCH v4 11/20] rockchip: rk3036: Add a simple syscon driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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 a driver that provides access to system controllers Signed-off-by: Lin Huang Acked-by: Simon Glass --- Changes in v1: - clean copyright announcement Changes in v2: - only build syscon_rk3036.c on NON-SPL stage Changes in v3: None Changes in v4: None arch/arm/mach-rockchip/rk3036/Makefile | 2 +- arch/arm/mach-rockchip/rk3036/syscon_rk3036.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-rockchip/rk3036/syscon_rk3036.c diff --git a/arch/arm/mach-rockchip/rk3036/Makefile b/arch/arm/mach-rockchip/rk3036/Makefile index a483347..5d14b95 100644 --- a/arch/arm/mach-rockchip/rk3036/Makefile +++ b/arch/arm/mach-rockchip/rk3036/Makefile @@ -6,5 +6,5 @@ ifndef CONFIG_SPL_BUILD obj-y += reset_rk3036.o +obj-y += syscon_rk3036.o endif - diff --git a/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c b/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c new file mode 100644 index 0000000..965afde --- /dev/null +++ b/arch/arm/mach-rockchip/rk3036/syscon_rk3036.c @@ -0,0 +1,21 @@ +/* + * (C) Copyright 2015 Rockchip Electronics Co., Ltd + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include +#include + +static const struct udevice_id rk3036_syscon_ids[] = { + { .compatible = "rockchip,rk3036-grf", .data = ROCKCHIP_SYSCON_GRF }, + { } +}; + +U_BOOT_DRIVER(syscon_rk3036) = { + .name = "rk3036_syscon", + .id = UCLASS_SYSCON, + .of_match = rk3036_syscon_ids, +};