From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 22 Jul 2010 17:03:25 +0200 Subject: [U-Boot] [PATCH 7/7] PXA: Vpac270 config fixes In-Reply-To: <1279811005-21858-1-git-send-email-marek.vasut@gmail.com> References: <1279811005-21858-1-git-send-email-marek.vasut@gmail.com> Message-ID: <1279811005-21858-7-git-send-email-marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Define __io to get harddrive working. Fix saving of environment into OneNAND. Boot from harddrive when possible. Signed-off-by: Marek Vasut --- include/configs/vpac270.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h index 6d02995..a0383b2 100644 --- a/include/configs/vpac270.h +++ b/include/configs/vpac270.h @@ -36,7 +36,7 @@ /* * Environment settings */ -#define CONFIG_ENV_SIZE 0x4000 +#define CONFIG_ENV_SIZE 0x20000 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) #define CONFIG_SYS_GBL_DATA_SIZE 128 @@ -49,6 +49,9 @@ "if usb reset && fatload usb 0 0xa4000000 uImage; then " \ "bootm 0xa4000000; " \ "fi; " \ + "if ide reset && fatload ide 0 0xa4000000 uImage; then " \ + "bootm 0xa4000000; " \ + "fi; " \ "bootm 0x40000;" #define CONFIG_BOOTARGS "console=tty0 console=ttyS0,115200" #define CONFIG_TIMESTAMP @@ -116,6 +119,7 @@ #define CONFIG_PXA_MMC #define CONFIG_SYS_MMC_BASE 0xF0000000 #define CONFIG_CMD_FAT +#define CONFIG_CMD_EXT2 #define CONFIG_DOS_PARTITION #endif @@ -228,6 +232,12 @@ #undef CONFIG_IDE_LED #undef CONFIG_IDE_RESET +/* + * HACK WARNING: __io + * This MUST go away once the readb/writeb and inb/outb issue is solved + */ +#define __io + #define CONFIG_SYS_IDE_MAXBUS 1 #define CONFIG_SYS_IDE_MAXDEVICE 1 -- 1.7.1