From patchwork Tue May 7 18:21:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 356 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 948AD3F066 for ; Tue, 7 May 2019 20:22:16 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id a8sf10769267pgq.22 for ; Tue, 07 May 2019 11:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557253335; cv=pass; d=google.com; s=arc-20160816; b=O/xpCNs8I3cSY1lLRFd0aJVzK4BlhMKm30b3MgCNWm+FQLy7FLZhbVNfmr4mcADWN5 Xeiy7YRWFRbVNOlbkyIxvgIXZHKwsaRGhVPi3Bk8eyz9L1lbW+ikiF509+Oo6Zi8XNq3 QVOshtYDI75DRHC1yjAQNBZaCCD6wlFTnnfwfG9LCC5yUgt70yg4AY6hL2UfqQny6TuJ UREYeJHEfA5FK8n3E3tteHINg4NjWNO+LW+6ph2Abke4xKZpwQI7nZxPj7s3YueBvBai ZHweEwgAu0CdQeCdCYxzwpEmj8L6cq2VL1MqPaEibgeCbrkUbXk4jjOwywP4tg0+7gRE TsnA== 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=8WhLfdP1/nUSTl6VajXR8RtliYZq14Pj03yGjbAR9Mk=; b=rdDa06S6O2UesPaXiE+W6spnHJn/QxedhMDSO6DDv25tLLpnZaXSvFgbH5mLFE+E9f bFbGGJlLMMkh4OXSl7Hau5bT+q7cnnQJaBR3hW9/teBHe/Y7D7F9+F4SUPnxDNTfiSil +Y24GNgFaFXetRRwLpdse9n0VpDL/UBoarxj7WwgjMe3Asv0x/PWNRYrJwGUQ/oa+7sv ztJSTSfIyJoTbdsoUKqQzRxo4yYd2jbJKqV0ANVoyX2HcKc9xGUM+soZ+L/gWZJlLgT9 5e5yROVCp6tVPujst7md0i3Gya9pSPxCXRtLek2QqSkXaW+tkHMB0ORLcd+vAl/BC/ao GdKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Owbehs7j; 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=8WhLfdP1/nUSTl6VajXR8RtliYZq14Pj03yGjbAR9Mk=; b=jOycJ6EUbzpVkqVXVKFfsx2VwtTI8Lt+MWEaelixP8EuYPzO7/aMUpSrgfiQvUY9nk zceYFvr5KoqyTbah1TjwlHIs8FtI7MYw/Akd+xTcrlyLQ+iBIUaxNx3wOIJWZrC6NoFX SnpfcGxAF42yP+hWZ1C+Lno1MYqAmyB51CO3Y= 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=8WhLfdP1/nUSTl6VajXR8RtliYZq14Pj03yGjbAR9Mk=; b=p0qvDJrBT5SNyC1aXM/bPIK+/ZyOQDvJ09DG8NqTU/qJozEzNCmiUQIR9/A/b6vPwZ 2bjhKC/yrL6ZpxysxE/CylzSs6b+3x2NmNUn47jXV8SoloTVmqnmELysxWUJlfLMDIgU W7/Lc0kBXdPqblEFdzD4S0N9yPbed+aBoayfXPiApq/MZIqSs4fJCwTpttkeS5e2fysw ECgtjYkvdWXNn/Lbe5QaWO1skB31Eu1y1cdRPYI9KS46JP+5hQoEIqAgJSBMbFQ3LuDQ BWET3TiTNzWDBDrepMY/f3UoUrNevxTvsz+y7JLCHeGsU83y3iWe4ZojBGv539WHfKj4 51AA== X-Gm-Message-State: APjAAAVX/mhzZv7nSqME6sVs7TFVwFa668trmtTyUhZfxQh6YrmC9Ac0 zCLi3EicYRKAQvh2GNt0Csp9wTj/ X-Google-Smtp-Source: APXvYqzhAeuxDcVINvzUrKxd1rhlP7+Q4Q7USVQaRlsei0QrLKQ1HmbV2VPrPOE4gLbD4lbiZSxIkw== X-Received: by 2002:a17:902:b602:: with SMTP id b2mr41980411pls.293.1557253335090; Tue, 07 May 2019 11:22:15 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:b611:: with SMTP id j17ls186824pff.13.gmail; Tue, 07 May 2019 11:22:14 -0700 (PDT) X-Received: by 2002:a63:8449:: with SMTP id k70mr40941788pgd.53.1557253334767; Tue, 07 May 2019 11:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557253334; cv=none; d=google.com; s=arc-20160816; b=bs6pCg7QhOF/S41vXgdo3S/uWGJjMgSn+pDdPm3bAkfpzdymhlrIerPQBDowmcKhRK BZW821QNuVHX+ICpbf6pfm5mLDbV0CCsOCILvS901tQXXm1J9Szj/U3w9O3VZkickmgb dTN8KKyYt1hqqBvDN+JqP6MezcJsFDD2vFJ1Na3ZhaLF9PN4mg8Dpltt461ZGYI0D9f0 SkKSl5CX8qtLP4Ry2ujaXLgbyMWaQ6pOA7z7KF/gHCED6rMRMwZqHpYkzrrLyovxakTU w1aEaK6U0N4okSiRxQNBmNBlEXnffOobKIz1ptHsfaNHaJ2Wb88ldMiAJA/6oxyjIOHz JrWw== 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=dWqy5cYXZHO1RCk8XLzza01Y9+Eq8ruW2tx9Pp/Tl7c=; b=cBX1cDg//frSh1zDFoZ8yK405yrndyxBYlB3IdWBjtXlBLZf/Ykaefz6lQGYPtsEHy /s5iWTxfMwyr/wwkXnlq5VEsxXYk3EOOnNIpVnUGhrlOhaUf6qxMkaRGZHkDHHAv0Kyn rrvrHmcbT9G6nZ71CKkDR7pZuGHmkaLxoLxNbgnPOYNBvFfPtRF12oWpUoiy6ZelJtqr 3DhOFF9dKVsxP/VGAgFZFEF04Uu7S2DqMkz/zf0slU6PJ8U4zdWgLjKIfqjZkbyt1fRD bUmNET7q823yfnrbPTY/48rdTF7Py4auRjj1qbAxBYssyQ1SK8xwlk4CxIsUCB9W56h6 fIuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Owbehs7j; 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 o77sor16286044pfa.60.2019.05.07.11.22.14 for (Google Transport Security); Tue, 07 May 2019 11:22:14 -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:a63:2c4a:: with SMTP id s71mr40634996pgs.373.1557253334499; Tue, 07 May 2019 11:22:14 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id d15sm18491568pfr.179.2019.05.07.11.22.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 11:22:13 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v7 1/4] dts: Makefile: Build rockchip dtbs based on SoC types Date: Tue, 7 May 2019 23:51:49 +0530 Message-Id: <20190507182152.4254-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507182152.4254-1-jagan@amarulasolutions.com> References: <20190507182152.4254-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=Owbehs7j; 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: , - Sometimes u-boot specific dtsi files are included automatically which would build for entire rockchip SoC, even-though the respective dtsi should used it for specific family of rockchip SoC. - Sometimes u-boot specific dts nodes or properties can use config macros from respective rockchip family include/configs files, example CONFIG_SPL_PAD_TO. So, it's better to compile the dtbs based on the respective rockchip family types rather than rockchip itself to avoid compilation issues. This patch organize the existing dtb's based on the rockchip family types. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/Makefile | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 8e082f2840..35cbbfabd0 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -65,16 +65,23 @@ dtb-$(CONFIG_KIRKWOOD) += \ dtb-$(CONFIG_ARCH_OWL) += \ bubblegum_96.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += \ - rk3036-sdk.dtb \ - rk3128-evb.dtb \ - rk3188-radxarock.dtb \ - rk3229-evb.dtb \ +dtb-$(CONFIG_ROCKCHIP_RK3036) += \ + rk3036-sdk.dtb + +dtb-$(CONFIG_ROCKCHIP_RK3128) += \ + rk3128-evb.dtb + +dtb-$(CONFIG_ROCKCHIP_RK3188) += \ + rk3188-radxarock.dtb + +dtb-$(CONFIG_ROCKCHIP_RK322X) += \ + rk3229-evb.dtb + +dtb-$(CONFIG_ROCKCHIP_RK3288) += \ rk3288-evb.dtb \ rk3288-fennec.dtb \ rk3288-firefly.dtb \ rk3288-miqi.dtb \ - rk3399-orangepi.dtb \ rk3288-phycore-rdk.dtb \ rk3288-popmetal.dtb \ rk3288-rock2-square.dtb \ @@ -83,22 +90,32 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3288-veyron-mickey.dtb \ rk3288-veyron-minnie.dtb \ rk3288-veyron-speedy.dtb \ - rk3288-vyasa.dtb \ - rk3328-evb.dtb \ - rk3399-ficus.dtb \ + rk3288-vyasa.dtb + +dtb-$(CONFIG_ROCKCHIP_RK3328) += \ + rk3328-evb.dtb + +dtb-$(CONFIG_ROCKCHIP_RK3368) += \ rk3368-lion.dtb \ rk3368-sheep.dtb \ rk3368-geekbox.dtb \ rk3368-px5-evb.dtb \ + +dtb-$(CONFIG_ROCKCHIP_RK3399) += \ rk3399-evb.dtb \ + rk3399-ficus.dtb \ rk3399-firefly.dtb \ rk3399-gru-bob.dtb \ + rk3399-orangepi.dtb \ rk3399-puma-ddr1333.dtb \ rk3399-puma-ddr1600.dtb \ rk3399-puma-ddr1866.dtb \ rk3399-rock960.dtb \ + +dtb-$(CONFIG_ROCKCHIP_RV1108) += \ rv1108-elgin-r1.dtb \ rv1108-evb.dtb + dtb-$(CONFIG_ARCH_MESON) += \ meson-gxbb-nanopi-k2.dtb \ meson-gxbb-odroidc2.dtb \