9
0
Fork 0
Commit Graph

1610 Commits

Author SHA1 Message Date
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
Sascha Hauer 8759e68de2 Add the possibility to have an architecture specific ctrlc() function.
This allows us to return immediately in ctrlc() on sandbox and thus
not slow down network througput.
2008-03-11 00:00:37 +01:00
Sascha Hauer 187847b2b4 add globbing support 2008-03-09 22:35:38 +01:00
Sascha Hauer 1a8e0f589f add armlinux.h 2008-03-01 22:47:46 +01:00
Sascha Hauer c0770312bc remove traces of old tab completion 2008-03-01 22:47:06 +01:00
Sascha Hauer df31bb46be implement TAB completion 2008-03-01 21:08:14 +01:00
Sascha Hauer a1a747af7f fix typo 2008-03-01 21:06:14 +01:00
Sascha Hauer 8d8f900366 [ARM] Remove CONFIG_ARCH_NUMBER from Kconfig system. Putting too many
values into kconfig which are not user configurable at all only
      encourages people to put even more stuff in there. This is not
      good because people tend to have board patches lying around and
      these patches won't apply regularly if they all change the same
      file (arch/arm/Kconfig)
      Instead, introduce a function armlinux_set_architecture() which
      everyone can call during board setup.
      Similarly introduce armlinux_set_bootparams() for the boot
      parameter pointer.
2008-02-26 15:38:37 +01:00
Sascha Hauer 066ac7abdb [CFI driver] add missing flash protection for new driver 2008-02-26 11:55:41 +01:00
Sascha Hauer 3d3c13d8f8 [CFI Driver] - Update Kconfig help texts
- Turn switch/case into if/else to be able to optimize out
	       unused code when not all bankwidths are needed
2008-02-26 11:28:55 +01:00
Sascha Hauer 51c840cd18 [CFI driver] For some Spansion flashes we have to write the
AMD_CMD_WRITE_TO_BUFFER command to the destination
	     address of the buffer write and not to the sector
	     beginning. Linux mtd does this as default, so I
	     assume this should work for other flashes aswell.
	     Reorder functions so that this change fits in nicely.
2008-02-26 10:32:25 +01:00
Sascha Hauer 7f88a7844c [CFI FLASH] Make the 'new' driver compile again and reorder functions to
get rid of static function declarations.
2008-02-25 18:41:25 +01:00
Sascha Hauer fa052abb64 add missing include 2008-02-20 19:07:47 +01:00
Sascha Hauer 9beb36884b [ARM] Remove ARCH_NUMBERs from config.h and put them into Kconfig 2008-02-20 19:03:24 +01:00
Sascha Hauer f95ec8a32d - Add functions to register image handlers for booting uImages 2008-02-20 19:01:54 +01:00
Sascha Hauer 8d4e06d3d5 [mpc5200 fec] revert to some old version (somehow my play version got into the
repository). Runtime tested on pcm030
2008-02-20 17:48:31 +01:00
Sascha Hauer 7b4e9c4a82 [i.MX]: Basic board support for the Freescale i.MX27 eval board 2008-02-19 15:59:37 +01:00