summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-08-02 23:22:59 +0000
committerwdenk <wdenk>2004-08-02 23:22:59 +0000
commit6705d81e90ed4466d6e4f445104826096da0c521 (patch)
tree4ed03c864323dacd8609cb4f84a7a8000cea6792 /common
parent68ceb29e7133a0f972f53d3d61fd61207374baec (diff)
downloadu-boot-imx-6705d81e90ed4466d6e4f445104826096da0c521.zip
u-boot-imx-6705d81e90ed4466d6e4f445104826096da0c521.tar.gz
u-boot-imx-6705d81e90ed4466d6e4f445104826096da0c521.tar.bz2
* Patch by Andreas Engel, 12 Jul 2004:
Replaced hardcoded PL011 clock frequency with config variable. Fixed wrong CONFIG_CMD_DFL doc. * Patch by Thomas Viehweger, 09 Jun 2004: make it possible to remove chpart when there is only one partition
Diffstat (limited to 'common')
-rw-r--r--common/cmd_jffs2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index e49b74d..f7a5f9e 100644
--- a/common/cmd_jffs2.c
+++ b/common/cmd_jffs2.c
@@ -47,6 +47,8 @@ static int part_num=0;
#ifndef CFG_JFFS_CUSTOM_PART
+#define CFG_JFFS_SINGLE_PART 1
+
static struct part_info part;
#ifndef CONFIG_JFFS2_NAND
@@ -80,9 +82,6 @@ jffs2_part_info(int part_num)
flash_info[CFG_JFFS2_FIRST_BANK].start[0];
#endif
- /* unused in current jffs2 loader */
- part.erasesize = 0;
-
/* Mark the struct as ready */
part.usr_priv=(void*)1;
@@ -230,6 +229,7 @@ do_jffs2_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}
+#ifndef CFG_JFFS_SINGLE_PART
int
do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
@@ -257,6 +257,7 @@ do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}
+#endif /* CFG_JFFS_SINGLE_PART */
/***************************************************/