Commit Graph

12222 Commits

Author SHA1 Message Date
Marcin Mielczarczyk 57d77b82a3 sciphone_g2: ENV in NAND and MTD partitions
This patch configures U-Boot's environment to be placed in NAND and
adds MTD partitions support.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin Mielczarczyk 37d226f1e9 sciphone_g2: Support for saving BBT in NAND
This implementation allows U-Boot to save BBT table in NAND.
Without this option BBT table is created everytime when first nand
command is executed (except "nand dump"). Full scanning of NAND
takes long time and unnecessarily delays start of platform.
NOTE! This option is disabled by defaut as at startup it deletes last
two blocks of NAND. Most of people run code from RAM and don't have
NAND memory dumped yet. If you don't like to wait on first nand
command, you should define MT62XX_NAND_BBT_IN_NAND.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin Mielczarczyk 0e81308435 sciphone_g2: MT62xx boot header generator
This tool generates boot header which is parsed by IPL (Internal Program
Loader). Generated boot header is placed at the begining of given
binary file.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin Mielczarczyk f920a1e2fe sciphone_g2: NAND SPL functionality added
Implementation of Secondary Program Loader which loads U-Boot
from NAND memory to SDRAM memory. SBL is loaded by IPL
(Initial Program Loader) at processor startup.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin Mielczarczyk 171c69aa43 sciphone_g2: ARM926EJS preloader BSS fix
Even in preloader configuration BSS section should be cleared,
otherwise initialized variables will have wrong values.
Relocation symbols are not available in SBL configuration and
should be not included.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin Mielczarczyk a025f73fd7 sciphone_g2: Support for NAND with HW ECC
Implementation of MT62xx NAND controller (NFI) which supports
large page devices and small page devices. It also enables
hardware ECC control.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
2011-02-17 07:08:17 +01:00
Marcin 254b41cd0c sciphone_g2: Changed load address
Loading U-Boot code at low addresses (begining of RAM) can cause problem.
Function get_ram_size() detects size of RAM writing pattern
between 256MB and 0MB. It takes highest address and divides
it by 2 on every iteration. It's possible that this function will
destroy code which is executed at the moment (writing detection pattern).
U-Boot will probably not occupy more than 2MB, so it's safe to
load code between 4MB and 8MB (excluding 0x400000 and 0x800000).
Loading U-Boot at address 0x500000 eliminates problem with get_ram_size()
function.

Signed-off-by: Marcin <marcin.mielczarczyk@gmail.com>
2011-02-17 07:08:16 +01:00
Krzysztof Antonowicz 6ef4ec129b sciphone_g2: Added support for SD/MMC memory cards.
Driver for MSDC controller added to U-boot.

Signed-off-by: Krzysztof Antonowicz <krzysztof.antonowicz@gmail.com>
2011-02-17 07:08:16 +01:00
Marcin Mielczarczyk a4361519f6 sciphone_g2: Added support for Sciphone G2
Added support for Sciphone G2 mobile phone based on MT6235.

Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@gmail.com>
2011-02-17 07:08:16 +01:00
Yoshihiro Shimoda efb063390d add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env
Fix the problem which cannot build the U-boot, if we only set
the CONFIG_ENV_IS_IN_SPI_FLASH.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2011-02-15 22:09:50 +01:00
Nobuhiro Iwamatsu 327f55c6da net: ne2000: Add spport RTL-8019AS
Add infomation of RTL-8016AS to hw_info.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Ben Warren <biggerbadderben@gmail.com>
2011-02-15 21:55:41 +01:00
Wolfgang Denk 67fb0622a9 unzip: return uncompressed size in `filesize', and print it.
The unzip command did not provide a way for the caller to get any
information about the uncompressed size.  To make it better usable in
scripts, we now store the uncompressed size in the `filesize'
variable, like we do when for example loading a file over the network
or when reading it from a file system.  Following that analogy, it is
only consequent to also print the size.

Signed-off-by: Wolfgang Denk <wd@denx.de>
2011-02-15 21:46:39 +01:00
Wolfgang Denk cc22b795fb itest: fix result of string compares
The implementation of the string compare function of the "itest"
command was weird, as only the length of the shortest argument was
included in the compare, with the result that something like
"itest.s abd == abddef" would return TRUE.  Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
2011-02-15 21:45:55 +01:00
Michal Simek 518075fc6a microblaze: Fix msr handling in interrupt_handler
Fix ancient code which worked with MSR in a bad way.
Use rtid instruction which enable IRQs and jump.

Signed-off-by: Michal Simek <monstr@monstr.eu>
2011-02-15 15:13:24 +01:00
Michal Simek b777a37c29 microblaze: Fix systems with MSR=0
u-boot BSP generates XILINX_USE_MSR_INSTR macro
even for system with MSR=0. That's why explicitly
check that MSR=1.

Signed-off-by: Michal Simek <monstr@monstr.eu>
2011-02-15 15:13:24 +01:00
Wolfgang Denk c65715de78 Merge branch 'master' of git://git.denx.de/u-boot-mips 2011-02-12 20:37:47 +01:00
Graeme Russ 8b1a714013 eNET: Move initial Global Data into CAR 2011-02-12 15:12:14 +11:00
Graeme Russ 6002bf03b4 sc520: Release CAR and enable caching 2011-02-12 15:12:12 +11:00
Graeme Russ e4f78d78d7 x86: Convert board_init_f to use an init_sequence 2011-02-12 15:12:10 +11:00
Graeme Russ a3824142e7 x86: Rearrange function calls in board_init_f 2011-02-12 15:12:08 +11:00
Graeme Russ 71a5404974 x86: Split board_init_f() into init_fnc_t compatible functions 2011-02-12 15:12:06 +11:00
Graeme Russ 5fed82110d x86: Fix incorrect usage of relocation offset
x86 has always used relocation offset in the opposite sense to the ELF
standard - Fix this
2011-02-12 15:12:05 +11:00
Graeme Russ 0b2378557c x86: Move console initialisation into board_init_f 2011-02-12 15:12:03 +11:00
Graeme Russ bf6af154a4 x86: Move test for cold boot into init functions 2011-02-12 15:12:01 +11:00
Graeme Russ c869e2ac46 x86: Move call to dram_init_f into board_init_f 2011-02-12 15:11:59 +11:00
Graeme Russ fb0029088e x86: Defer setup of final stack 2011-02-12 15:11:58 +11:00
Graeme Russ 96cd66426a sc520: Move RAM sizing code from asm to C 2011-02-12 15:11:54 +11:00
Graeme Russ ed4cba79d6 x86: Use Cache-As-RAM for initial stack 2011-02-12 15:11:52 +11:00
Graeme Russ 2e2613d2c4 x86: Move initial gd to fixed location 2011-02-12 15:11:50 +11:00
Graeme Russ cfbe861506 eNET: General code cleanup 2011-02-12 15:11:48 +11:00
Graeme Russ c083e4bab1 eNET: Rearrange PAR assignments 2011-02-12 15:11:47 +11:00
Graeme Russ 420c7c054b eNET: Define MMCR values in config.h 2011-02-12 15:11:45 +11:00
Graeme Russ 218310018a eNET: Add RTC support to eNET
The SC520 has an inbuilt MC146818 - Enable it for the eNET board
2011-02-12 15:11:43 +11:00
Graeme Russ d881ea532b eNET: Fix eNET Interrupt Setup for Linux
Fix minor issues with the configuration of the hardware interrupts for
Linux when booting the eNET board
2011-02-12 15:11:41 +11:00
Graeme Russ 6d0cb34954 sc520: Remove printf calls from cpu_init_f
In later patches, cpu_init_f will be called before console has been
initialised and printf will not be legitimately available
2011-02-12 15:11:40 +11:00
Graeme Russ 870847f5c5 sc520: Move board specific settings to board init function 2011-02-12 15:11:38 +11:00
Graeme Russ c2cbbaf0b4 sc520: Define MMCR address in include file 2011-02-12 15:11:36 +11:00
Graeme Russ 0ea76e92e9 x86: Make cpu init functions weak 2011-02-12 15:11:35 +11:00
Graeme Russ 4e33467d44 x86: Call early_board_init when warm booting
early_board_init has been skipped to avoid SDRAM corruption in the case
that a fully relocatable image has been loaded into SDRAM and is being
executed from SDRAM. x86 is being aligned with other architectures (ARM
and PPC in particlar) and will be using Cache-As-RAM to run a C
environment from Flash (or SRAM if you have some). early_board_init may
be needed to assist in the setup of Cache-As-RAM and the early C
environment
2011-02-12 15:11:33 +11:00
Graeme Russ 0c24c9cc71 x86: Add processor flags header from linux 2011-02-12 15:11:32 +11:00
Graeme Russ c53fd2bb6d x86: Move Global Descriptor Table defines to processor.h 2011-02-12 15:11:30 +11:00
Graeme Russ ca56a4ceec x86: Add stack dump to register dump 2011-02-12 15:11:28 +11:00
Graeme Russ 9963a8216e x86: Fix mangled umlauts
git mergetool has a nasty habit of mangling umlats - fix ones that have
been missed in previous submissions
2011-02-12 15:11:26 +11:00
Graeme Russ 0640e40272 sc520: Sort Makefile 2011-02-12 15:11:25 +11:00
Graeme Russ 3a25e94410 x86: Parametize values used in linker script 2011-02-12 15:11:24 +11:00
Graeme Russ fde5912366 eNET: Create distinct board configurations
Position independant functionality is due for removal from the x86
architecture, so create two distinct configurations - One for Flash and
one for SRAM
2011-02-12 15:11:22 +11:00
Graeme Russ a85f53cd3f x86: Align config.mk and linker scripts with other arches 2011-02-12 15:11:21 +11:00
Graeme Russ de47cbe686 x86: Fix definition of global_data struct for asm-offsets.c 2011-02-12 15:11:21 +11:00
Wolfgang Denk d1a79b71f7 Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2011-02-11 21:23:33 +01:00
York Sun 856e4b0d7f powerpc/8xxx: Add additional cycle to write-to-read turnaound for DDR3
When DDR data rate is higher than 1200MT/s or controller interleaving is
enabled, additional cycle for write-to-read turnaround is needed to satisfy
dynamic ODT timing.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-02-10 23:40:02 -06:00