Sascha Hauer
ba03618c77
remove unused include files
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:02 +01:00
Sascha Hauer
2af6fe64dc
fb: Add FB_SYNC_ defines from kernel
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 17:05:55 +01:00
Sascha Hauer
d870137a17
i.MX flash header: make it work on i.MX35
...
The flash header is used on different i.MXs other than the
i.MX25, so rename it. Also, add a possibility to put a flash
header on different offsets (0x100, 0x400 and 0x1000), needed
for different boot mediums.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 11:12:51 +01:00
Marc Kleine-Budde
9434fe68e4
clock.h: use types.h not linux/types.h
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 11:12:36 +01:00
Sascha Hauer
c6f639fafb
NAND: Allow to read oob data
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:47 +01:00
Marc Kleine-Budde
ce96b9c05e
mc9sdz60: driver added
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:45:30 +01:00
Marc Kleine-Budde
635dd44d47
mc13892: driver added
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:45:23 +01:00
Marc Kleine-Budde
0d870824a4
i2c: new framework
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:44:42 +01:00
Marc Kleine-Budde
25144c9f7c
nand: ground dev_add_bb_dev if nand is disabled
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-23 10:55:56 +01:00
Marc Kleine-Budde
494f8c1a76
clock.h: uses uint?_t types, so include types.h
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-23 10:55:48 +01:00
Sascha Hauer
73d57b1d35
list: remove duplicated list.h
...
We accidently have two list implementations in the tree:
include/list.h and include/linux/list.h. This patch moves
the latter (newer one) to include/linux/list.h.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:48:53 +01:00
Jean-Christophe PLAGNIOL-VILLARD
483d4e0857
driver: add dev_name inline
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-02 08:23:45 +01:00
Jean-Christophe PLAGNIOL-VILLARD
318e743323
add bool types support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-02 08:23:23 +01:00
Sascha Hauer
40a5f3de4e
Merge branch 'for-sascha' of git://uboot.jcrosoft.org/u-boot-v2 into from-jean
...
Conflicts:
board/a9m2440/a9m2440.c
board/pcm043/pcm043.c
drivers/nand/nand_imx.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:10:56 +01:00
Juergen Beisert
afae995ef9
S3C24xx: Provide a generic way to detect memory size
...
This patch adds code to determine the current available SDRAM size. It relies
on other routines setting up the SDRAM controller, because it only read back
their settings.
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
2009-10-28 09:44:41 +01:00
Sascha Hauer
a30b9d4872
IMX_NAND_BASE -> IMX_NFC_BASE
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:12:00 +01:00
Sascha Hauer
a968fad1cd
imx_nand: allow flash based bbt
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
011f6dca89
mxc_nand: determine page and block size depending on NFMS bit
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Eric Benard
8b05f7528c
imx-nand : remove wrong part of commit ca326e8882
...
previous fix for 2k pages was wrong so remove it
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-23 09:42:01 +02:00
Jean-Christophe PLAGNIOL-VILLARD
daad436bf7
[M68K] Move include/asm-m68k/{arch,proc}-* to arch/m68k/*/include/{mach,proc}
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:23:26 +02:00
Jean-Christophe PLAGNIOL-VILLARD
139b569c07
[M68K] move include/asm-m68k to arch/m68k/include/asm
...
Move platform independent header files to arch/m68k/include/asm, leaving
those in asm/arch* and asm/proc*.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Jean-Christophe PLAGNIOL-VILLARD
e988d5d990
[PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Jean-Christophe PLAGNIOL-VILLARD
abd9cd4945
[PPC] move include/asm-ppc to arch/ppc/include/asm
...
Move platform independent header files to arch/ppc/include/asm, leaving
those in asm/arch*.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD
b4521685bf
[SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD
e2a7b79cfc
[SANDBOX] move include/asm-sandbox to arch/arm/include/sandbox
...
Move platform independent header files to arch/sandbox/include/asm, leaving
those in asm/arch*.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD
37e96f83bc
[BLACKFIN] move include/asm-blackfin to arch/blackfin/include/asm
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD
f6a579da9c
[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:25 +02:00
Jean-Christophe PLAGNIOL-VILLARD
9956bdf77d
arm: merge proc-armv/ptrace.h and ptrace.h in one file
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 12:12:48 +02:00
Jean-Christophe PLAGNIOL-VILLARD
67254a403f
[ARM] move include/asm-arm to arch/arm/include/asm
...
Move platform independent header files to arch/arm/include/asm, leaving
those in asm/arch* and asm/proc* alone.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 12:12:47 +02:00
Sascha Hauer
14eb082606
hush: remove include/hush.h
...
Everything in include/hush.h is only used in hush.c, so remove
the header file.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-22 11:17:25 +02:00
Peter Korsgaard
b8399573ba
image.h: amd64 support
...
Use IH_CPU_I386 for amd64 machines as well, so bootm.c is able to build
on amd64 sandbox.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-21 09:38:57 +02:00
Jean-Christophe PLAGNIOL-VILLARD
a08615b2da
at91sam9: switch to the same api as the kernel
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD
7ac3805353
at91: add cpu devices common api
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD
81362c2b2a
at91sam9: move to at91
...
this will allow to add at91rm9200 with the same api as done in the kernel
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:36 +02:00
Sascha Hauer
420a3173f0
commands: remove maxargs
...
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer
bc3e7b31f1
remove unused header file
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 12:21:44 +02:00
Sascha Hauer
0ecf7f1aeb
commands: add defines for command errors/success
...
This allows us to return COMMAND_ERROR_USAGE for
a failed command which will then print the usage,
a very common case for commands.
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer
cf996861d7
remove unused typedef
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
ef7ff70ca4
consolidate command calling in execute_command
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
2dc2132f0e
remove global variable BootFile
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer
a5f301fb7a
remove unused variable NetBootFileSize
...
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:54:57 +02:00
Sascha Hauer
146f9b6e5b
remove sntp support. Has been broken for long enough
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:19:28 +02:00
Sascha Hauer
1d73a42006
imxfb: make framebuffer base address configurable
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer
faa61661cf
only the ping code is interested in the ping ip
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer
8c17c465d6
make netboot_common a global function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:41 +02:00
Sascha Hauer
a3a5927110
net: remove switch/case in NetLoop()
...
Instead of having a big switch/case for every protocol, do
the right things in the individual functions before callong
NetLoop().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:40 +02:00
Sascha Hauer
9296260a78
net: split NetLoop in NetLoop and NetLoopInit
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:49:21 +02:00
Sascha Hauer
3487f1ee8e
net: remove unused state NETLOOP_RESTART
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:48:56 +02:00
Sascha Hauer
b71685e1f4
add USB otg pin definitions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-09 11:58:32 +02:00
Sascha Hauer
0f7c7fdc0c
i.MX introduce cpu_is_*() macros
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 08:41:13 +02:00
Sascha Hauer
5931e20907
imx spi: Use gpio as chip selects
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-02 15:34:25 +02:00
Sascha Hauer
d13f32d50a
imx: replace imx specific gpio functions with generic ones
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-02 15:34:03 +02:00
Sascha Hauer
2baeaf38f3
fs: replace broken dev_protect with protect_file function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-02 15:23:22 +02:00
Sascha Hauer
d9345607aa
Add USB device support
...
This patch adds support for USB devices. It uses
the Linux Kernel gadget API. Along with this patch
comes driver support for the Freescale (arc) USB OTG
Core and USB Device Firmware Update (DFU)
The serial gadget support is not working at the moment.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 14:31:26 +02:00
Sascha Hauer
3820307eb0
rename dma macros
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:57 +02:00
Sascha Hauer
0a0920af28
add xstrdup function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:33:57 +02:00
Sascha Hauer
a205b87fa2
make copy_file() globally available
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:33:52 +02:00
Sascha Hauer
f46010a1ab
devfs: add open counter
...
Add an open counter for device files so that we cannot accidently
remove an opened device. This happened with bb devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-11 09:13:33 +02:00
Sascha Hauer
34a299d8a6
usb: remove unused fields from struct usb_device
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-09 11:51:28 +02:00
Sascha Hauer
970606b123
imx27: Add usb defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-09 11:50:55 +02:00
Sascha Hauer
13d3db22d3
Add MX25 support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer
1d2f68baa8
add iomux definitions for mx25
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer
e2c8e8a180
Add MMU support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:30 +02:00
Sascha Hauer
49ff3691b4
arm: Add bootu command
...
bootu command to start raw (uncompressed) Linux images
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:01 +02:00
Sascha Hauer
5db3059ebc
arm: make 'bootz' configurable
...
also, fix compilation with bootm disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:50:31 +02:00
Sascha Hauer
270c2673a1
arm: implement optimized string functions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-18 15:45:00 +02:00
Sascha Hauer
b96916ac9b
add missing include/fb.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-13 10:42:54 +02:00
Sascha Hauer
ce0d6995f6
framebuffer: Add bmp command to show bmp files
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-31 15:08:49 +02:00
Sascha Hauer
79baaa503f
Add framebuffer support
...
This patch adds framebuffer support and a driver for i.MX[12]
framebuffer devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-31 15:08:21 +02:00
Sascha Hauer
9e3f6a8bbc
mx27: Add lcd clock function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-30 16:09:10 +02:00
Sascha Hauer
283b34e5bb
mx27: Add lcd iomux defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-30 16:08:28 +02:00
Sascha Hauer
217b7d8573
nand: Add size parameter
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 18:37:32 +02:00
Sascha Hauer
02ba8a0542
get rid of device ids
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:47 +02:00
Sascha Hauer
2f8df2a003
add a device_d to ethernet devices
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
db0d705898
move some init work into initcalls
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
4b34297cfb
Get rid of remaining DEVICE_TYPE_* usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
6459b135d9
Get rid of DEVICE_TYPE_FS usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
8a1d5e11bb
Get rid of DEVICE_TYPE_DRAM usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
Sascha Hauer
bac65c6cde
net: Get rid of DEVICE_TYPE_ETHER usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
Sascha Hauer
a2b7cd183b
introduce cdev
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:44 +02:00
Eric Benard
ca326e8882
Fix 2k page size NAND for iMX27
...
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-16 09:46:34 +02:00
Luotao Fu
50cbe3e0fc
IMX regression: fix GPIO_DR usage
...
GPIO_DR ist defined already as GPIO_GPIO in imx-regs.h. There's no need to
define archdependent GPIO_DR. This one fixes a regression brought in by
d5ec92129e
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-08 12:27:56 +02:00
Juergen Beisert
5139e618b8
Add basic architecture support for Samsung's S3C2410 and S3C2440 CPU.
...
It includes a
- driver for the internal UART
- driver for the internal NAND controller
- support to boot from NAND
- PLL handling
- SDRAM initialisation
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:36:40 +02:00
Juergen Beisert
0868fe5747
Restrict the ARM architecture to use only one set of I/O functions.
...
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:36:23 +02:00
Juergen Beisert
cd175ec7d2
Remove all ARM __raw_* functions. They are mixed all over
...
the place. This clean up all ARM architectures to use only one set
of io functions.
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:35:35 +02:00
Sascha Hauer
18e49f7470
Merge branch 'master' of /ptx/work/octopus/lfu/svn/u-boot-v2
2009-06-26 11:55:42 +02:00
Luotao Fu
d5ec92129e
mx2: add gpio direction/value setting calls
...
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
2009-06-25 16:20:26 +02:00
Sascha Hauer
d1a54ab5c4
vsprintf: Update to latest kernel version
...
This adds a function to print into a malloced string
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:55:07 +02:00
Sascha Hauer
505d65fc5c
add *_MAX and *_MIN macros
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:54:42 +02:00
Sascha Hauer
8bd42496f7
mtd: Replace DEBUG by MTD_DEBUG
...
DEBUG is already used for another purpose by U-Boot
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:54:37 +02:00
Wolfram Sang
bc4492252e
Refactor imx-NAND-init
...
Put board specific stuff to board-specific files.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2009-06-04 10:31:14 +02:00
Sascha Hauer
614830c8fd
add .gitignore to include/asm-arm/
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-25 16:53:36 +02:00
Sascha Hauer
0f64e5c39d
add strerror function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-25 16:52:35 +02:00
Sascha Hauer
3658177775
i.MX35: Add iomux support from kernel
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-19 12:30:42 +02:00
Marc Kleine-Budde
6f61b3f34d
[miiphy] just whitespace cleanups
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-19 09:32:02 +02:00
Marc Kleine-Budde
c18c577722
[mac] add force link support
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-18 16:20:04 +02:00
Marc Kleine-Budde
4a770377d1
[miiphy] add feature to force link present
...
If a NIC's MII isn't connected to a PHY but directly to a switch port,
the switch doesn't sent a link signal to the NIC. (Because strictly
speaking, there isn't any ethernet link at all.)
This patch adds a force link feature to the phy, to cope with this
situation.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-18 16:20:04 +02:00
Marc Kleine-Budde
26a8987c46
[macb] add MII flag, improve code readability
...
This patch adds the flag "AT91SAM_ETHER_MII" along to the existing
"AT91SAM_ETHER_RMII". This improves code readability in baords which
are using plain MII mode.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-05-18 16:20:04 +02:00
Sascha Hauer
06a20b38f8
Add notifier framework
...
This is loosely based on the Linux notifier framework, but
stripped down to the bare minimum.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-13 16:00:11 +02:00
Sascha Hauer
b548da81fe
Add usb include files missing from USB merge
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-08 12:30:16 +02:00
Sascha Hauer
277b605eae
USB support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:56:22 +02:00
Sascha Hauer
e97918fbf1
miiphy: add miiphy_unregister function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
2230eea29b
net: add eth_unregister function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
4511a8873b
we need different bus types
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
03c2189aa8
initial USB support imported from U-Boot-1
...
imported from commit bd76729bcbfd64b5d016a9b936f058931fc06eaf.
Only minor changes to make it compile.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Ivo Clarysse
fcfbd10d3c
Add Freescale i.MX21 support
...
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 08:55:04 +02:00
Sascha Hauer
7703263340
fix dev_* macros
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:22:28 +02:00
Sascha Hauer
f3524c8984
i.MX31:
...
Rework iomux support for i.MX31:
- rename gpio-imx31.c to iomux-v2.c
- add pin definitions from Kernel
- fixup pcm037 board
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:21:28 +02:00
Sascha Hauer
b4b94664f0
i.MX31: add OTG base address
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:21:02 +02:00
Sascha Hauer
f090bca2d8
add __[lb]e types
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:12:54 +02:00
Sascha Hauer
2672196646
fix pr_debug
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:12:29 +02:00
Sascha Hauer
8b75c20a41
add clko support for i.mx35
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 18:23:57 +01:00
Sascha Hauer
8a2e721fc5
Flush consoles before exiting
...
We use FIFOs on some devices, so flush them before exiting so
we do not get funny characters in the output.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:24 +01:00
Sascha Hauer
0b5a776c1e
Shutdown U-Boot before starting an OS
...
Some devices, especially the ones doing DMA should be disabled before
giving control to an OS. We take the simple approach here: Just shutdown
the devices in the reverse order they were activated.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:18 +01:00
Sascha Hauer
36ae69a2dc
remove unused stuff from include/common.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:13 +01:00
Sascha Hauer
309a75baaf
i.MX use fecclk for fec and gtpclk for gpt
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:28:38 +01:00
Sascha Hauer
1e20d6bc20
fec imx27: Add RMII support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:24 +01:00
Sascha Hauer
370f550107
fec imx27: configure phy address from platform data
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:25:16 +01:00
Sascha Hauer
3a84dd9bac
include/malloc.h: add multiple inclusion protection
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:24:45 +01:00
Sascha Hauer
612c27f97e
ARM: Add cache-l2x0 definitions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-06 14:44:46 +01:00
Sascha Hauer
bee65f0d3f
[ARM] Add MX35 support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-06 14:44:46 +01:00
Sascha Hauer
b3f3ca075d
[MX31] Clock Controller module: redefine registers as offsets
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-30 12:20:10 +01:00
Sascha Hauer
9995a8caf5
ARM: update mach-types.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-30 12:08:46 +01:00
Sascha Hauer
9e00177172
[MX31] Use common PLL defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-30 12:08:43 +01:00
Sascha Hauer
4d19a68f35
[MX27] use common PLL defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-30 12:07:23 +01:00
Sascha Hauer
4aae146bee
[i.MX] Add header file for PLL registers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-30 12:07:23 +01:00
Sascha Hauer
1a3c1d3de1
i.MX: introduce imx_get_uartclk function
...
We need this function for MX35 support since the uart clock is not
equal to perclk1 anymore. Uh, it's really time to implement some
real clock API instead of this cruft.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-13 14:30:56 +01:00
Sascha Hauer
5ccd3fd093
MX27/MX3: Move common SDRAM Controller bits to extra file
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-12-19 12:00:25 +01:00
fredo
954f52d605
correct warning
...
Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
2008-12-18 14:20:08 +01:00
Nishanth Menon
7e9bb400cf
ARM:io - fix iomem define
...
__iomem define is required to use io.h
this define is present in mtd_compat OR
in compiler.h. using compiler.h as being
generic
Signed-off-by: Nishanth Menon <nm@ti.com>
2008-12-09 11:26:27 +01:00
Sascha Hauer
87d4b9ec09
[AT9SAM] implement different ECC modes for NAND chips
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-10-31 14:04:42 +01:00
Sascha Hauer
c3fc1364d9
Introduce dev_* and pr_* functions
...
Proven to be useful in linux kernel, U-Boot should have such a thing
aswell. We do not distinguish between the various print levels others
than debug and not debug.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-10-31 14:02:25 +01:00
Sascha Hauer
baa33bd4e2
GPIO support
...
adopted Linux gpio code. Implemented for at91sam9. No gpiolib support
yet.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-10-27 17:29:57 +01:00
Marc Kleine-Budde
27a7de44ee
[at91sam9] Nand driver
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-10-27 17:29:29 +01:00
Marc Kleine-Budde
5482395b9e
import io-{read,write}s{b,w} functions from linux
...
This patch imports:
- io-readsb,
- io-readsw,
- io-writesb,
- io-writesw,
from linux
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-10-27 12:18:25 +01:00
Nishanth Menon
e9976b7268
OMAP: Add GPMC NAND support
...
This patch adds support for a generic GPMC driver
also a GPMC controller driver to allow platforms
to add NAND devices generically.
Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-09-15 10:11:05 +02:00
Sascha Hauer
a288018b6f
pcm038: implement better waiting for PLLs
...
Instead of using a trivial counting loop we poll the 32KHz oscillator
to wait for the PLLs to stabilize
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-09 14:13:59 +02:00
Sascha Hauer
dd7a74db87
ARM bitops: fix for arm arch < 5
...
The correct bitops implementation depends on __LINUX_ARM_ARCH__ being
set. We do not currently support this variable. Change the default case
to < armv5, so that we do not end up with clz instructions in v4 code.
This is actually a workaround, the correct solution is to set
__LINUX_ARM_ARCH__ correctly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-02 15:38:46 +02:00
Sascha Hauer
b8efcd997f
ARM: update mach-types
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-02 09:24:19 +02:00
Sascha Hauer
d85e73776a
envfs: remove bogus #warning statement
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-26 11:40:51 +02:00
Sascha Hauer
8ec84b8673
AT91SAM: Use Atmel header files from their Bootstrap code (ver 1.9)
...
The header files are neither small nor beautiful, but they are complete ;)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-26 11:40:45 +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
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
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
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
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
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
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
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
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
c5934b3a8b
imx27: Add BOOT bitfield definitions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
e33ff403f3
remove unused include file
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
bbee767a01
init: add section for early code
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
e90e319aeb
Add i.MX NAND driver
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
72314f26d6
i.MX27: Add NAND Flash Controller base address
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
d9af366450
NAND: Add updated NAND support from Kernel
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
a131b1abc3
Add new device types for NAND
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer
12f00ac59c
add include/linux/kernel.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:09 +02:00
Sascha Hauer
8b9dd936e8
Add include/linux/err.h from Kernel
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:41:22 +02:00
Sascha Hauer
31cb2f0347
add wrapper macros for easier inclusion of kernel code
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:41:22 +02:00
Sascha Hauer
4c01ac2e0e
clocK: Add ndelay function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:41:22 +02:00
Sascha Hauer
2db67353f3
add compiler header files from kernel
...
Add include/linux/compiler*.h from Linux Kernel and remove old
include/compiler.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:41:17 +02:00
Sascha Hauer
9ce10ee66e
PPC: need memset in elf.h
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:30 +02:00
Sascha Hauer
f043f32b82
partition: Add dummy dev_add_partition when partitions are disabled
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:26 +02:00
Sascha Hauer
932b57873d
move several commands into extra files
...
move false, true, help, insmod, lsmod, version into extra files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:17 +02:00
Sascha Hauer
74874be56a
[AT91sam]: Add definitions for at91sam9263
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-01 11:59:44 +02:00
Sascha Hauer
c10e20846d
at91sam ether: Make more configurable via platform_data
...
Pass RMII and phy address via platform data rather than hardcoded.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-01 11:33:12 +02:00
Sascha Hauer
b28943274b
[ppc] include string.h in include/asm-ppc/elf.h, needed for memset
2008-07-03 10:32:08 +02:00
Sascha Hauer
a91979a87d
oops
2008-06-06 09:37:44 +02:00
Sascha Hauer
ee6d36a540
- introduce ioctl call
...
- pass open/close/lseek through to drivers
2008-06-06 09:30:48 +02:00
Sascha Hauer
3d45abb7c4
[NAND] continue to make it work. Now works partly on at91sam9260
2008-06-06 09:30:39 +02:00
Sascha Hauer
f3351ebd78
add basic at91sam9260 support. Currently only second stage
...
bootloader is supported:
- No SDRAM initialisation
- No UART init / baudrate change
2008-06-06 09:30:32 +02:00
Nishanth Menon
03f9461862
014-OMAP-add-mux-header
...
[Patch 14/17] U-Boot-V2:ARM:OMAP3: Add mux Header
This patch adds the OMAP3 mux header.
Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:43 +02:00
Nishanth Menon
9cca7cf662
013-OMAP-add-silicon-headers
...
[Patch 13/17] U-Boot-V2:ARM:OMAP3: Add generic Headers
This patch adds the generic OMAP headers and OMAP specific headers.
Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:42 +02:00
Nishanth Menon
c6ed31bbc4
012-OMAP-add-silicon-part2
...
[Patch 12/17] U-Boot-V2:ARM:OMAP3: Add support for OMAP3 Silicon files
This patch introduces support for OMAP3430 clocking infrastructure. Please note that SRAM based configuration requires GPMC values to be updated before returning to caller- TBD.
Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:42 +02:00
Nishanth Menon
cd008fb265
009-add-NS16550
...
[Patch 09/17] U-Boot-V2:Serial: Add support for NS16550 Driver.
This introduces support for NS16550 and related OMAP support. This driver is a port from Uboot v1 driver from OMAP's Uboot tree.
OMAP U-Boot V1 source is available here: http://linux.omap.com/pub/bootloader/3430sdp/u-boot-v1.tar.gz
Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:21 +02:00
Sascha Hauer
596c845072
[memory layout]: streamline memory layout
...
Memory layout can now be specified via kconfig options. Two
possibilities exist: default layout means the layout is stack
/ malloc heap / U-Boot. The user can also specify fixed addresses
for each TEXT_BASE / stack / malloc heap.
2008-06-04 11:54:03 +02:00
Sascha Hauer
beaab972f8
hardcode _FILE_OFFSET_BITS to 32
2008-06-03 13:34:45 +02:00
Sascha Hauer
9d0662bc0a
net.h: no need to put extern declarations in ifdefs
2008-06-03 13:33:22 +02:00
Sascha Hauer
aa2111e257
fix warnings in malloc code introduced by last commits
2008-06-03 13:30:38 +02:00
Sascha Hauer
dabec3a7a1
Merge branch 'master' of git://www.denx.de/git/u-boot-v2
2008-06-02 16:13:14 +02:00
Menon, Nishanth
22d3dc0d27
[arm] remove unsused sections while linking
2008-05-12 15:52:23 +02:00
Sascha Hauer
c3ec6a862c
[cramfs] fix compiler warning about undefined __LITTLE_ENDIAN
2008-04-07 12:19:36 +02:00
Sascha Hauer
9c7d282579
[general] Move include/configs/* to board/*/config.h
2008-04-07 12:18:05 +02:00
Sascha Hauer
5b671e9611
remove unused mx1ads.h
2008-04-07 11:24:26 +02:00
Sascha Hauer
f27462d6df
remove currently unused lcd.h
2008-04-07 11:23:32 +02:00
Sascha Hauer
ae6cc2d36b
[m68k] Add Freescale Coldfire V4E Architecture support
...
- Added m68k vector, exception & interrupt handlers
- Added m68k macros to access m68k movec registers
- Added Coldfire support code (MultiChannelDMA)
- Added board support for phytec phyCore-MCF baseboard
- Added board support for konzeptpark MCB2 prototype
Signed-off-by: Carsten Schlote <schlote@vahanus.net>
2008-04-04 18:16:06 +02:00
Sascha Hauer
50cc8c5412
Subject: [PATCH] [general] Fixed constant strings in data section issue
...
For practical reasons I changed all string literals assumed to be constant
to reside in .rodata subsection at end of .text section.
Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer
a9912f68c6
Fixed orphaned CONFIG_INTERRUPTS
...
replace remaining CONFIG_INTERRUPTS with CONFIG_USE_IRQ
Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer
839aaaf9ef
add protection from double inclusion in string.h
2008-03-31 21:55:34 +02:00
Sascha Hauer
c2d756b84b
add CSPI1 GPIO defines
2008-03-14 13:05:29 +01:00
Sascha Hauer
a14a5c02f0
first (partly) running spi support
2008-03-14 12:59:55 +01:00
Sascha Hauer
906eea397a
beginning of SPI support
2008-03-11 22:13:06 +01:00
Sascha Hauer
1871125c56
add several SDRAM Controller and PLL related register defintions
...
to imx27-regs.h
2008-03-11 21:59:26 +01:00
Sascha Hauer
ce172e152e
add ls -c and -l
2008-03-11 21:41:56 +01:00
Sascha Hauer
f5a9246875
use newly introduced stringlist functions for tab completion
2008-03-11 21:40:40 +01:00
Sascha Hauer
8f35e16333
add stringlist function. They can be used to build a list
...
of strings. For now mainly useful to print the resulting
list in columns which is used in tab completion and ls.
2008-03-11 21:38:22 +01:00