OMAP3: igep00x0: add nand flash and SPL support
cover OMAP3: igep00x0: add nand flash and SPL support
IGEP-based boards can have two different flash memories, a OneNAND or a NAND device.
Since u-boot still lacks of a device model to be the able to look at run-time which memory type is available on a the board, a built time config option is needed to choose which memory to use.
This is a resend of a patch-set that adds both a config option for the nand memory type and SPL support to IGEP-based boards.
The patch-set is composed of the following patches:
[u-boot-arm/next RESEND PATCH 1/3] OMAP3: igep00x0: Add config [u-boot-arm/next RESEND PATCH 2/3] OMAP3: mem: Add Numonyx OneNAND [u-boot-arm/next RESEND PATCH 3/3] OMAP3: igep00x0: add SPL support
Best regards,
Javier
PATCH RESEND 1/3 OMAP3: igep00x0: Add config option to choose flash storage memory
IGEP-based boards can have two different flash memories, a OneNAND or a NAND device. Add a configuration option for to choose which memory to use.
--- board/isee/igep0020/igep0020.h | 4 ++++ board/isee/igep0030/igep0030.h | 4 ++++ boards.cfg | 6 ++++-- include/configs/igep00x0.h | 19 +++++++++++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-)
board/isee/igep0020/igep0020.h +4 -0
@@ -26,7 +26,11 @@const omap3_sysinfo sysinfo = {DDR_STACKED ,"IGEP v2 board" , +#if defined(CONFIG_ENV_IS_IN_ONENAND)"ONENAND" , +#else +"NAND" , +#endif };static void setup_net_chip (void );
board/isee/igep0030/igep0030.h +4 -0
@@ -26,7 +26,11 @@const omap3_sysinfo sysinfo = {DDR_STACKED ,"OMAP3 IGEP module" , +#if defined(CONFIG_ENV_IS_IN_ONENAND)"ONENAND" , +#else +"NAND" , +#endif };/*
boards.cfg +4 -2
@@ -224,8 +224,10 @@ cm_t35 arm armv7 cm_t35 - omap3_overo arm armv7 overo - omap3 omap3_pandora arm armv7 pandora - omap3 dig297 arm armv7 dig297 comelit omap3 -igep0020 arm armv7 igep0020 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0020 -igep0030 arm armv7 igep0030 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0030 +igep0020 arm armv7 igep0020 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0020,BOOT_ONENAND +igep0020_nand arm armv7 igep0020 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0020,BOOT_NAND +igep0030 arm armv7 igep0030 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0030,BOOT_ONENAND +igep0030_nand arm armv7 igep0030 isee omap3 igep00x0:MACH_TYPE=MACH_TYPE_IGEP0030,BOOT_NAND am3517_evm arm armv7 am3517evm logicpd omap3 mt_ventoux arm armv7 mt_ventoux teejet omap3 omap3_zoom1 arm armv7 zoom1 logicpd omap3
include/configs/igep00x0.h +19 -0
@@ -105,7 +105,12 @@#define CONFIG_CMD_FAT /* FAT support */ #define CONFIG_CMD_I2C /* I2C serial bus support */ #define CONFIG_CMD_MMC /* MMC support */ +#ifdef CONFIG_BOOT_ONENAND #define CONFIG_CMD_ONENAND /* ONENAND support */ +#endif +#ifdef CONFIG_BOOT_NAND +#define CONFIG_CMD_NAND +#endif #define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */ #define CONFIG_CMD_DHCP #define CONFIG_CMD_PING
@@ -244,6 +249,7 @@* FLASH and environment organization */ +#ifdef CONFIG_BOOT_ONENAND #define PISMO1_ONEN_SIZE GPMC_SIZE_128M/* Configure the PISMO */ #define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
@@ -253,6 +259,19 @@#define CONFIG_ENV_IS_IN_ONENAND 1#define CONFIG_ENV_SIZE (512 << 10)/* Total Size Environment */ #define CONFIG_ENV_ADDR ONENAND_ENV_OFFSET +#endif + +#ifdef CONFIG_BOOT_NAND +#define PISMO1_NAND_SIZE GPMC_SIZE_128M/* Configure the PISMO */ +#define CONFIG_NAND_OMAP_GPMC +#define CONFIG_SYS_NAND_BASE NAND_BASE +#define GPMC_NAND_ECC_LP_x16_LAYOUT 1 +#define CONFIG_ENV_OFFSET 0x260000/* environment starts here */ +#define CONFIG_ENV_IS_IN_NAND 1 +#define CONFIG_ENV_SIZE (512 << 10)/* Total Size Environment */ +#define CONFIG_ENV_ADDR NAND_ENV_OFFSET +#define CONFIG_SYS_MAX_NAND_DEVICE 1 +#endif /* * Size of malloc() pool
Signature · 1 line
1.7.7.6
PATCH RESEND 2/3 OMAP3: mem: Add Numonyx OneNAND 200MHz timing information
In reply to Javier Martinez Canillas--- arch/arm/include/asm/arch-omap3/mem.h | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-)
arch/arm/include/asm/arch-omap3/mem.h +29 -0
@@ -294,6 +294,35 @@ enum {#define NUMONYX_RASWIDTH_165 15#define NUMONYX_V_MCFG_165 (size) MCFG((size), NUMONYX_RASWIDTH_165) +/* NUMONYX part of IGEP v2 (200MHz optimized) 5 ns */ +#define NUMONYX_TDAL_200 6/* Twr/Tck + Trp/tck */ +/* 15/5 + 15/5 = 3 + 3 -> 6 */ +#define NUMONYX_TDPL_200 3/* 15/5 = 3 -> 3 (Twr) */ +#define NUMONYX_TRRD_200 2/* 10/5 = 2 */ +#define NUMONYX_TRCD_200 4/* 16.2/5 = 3.24 -> 4 */ +#define NUMONYX_TRP_200 3/* 15/5 = 3 */ +#define NUMONYX_TRAS_200 8/* 40/5 = 8 */ +#define NUMONYX_TRC_200 11/* 55/5 = 11 */ +#define NUMONYX_TRFC_200 28/* 140/5 = 28 */ + +#define NUMONYX_V_ACTIMA_200 \ + ACTIM_CTRLA(NUMONYX_TRFC_200, NUMONYX_TRC_200, \ + NUMONYX_TRAS_200, NUMONYX_TRP_200, \ + NUMONYX_TRCD_200, NUMONYX_TRRD_200, \ + NUMONYX_TDPL_200, NUMONYX_TDAL_200) + +#define NUMONYX_TWTR_200 2 +#define NUMONYX_TCKE_200 2 +#define NUMONYX_TXP_200 3 +#define NUMONYX_XSR_200 40 + +#define NUMONYX_V_ACTIMB_200 \ + ACTIM_CTRLB(NUMONYX_TWTR_200, NUMONYX_TCKE_200, \ + NUMONYX_TXP_200, NUMONYX_XSR_200) + +#define NUMONYX_RASWIDTH_200 15 +#define NUMONYX_V_MCFG_200 (size) MCFG((size), NUMONYX_RASWIDTH_200) +/* * GPMC settings - * Definitions is as per the following format
Signature · 1 line
1.7.7.6
PATCH RESEND 3/3 OMAP3: igep00x0: add SPL support for IGEP-based boards
In reply to Javier Martinez CanillasThis patch adds SPL support for IGEP-based boards. Tested on an IGEPv2 Rev.C board with Micron NAND Flash memory.
--- board/isee/igep0020/config.mk | 33 -------------------- board/isee/igep0020/igep0020.c | 42 +++++++++++++++++++++++++- board/isee/igep0030/config.mk | 33 -------------------- board/isee/igep0030/igep0030.c | 42 +++++++++++++++++++++++++- include/configs/igep00x0.h | 65 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 147 insertions(+), 68 deletions(-) delete mode 100644 board/isee/igep0020/config.mk delete mode 100644 board/isee/igep0030/config.mk
board/isee/igep0020/config.mk deleted +0 -33
@@ -1,33 +0,0 @@ -# -# (C) Copyright 2009 -# ISEE 2007 SL, <www.iseebcn.com> -# -# IGEP0020 uses OMAP3 (ARM-CortexA8) cpu -# see http://www.ti.com/ for more information on Texas Instruments -# -# See file CREDITS for list of people who contributed to this -# project. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA -# -# Physical Address: -# 8000'0000 (bank0) -# A000/0000 (bank1) -# Linux-Kernel is expected to be at 8000'8000, entry 8000'8000 -# (mem base + reserved) - -# For use with external or internal boots. -CONFIG_SYS_TEXT_BASE = 0x80008000
board/isee/igep0020/igep0020.c +41 -1
54 lines not on this page · raw message
board/isee/igep0030/config.mk deleted +0 -33
@@ -1,33 +0,0 @@ -# -# (C) Copyright 2009 -# ISEE 2007 SL, <www.iseebcn.com> -# -# IGEP0030 uses OMAP3 (ARM-CortexA8) cpu -# see http://www.ti.com/ for more information on Texas Instruments -# -# See file CREDITS for list of people who contributed to this -# project. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA -# -# Physical Address: -# 8000'0000 (bank0) -# A000/0000 (bank1) -# Linux-Kernel is expected to be at 8000'8000, entry 8000'8000 -# (mem base + reserved) - -# For use with external or internal boots. -CONFIG_SYS_TEXT_BASE = 0x80008000
board/isee/igep0030/igep0030.c +41 -1
48 lines not on this page · raw message
include/configs/igep00x0.h +65 -0
75 lines not on this page · raw message
Signature · 1 line
1.7.7.6
cover OMAP3: igep00x0: add nand flash and SPL support
In reply to Javier Martinez CanillasQuoted 7 lines · Javier Martinez Canillas
IGEP-based boards can have two different flash memories, a OneNAND or a NAND device.
Since u-boot still lacks of a device model to be the able to look at run-time which memory type is available on a the board, a built time config option is needed to choose which memory to use.
Quoted 8 lines
This is a resend of a patch-set that adds both a config option for the nand memory type and SPL support to IGEP-based boards.
The patch-set is composed of the following patches:
[u-boot-arm/next RESEND PATCH 1/3] OMAP3: igep00x0: Add config [u-boot-arm/next RESEND PATCH 2/3] OMAP3: mem: Add Numonyx OneNAND [u-boot-arm/next RESEND PATCH 3/3] OMAP3: igep00x0: add SPL support
This all looks good, barring comments from someone else, I'll pick this up Friday or so.
Signature · 1 line
Tom
cover OMAP3: igep00x0: add nand flash and SPL support
Quoted 18 lines · Tom Rini
Quoted 7 lines · Javier Martinez Canillas
IGEP-based boards can have two different flash memories, a OneNAND or a NAND device.
Since u-boot still lacks of a device model to be the able to look at run-time which memory type is available on a the board, a built time config option is needed to choose which memory to use.
Quoted 8 lines
This is a resend of a patch-set that adds both a config option for the nand memory type and SPL support to IGEP-based boards.
The patch-set is composed of the following patches:
[u-boot-arm/next RESEND PATCH 1/3] OMAP3: igep00x0: Add config [u-boot-arm/next RESEND PATCH 2/3] OMAP3: mem: Add Numonyx OneNAND [u-boot-arm/next RESEND PATCH 3/3] OMAP3: igep00x0: add SPL support
Quoted 5 lines
This all looks good, barring comments from someone else, I'll pick this up Friday or so.
--
Tom
Perfect, thanks a lot Tom!
Best regards,
Javier
cover OMAP3: igep00x0: add nand flash and SPL support
In reply to Javier Martinez CanillasQuoted 7 lines · Javier Martinez Canillas
IGEP-based boards can have two different flash memories, a OneNAND or a NAND device.
Since u-boot still lacks of a device model to be the able to look at run-time which memory type is available on a the board, a built time config option is needed to choose which memory to use.
Quoted 8 lines
This is a resend of a patch-set that adds both a config option for the nand memory type and SPL support to IGEP-based boards.
The patch-set is composed of the following patches:
[u-boot-arm/next RESEND PATCH 1/3] OMAP3: igep00x0: Add config [u-boot-arm/next RESEND PATCH 2/3] OMAP3: mem: Add Numonyx OneNAND [u-boot-arm/next RESEND PATCH 3/3] OMAP3: igep00x0: add SPL support
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120803/c7b3386a/attachment.pgp>