diff mbox

[U-Boot,32/60] ARM: tegra: add SoC-specific include directory

Message ID 1461099580-3866-33-git-send-email-swarren@wwwdotorg.org
State Rejected
Delegated to: Tom Warren
Headers show

Commit Message

Stephen Warren April 19, 2016, 8:59 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

Add arch/arm/mach-tegra/tegraNNN/include. We'll use this to house headers
that must vary between SoCs (e.g. clock lists, register layouts that
aren't static across chip versions, etc.) in a <soc/> name-space. This
will allow code in mach-tegra/ to access those register definitions without
polluting the more public <asm/> or <mach/> namespaces or the directories
they map to.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/mach-tegra/config.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 arch/arm/mach-tegra/config.mk

Comments

Simon Glass April 22, 2016, 6:32 p.m. UTC | #1
On 19 April 2016 at 14:59, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Add arch/arm/mach-tegra/tegraNNN/include. We'll use this to house headers
> that must vary between SoCs (e.g. clock lists, register layouts that
> aren't static across chip versions, etc.) in a <soc/> name-space. This
> will allow code in mach-tegra/ to access those register definitions without
> polluting the more public <asm/> or <mach/> namespaces or the directories
> they map to.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  arch/arm/mach-tegra/config.mk | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>  create mode 100644 arch/arm/mach-tegra/config.mk

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/arch/arm/mach-tegra/config.mk b/arch/arm/mach-tegra/config.mk
new file mode 100644
index 000000000000..cc16451987e9
--- /dev/null
+++ b/arch/arm/mach-tegra/config.mk
@@ -0,0 +1,13 @@ 
+# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0
+
+socdirs-$(CONFIG_TEGRA20)	+= tegra20
+socdirs-$(CONFIG_TEGRA30)	+= tegra30
+socdirs-$(CONFIG_TEGRA114)	+= tegra114
+socdirs-$(CONFIG_TEGRA124)	+= tegra124
+socdirs-$(CONFIG_TEGRA210)	+= tegra210
+
+#$(warning PLATFORM_CPPFLAGS pre  $(PLATFORM_CPPFLAGS))
+PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/arch/arm/mach-tegra/%/include,$(socdirs-y))
+#$(warning PLATFORM_CPPFLAGS post $(PLATFORM_CPPFLAGS))