From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 24 Sep 2012 13:57:59 -0600 Subject: [U-Boot] [PATCH 1/2] Tegra20: Move some code files to common directories for upcoming Tegra30 patches. In-Reply-To: References: <1348260147-18969-1-git-send-email-twarren@nvidia.com> <1348260147-18969-2-git-send-email-twarren@nvidia.com> <50609E56.60602@wwwdotorg.org> Message-ID: <5060BB47.80007@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/24/2012 01:45 PM, Tom Warren wrote: > Stephen, > > On Mon, Sep 24, 2012 at 10:54 AM, Stephen Warren wrote: >> On 09/21/2012 02:42 PM, Tom Warren wrote: >>> Move files that are going to be common between T20 and T30 into 'tegra-common' >>> subdirs in AVP (arm720t), CPU (armv7), and shared (arch/arm/cpu/.) areas. Any >>> files that are left behind in '/tegra20' will be copied to '/tegra30' subdirs >>> and modified for that SoC. The 'common' files should need only minor changes. >>> >>> Include files (arch/arm/include/asm/arch-tegra/tegra20) will be done in a >>> follow-on patch. >> >>> diff --git a/Makefile b/Makefile >>> index fe2f98c..584d398 100644 >>> --- a/Makefile >>> +++ b/Makefile >>> @@ -318,6 +318,8 @@ LIBS-y += $(CPUDIR)/s5p-common/libs5p-common.o >>> endif >>> ifeq ($(SOC),tegra20) >>> LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o >>> +LIBS-y += arch/$(ARCH)/cpu/tegra-common/libcputegra-common.o >>> +LIBS-y += $(CPUDIR)/tegra-common/libtegra-common.o >>> endif >> >> I assume that eventually (i.e. in the future, perhaps not as part of >> these patches) arch/$(ARCH)/cpu/$(SOC)-common will go away, to be >> replaced with just arch/$(ARCH)/cpu/tegra-common as added here, and the >> regular arch/$(ARCH)/cpu/$(SOC) which is presumably added elsewhere for >> every SoC? > > As I understand Allen's SPL reorg, /arch/arm/cpu/tegra20-common holds > the files that are common to SPL and main U-Boot. I've added > /arch/arm/cpu/tegra-common to break it down even further, and hold the > files that are common between Tegra20 and Tegra30, and shared between > SPL & main U-Boot. Oh right, I'd forgotten about the SPL/U-Boot split.