| d48eb513 | 19-Apr-2009 |
Peter Tyser <ptyser@xes-inc.com> |
i2c: Remove deprecated individual i2c commands
The following individual I2C commands have been removed: imd, imm, inm, imw, icrc32, iprobe, iloop, isdram.
The functionality of the individual comman
i2c: Remove deprecated individual i2c commands
The following individual I2C commands have been removed: imd, imm, inm, imw, icrc32, iprobe, iloop, isdram.
The functionality of the individual commands is still available via the 'i2c' command.
This change only has an impact on those boards which did not have CONFIG_I2C_CMD_TREE defined.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| 655b34a7 | 19-Apr-2009 |
Peter Tyser <ptyser@xes-inc.com> |
i2c: Create common default i2c_[set|get]_bus_speed() functions
New default, weak i2c_get_bus_speed() and i2c_set_bus_speed() functions replace a number of architecture-specific implementations.
Als
i2c: Create common default i2c_[set|get]_bus_speed() functions
New default, weak i2c_get_bus_speed() and i2c_set_bus_speed() functions replace a number of architecture-specific implementations.
Also, providing default functions will allow all boards to enable CONFIG_I2C_CMD_TREE. This was previously not possible since the tree-form of the i2c command provides the ability to display and modify the i2c bus speed which requires i2c_[set|get]_bus_speed() to be present.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| 9c90a2c8 | 24-Apr-2009 |
Peter Tyser <ptyser@xes-inc.com> |
i2c.h: Provide a default CONFIG_SYS_I2C_SLAVE value
Many boards/controllers/drivers don't support an I2C slave interface, however CONFIG_SYS_I2C_SLAVE is used in common code so provide a default
Si
i2c.h: Provide a default CONFIG_SYS_I2C_SLAVE value
Many boards/controllers/drivers don't support an I2C slave interface, however CONFIG_SYS_I2C_SLAVE is used in common code so provide a default
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| e85649c7 | 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: check find_mmc_device return value
find_mmc_device returns NULL if an invalid device number is specified. Check for this to avoid dereferencing NULL pointers.
Signed-off-by: Rabin Vincent <rab
mmc: check find_mmc_device return value
find_mmc_device returns NULL if an invalid device number is specified. Check for this to avoid dereferencing NULL pointers.
Signed-off-by: Rabin Vincent <rabin@rab.in>
show more ...
|
| ac0865ff | 05-Apr-2009 |
Rabin Vincent <rabin@rab.in> |
mmc: clean up help texts
Remove some repeated words and superfluous newlines in the mmc command help entries.
Signed-off-by: Rabin Vincent <rabin@rab.in> |
| 76b5883d | 16-May-2009 |
Stefan Roese <sr@denx.de> |
jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together
Currently using JFFS2 with MTDPARTS enabled doesn't work. This is because mtdparts_init() is available in both files, cmd_mtdp
jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together
Currently using JFFS2 with MTDPARTS enabled doesn't work. This is because mtdparts_init() is available in both files, cmd_mtdparts.c and cmd_jffs2.c. Please note that in the original cmd_jffs2.c file (before the jffs2/mtdparts command/file split those 2 different versions already existed. So this is nothing new. The main problem is that the variables "current_dev" and "current_partnum" are declared in both files now. This doesn't work.
This patch now changes the names of those variable to more specific names: "current_mtd_dev" and "current_mtd_partnum". This is because this patch also changes the declaration from static to global, so that they can be used from both files.
Please note that my first tests were not successful. The MTD devices selected via mtdparts are now accessed but I'm failing to see the directory listed via the "ls" command. Nothing is displayed. Perhaps I didn't generate the JFFS2 image correctly (I never used JFFS2 in U-Boot before). Not sure. Perhaps somebody else could take a look at this as well. I'll continue looking into this on Monday.
Signed-off-by: Stefan Roese <sr@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> Cc: Ilya Yanok <yanok@emcraft.com> Cc: Renaud barbier <renaud.barbier@ge.com>
show more ...
|
| 5af210c2 | 20-May-2009 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot-ubi |
| 2df72b82 | 19-May-2009 |
Kim Phillips <kim.phillips@freescale.com> |
common: fix inline--weak error spotted by gcc 4.4
cmd_ide.c:547: error: inline function 'ide_inb' cannot be declared weak
removing the inline attribute fixes it.
Signed-off-by: Kim Phillips <kim.p
common: fix inline--weak error spotted by gcc 4.4
cmd_ide.c:547: error: inline function 'ide_inb' cannot be declared weak
removing the inline attribute fixes it.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
show more ...
|
| 08503017 | 19-May-2009 |
Andreas Huber <andreas.huber@keymile.com> |
UBI: fix return code in ubi_volume_read
Return -ENODEV instead of 0 when trying to read from a non existing volume.
Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Stefan Ro
UBI: fix return code in ubi_volume_read
Return -ENODEV instead of 0 when trying to read from a non existing volume.
Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| 792a09eb | 13-May-2009 |
Detlev Zundel <dzu@denx.de> |
Fix e-mail address of Gary Jennejohn.
Signed-off-by: Detlev Zundel <dzu@denx.de> |
| 5e2c08c3 | 12-May-2009 |
Emil Medve <Emilian.Medve@Freescale.com> |
Remove inline qualifier from show_boot_progress()
The 'inline' is conflicting with the semantic of 'weak' attribute and with the way the show_boot_progress() function is used.
Also gcc 4.4 is compl
Remove inline qualifier from show_boot_progress()
The 'inline' is conflicting with the semantic of 'weak' attribute and with the way the show_boot_progress() function is used.
Also gcc 4.4 is complaining about it:
main.c:51: error: inline function 'show_boot_progress' cannot be declared weak
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
show more ...
|
| da95427c | 28-Apr-2009 |
Heiko Schocher <hs@denx.de> |
netloop: updates for NetLoop
Fix some issues introduced from commit: 2f70c49e5b9813635ad73666aa30f304c7fdeda9 suggested by Mike Frysinger.
- added some comment for the env_id variable in common_cmd
netloop: updates for NetLoop
Fix some issues introduced from commit: 2f70c49e5b9813635ad73666aa30f304c7fdeda9 suggested by Mike Frysinger.
- added some comment for the env_id variable in common_cmd_nvedit.c - moved some variables in fn scope instead of file scope - NetInitLoop now static void
Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Ben Warren <biggerbadderben@gmail.com>
show more ...
|
| 4d9eab89 | 28-Apr-2009 |
Wolfgang Denk <wd@denx.de> |
cmd_ext2.c: fix compile warnings
Get rid of these warnings:
cmd_ext2.c:247: warning: format '%ld' expects type 'long int', but argument 2 has type 'int' cmd_ext2.c:248: warning: format '%lX' expect
cmd_ext2.c: fix compile warnings
Get rid of these warnings:
cmd_ext2.c:247: warning: format '%ld' expects type 'long int', but argument 2 has type 'int' cmd_ext2.c:248: warning: format '%lX' expects type 'long unsigned int', but argument 3 has type 'int'
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| 2d579e50 | 24-Apr-2009 |
Stefan Roese <sr@denx.de> |
ubi: Remove flash selection parameter (nor|nand|onenand) from "ubi part"
This patch removes the now unnecessary flash type parameter from the "ubi part" command. Currently the user has to define the
ubi: Remove flash selection parameter (nor|nand|onenand) from "ubi part"
This patch removes the now unnecessary flash type parameter from the "ubi part" command. Currently the user has to define the type of flash he will be using UBI on. Example:
=> ubi part nor partition1
With this patch this type parameter is not needed anymore. The user can now select the partition directly without the flash type paramter. Example:
=> ubi part partition1
This breaks backward compatibility right now because of the change in the command syntax. But UBI support is still quite fresh and the advantage of this new command is syntax big enough for this change. Additionally the code is much cleaner now.
Signed-off-by: Stefan Roese <sr@denx.de> CC: Kyungmin Park <kyungmin.park@samsung.com>
show more ...
|
| 0c8a8491 | 21-Apr-2009 |
Ladislav Michl <ladis@linux-mips.org> |
Separate mtdparts command from jffs2
On Thu, Mar 19, 2009 at 01:30:36PM +0100, Stefan Roese wrote: > Currently the mtdparts commands are included in the jffs2 command support. > This doesn't make se
Separate mtdparts command from jffs2
On Thu, Mar 19, 2009 at 01:30:36PM +0100, Stefan Roese wrote: > Currently the mtdparts commands are included in the jffs2 command support. > This doesn't make sense anymore since other commands (e.g. UBI) use this > infrastructure as well now. This patch separates the mtdparts commands from > the jffs2 commands making it possible to only select mtdparts when no JFFS2 > support is needed.
One more leftover... Let nboot command know about partitions even if JFFS2 support is not enabled.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Stefan Roese <sr@denx.de>
show more ...
|
| 67c2e57c | 20-Apr-2009 |
Peter Tyser <ptyser@xes-inc.com> |
cmd_ide: Remove unused AmigaOneG3SE code
The output_data_short() and input_data_short() functions for the AmigaOneG3SE are unused and result in compiler warnings.
Signed-off-by: Peter Tyser <ptyser
cmd_ide: Remove unused AmigaOneG3SE code
The output_data_short() and input_data_short() functions for the AmigaOneG3SE are unused and result in compiler warnings.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| 08f077da | 17-Apr-2009 |
David Brownell <dbrownell@users.sourceforge.net> |
mtdpart command: align output columns
Make the headers in the "mtdparts" command output line up with their columns ... strike the extra TAB character.
Signed-off-by: David Brownell <dbrownell@users
mtdpart command: align output columns
Make the headers in the "mtdparts" command output line up with their columns ... strike the extra TAB character.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
show more ...
|
| 351f40ca | 14-Apr-2009 |
Gao Guanhua <B22826@freescale.com> |
fs: Fix the wrong type of var
The filelen should be signed type, not unsigned type. otherwise, The condition as below never take. if (filelen < 0)
Signed-off-by: Gao Guanhua <B22826@freescale.com>
fs: Fix the wrong type of var
The filelen should be signed type, not unsigned type. otherwise, The condition as below never take. if (filelen < 0)
Signed-off-by: Gao Guanhua <B22826@freescale.com> Signed-off-by: Dave Liu <daveliu@freescale.com>
show more ...
|
| dfc99e14 | 13-Apr-2009 |
Mike Frysinger <vapier@gentoo.org> |
cmd_nand: drop duplicate NULL ptr check
The first if statement checks for NULL ptrs, so there is no need to check it again in later else cases (such as .oob).
Signed-off-by: Mike Frysinger <vapier@
cmd_nand: drop duplicate NULL ptr check
The first if statement checks for NULL ptrs, so there is no need to check it again in later else cases (such as .oob).
Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Scott Wood <scottwood@freescale.com>
show more ...
|
| f63728c8 | 04-Apr-2009 |
Wolfgang Denk <wd@denx.de> |
One more fix for building env_embedded.o
In addition to the changes for CONFIG_ENV_IS_IN_FLASH as done in commit afcbce07, we also need to do the same for CONFIG_ENV_IS_IN_EEPROM and CONFIG_ENV_IS_I
One more fix for building env_embedded.o
In addition to the changes for CONFIG_ENV_IS_IN_FLASH as done in commit afcbce07, we also need to do the same for CONFIG_ENV_IS_IN_EEPROM and CONFIG_ENV_IS_IN_NVRAM.
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| e3d1ac7b | 02-Apr-2009 |
Scott Wood <scottwood@freescale.com> |
common/image.c: Relocate strings in tables.
Without this, u-boot can crash or print garbage if the original link address no longer points to a valid string.
Signed-off-by: Scott Wood <scottwood@fre
common/image.c: Relocate strings in tables.
Without this, u-boot can crash or print garbage if the original link address no longer points to a valid string.
Signed-off-by: Scott Wood <scottwood@freescale.com>
show more ...
|
| c203ef5d | 02-Apr-2009 |
Andreas Huber <andreas.huber@keymile.com> |
UBI/cfi-mtd: Fix mtd name for multiple chips
On platforms with multiple NOR chips, currently only the first one can be selected using the "ubi part" command. This patch fixes this problem by using d
UBI/cfi-mtd: Fix mtd name for multiple chips
On platforms with multiple NOR chips, currently only the first one can be selected using the "ubi part" command. This patch fixes this problem by using different names for the NOR "mtd devices".
It also changes the name of the NOR MTD device from "cfi-mtd" to "norX" (X indexing the device numer) to better match the mtdparts defaults.
Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Andreas Huber <andreas.huber@keymile.com>
show more ...
|
| 869f6bf4 | 30-Mar-2009 |
Minkyu Kang <mk7.kang@samsung.com> |
cmd_mmc: add support for device command for selecting mmc device
This patch improves device command for selecting mmc device
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> |
| 852dbfdd | 24-Mar-2009 |
Mike Frysinger <vapier@gentoo.org> |
more command usage cleanup
Fix up a few dangling commands like in "Command usage cleanup" commit.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> |
| b93b24bf | 23-Mar-2009 |
Ladislav Michl <ladis@linux-mips.org> |
Separate mtdparts command from jffs2
On Thu, Mar 19, 2009 at 01:30:36PM +0100, Stefan Roese wrote: > Currently the mtdparts commands are included in the jffs2 command support. > This doesn't make se
Separate mtdparts command from jffs2
On Thu, Mar 19, 2009 at 01:30:36PM +0100, Stefan Roese wrote: > Currently the mtdparts commands are included in the jffs2 command support. > This doesn't make sense anymore since other commands (e.g. UBI) use this > infrastructure as well now. This patch separates the mtdparts commands from > the jffs2 commands making it possible to only select mtdparts when no JFFS2 > support is needed.
... and to make it useful for NAND chips as well, we should also remove now unrelated CONFIG_JFFS2_NAND. Note that struct part_info etc is in jffs2/load_kernel.h which is a bit misleading filename for that purpose, but that can be fixed later (tm).
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
show more ...
|