9
0
Fork 0
Commit Graph

3730 Commits

Author SHA1 Message Date
Sascha Hauer 0d9b5b5f57 Revert "loadb: remove old-style-u-boot-ifdefs around whole file"
This reverts commit 1e49fadf8a.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-21 08:35:13 +02:00
Sascha Hauer 62e2cd0a68 net: remove redundant assignment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:56:19 +02:00
Sascha Hauer 17ba93e7a0 net: initialize Net* variables unconditionally, not in a big switch/case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:52:31 +02:00
Sascha Hauer 66a936fa64 setenv: Fix warning introduced with last commit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer bcb049a702 string: add typechecking for strchr, strrchr, strstr
These functions offered an excellent possibility to bypass compiler
type checking.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer 7163d8fd2d pcm038 defenv: Do not hardcode ip addresses, ask to set MAC address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer 0004d78381 remove unnecessary double string function declarations
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer 51b4de421e eth: check for valid parameters for ethaddr, ipaddr, ...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer c0d02ffc3d Fix string_to_ip
Use a pointer to an ip address instead of the return value in string_to_ip
and use the return value for error indication only. 0.0.0.0 can be a valid
ip address

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:47 +02:00
Sascha Hauer 33c488f8c1 net: remove unused function declarations
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:16:03 +02:00
Sascha Hauer ad3b376c3d parameter: set errno in dev_set_param
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:12:42 +02:00
Sascha Hauer 1d35082db5 parameter: make stringlen more readable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:10:48 +02:00
Sascha Hauer e3f268d52d net: Coding style changes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 12:30:13 +02:00
Sascha Hauer d2b2dab075 Net: Remove all hardcoded MAC addresses from default environments
While very convenient during debugging having MAC addresses in default
environments is a very bad idea. Stop it!

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 11:58:19 +02:00
Sascha Hauer 949649e3f1 bootm: honour the -n flag again
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 11:37:58 +02:00
Sascha Hauer 2f3211bc25 bootm: memmap now returns (void *)-1 for failure. Test for this instead of NULL
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 11:31:32 +02:00
Raghavendra KH 23ec85feeb This patch adds support for Beagle Board.
Beagle board from TI is a development platform
based on TI's OMAP3530 silicon.

You can find more about Beagle Board here: www.beagleboard.org

More on OMAP3530 (including documentation can be found here):
http://focus.ti.com/docs/prod/folders/print/omap3530.html

Signed-off-by: Raghavendra KH <r-khandenahally@ti.com>
2008-08-20 10:08:47 +02:00
Raghavendra KH 24d376bd79 Remove duplicate OMAP3_CLOCK_CONFIG introduced by commit ID 5e4390fe
Signed-off-by: Raghavendra KH <r-khandenahally@ti.com>
2008-08-20 10:08:47 +02:00
Raghavendra KH 25b49a201f Introduce a common board header for functions required by platform.S
This will prevent redundancies of multiple board-xyz.h files all
doing the same thing.

This deletes the redundant board-sdp343x.h and
fixes the corresponding .c for the change.

Signed-off-by: Raghavendra KH <r-khandenahally@ti.com>
2008-08-20 10:08:47 +02:00
Nishanth Menon e320ef5f9e loadb: change default download file
The default download device was /dev/mem
Quote Sascha:
"This is a quite dangerous thing. There are
quite some boards out there which have NOR
Flash on 0x0. With a default file of
/dev/mem we would overwrite U-Boot."

Change default device to image.bin

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-20 09:17:33 +02:00
Nishanth Menon 580cd4ff28 loadb: Add buffered write
Default loadb behavior works on packet sized
chunks of kermit data to be put on target file
This would not work good on block devices such
as NAND. solution will be to buffer data up to
standard 4096 chunks before giving to device.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-20 09:17:32 +02:00
Sascha Hauer 1e49fadf8a loadb: remove old-style-u-boot-ifdefs around whole file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-19 09:42:29 +02:00
Nishanth Menon 624db2b336 loadb: change -d to -f
-d represents devices only.. but loadb can
operate on files as well. hence Use -f as
option to select the output file. This is
more representative of what we are trying
to do.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-19 09:38:57 +02:00
Nishanth Menon c63e66ed7e loadb: create file
Allow loadb and loady to create file if file not
present. This will allow for downloading a file
to filesystem and cp or doing other operations on
the same. Making this as an option instead of a
default behavior ensures that users intend to
create file when they use -c option

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-19 09:38:57 +02:00
Nishanth Menon 1252331f68 Driver: expose dummy_probe
expose Dummy Probe function so that modules can use it.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon 584f9990a8 Common: expose calloc
calloc is not exported by default. This patch
exposes the same.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon cb3f2e34c4 Bitops:Remove generic_funcs
Use asm-generic/bitops/xyz.h instead of using
generic_xyz functions.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon 31f9cb365e Bitops:Cleanup ARM bitops
Cleanup of ARM bitops functions.
Introduce the findbits.S which allows for
optimized algo.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon 5fc0e871d5 U-Boot-V2:Bitops: asm-generic bitops
This introduces selected generic bitop files from
kernel. We don't need minix, ext2, sched or lock
based bitops. Those have been dropped.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:49 +02:00
Sascha Hauer aed834904a Let 'go' command interpret filenames.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 10:26:23 +02:00
Sascha Hauer e133ccdda8 implement memmap for mem driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 10:25:56 +02:00
Sascha Hauer e3dde87030 pcm038: Add SRAM device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 10:24:48 +02:00
Sascha Hauer 384b6a4e52 pcm038: Configure chipselects for SRAM / CAN Controller
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 09:43:03 +02:00
Sascha Hauer ccbf7b8dac ups, some debug printf slipped in
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 09:41:30 +02:00
Sascha Hauer 865234eb68 pcm038: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 09:31:19 +02:00
Sascha Hauer 939e05e372 pcm038: check for errors
Make the pcm038 startup a bit more robust against errors.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 09:30:08 +02:00
Sascha Hauer 65778b63d2 Partition: Add an own device id for partitions
Add an own device id for partitions. This is necessary to allow
the partition layer to check if the given device is really a partition.
Also, check for readonly flag in erase.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 09:28:10 +02:00
Sascha Hauer 59f72431f4 Add missing call to eth_halt()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 08:43:01 +02:00
Sascha Hauer e6b42af9c5 increase maximum driver name length to 32
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 08:42:32 +02:00
Sascha Hauer 3a36623748 some merge leftover slipped in
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 25aed61663 pcm038: add missing include
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 1a07375247 pcm038: use environment in NAND/NOR depending on where we started from
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer fd12d4cd77 SPI: Add empty spi_register_board_info function when SPI is disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 9e64db6342 Partition layer updates
- route MEMGETINFO through partition layer
- use dev_erase/dev_protect instead of direct pointers

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 1fbb5f65d6 nand: Allow adding/removing of more than one bad block aware device at once
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer b184805fcc add missing close() in do_protect
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 75a9c260c8 pcm038: Update environment for NAND
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 6f680b638b saveenv: close file
Close the file in saveenv before calling envfs_save and reopen it
afterwards. NAND Bad block aware devices allow opening a file only
once.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer 3b4fece6d5 remove tools/updater
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer c5934b3a8b imx27: Add BOOT bitfield definitions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00