From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Fri, 17 Aug 2012 12:46:12 +0200 Subject: [U-Boot] [PATCH 3/3] mxc_spi: apply new mxc_spi version configs to other soc configs In-Reply-To: <1345012685-24932-3-git-send-email-r65388@freescale.com> References: <1345012685-24932-1-git-send-email-r65388@freescale.com> <1345012685-24932-3-git-send-email-r65388@freescale.com> Message-ID: <502E20F4.4060104@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 15/08/2012 08:38, Terry Lv wrote: > Apply new mxc_spi version configs to other soc configs. > > Signed-off-by: Terry Lv > --- > arch/arm/include/asm/arch-mx31/imx-regs.h | 4 ++++ > include/configs/efikamx.h | 4 ++++ > include/configs/flea3.h | 3 +++ > include/configs/imx31_litekit.h | 5 +++++ > include/configs/imx31_phycore.h | 4 ++++ > include/configs/mx31ads.h | 4 ++++ > include/configs/mx31pdk.h | 4 ++++ > include/configs/mx35pdk.h | 8 +++++++- > include/configs/mx51evk.h | 4 ++++ > include/configs/qong.h | 4 ++++ > include/configs/tt01.h | 5 +++++ > 11 files changed, 48 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/include/asm/arch-mx31/imx-regs.h b/arch/arm/include/asm/arch-mx31/imx-regs.h > index 0147920..4f9c78c 100644 > --- a/arch/arm/include/asm/arch-mx31/imx-regs.h > +++ b/arch/arm/include/asm/arch-mx31/imx-regs.h > @@ -24,6 +24,10 @@ > #ifndef __ASM_ARCH_MX31_IMX_REGS_H > #define __ASM_ARCH_MX31_IMX_REGS_H > > +#define CSPI1_BASE_ADDR 0x43fa4000 > +#define CSPI2_BASE_ADDR 0x50010000 > +#define CSPI3_BASE_ADDR 0x53f84000 > + > #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) > #include > > diff --git a/include/configs/efikamx.h b/include/configs/efikamx.h > index a07c8b5..1fe558d 100644 > --- a/include/configs/efikamx.h > +++ b/include/configs/efikamx.h > @@ -99,6 +99,10 @@ > > #define CONFIG_HARD_SPI > #define CONFIG_MXC_SPI > +#define CONFIG_SPI_VER_2_3 1 > +#define CONFIG_CSPI1_BASE_ADDR CSPI1_BASE_ADDR > +#define CONFIG_CSPI2_BASE_ADDR CSPI2_BASE_ADDR > +#define CONFIG_CSPI3_BASE_ADDR CSPI3_BASE_ADDR These are not configurable. If a board is a MX5, they are fixed from imx-regs.h. See also my previous answer to Patch 2/3. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================