9
0
Fork 0
Commit Graph

162 Commits

Author SHA1 Message Date
Sascha Hauer 146a7fe4a2 Merge branch 'work/uimage' into next
Conflicts:
	arch/ppc/lib/ppclinux.c
	commands/bootm.c
	include/boot.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-17 16:33:57 +01:00
Sascha Hauer 84fd8a956c Merge branch 'pu/ppc-oftree' into next 2011-12-15 20:12:32 +01:00
Sascha Hauer 14aac3f197 remove old ft_build support
This is unused now as its only user (ppc) is switched to
libfdt based oftree support"

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 20:11:48 +01:00
Sascha Hauer 609c4a988c ppc: switch to libfdt based oftree implementation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 20:11:47 +01:00
Sascha Hauer 07fc87d530 ppc pcm030: Move memory registration to mem_initcall
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 20:11:35 +01:00
Sascha Hauer 8f69f2ebf2 pcm030: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 20:11:28 +01:00
Sascha Hauer bed937b1b3 ppc pcm030: Fix device resource sizes
The device resources are much smaller, the resource mechanism
revealed this because of overlapping devices.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 20:11:24 +01:00
Sascha Hauer fc72640247 remove unused watchdog header
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 11:46:50 +01:00
Sascha Hauer d4e5c6b8a0 bootm: use new uimage code
This switches the bootm code to the new uimage code. Also
bootm can now handle other types of images than uImages.
Currently the only architecture making use of this is
arm which allows to boot zImages, raw images and barebox
images.
I intended to make a more bisectable series from this but
I failed becuase there are many dependencies and no matter
how I tried the patches grew bigger and and bigger. So I
decided to put this all in a single patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 11:07:11 +01:00
Sascha Hauer a746f4685a remove old ft_build support
This is unused now as its only user (ppc) is switched to
libfdt based oftree support"

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-14 13:40:17 +01:00
Sascha Hauer a46098b1d1 ppc: switch to libfdt based oftree implementation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-14 13:40:17 +01:00
Sascha Hauer 58a0dde1f7 ppc pcm030: Move memory registration to mem_initcall
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-14 13:40:17 +01:00
Sascha Hauer 7b9d903a20 pcm030: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-14 13:40:16 +01:00
Sascha Hauer 3505465f64 ppc pcm030: Fix device resource sizes
The device resources are much smaller, the resource mechanism
revealed this because of overlapping devices.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-14 13:40:16 +01:00
Sascha Hauer 0ee6847f7b Merge branch 'next' 2011-12-07 12:03:13 +01:00
Sascha Hauer 3fd9020731 ppc mpc5200: remove unused variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-07 11:43:30 +01:00
Sascha Hauer 70f7691d41 fix malloc space sizes
end is start + size - 1, not start + size.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-03 10:09:29 +01:00
Sascha Hauer 351058fa51 bootm: push relocate_image up to the generic command
All handlers used to just relocate the image without any checks, so
we are doomed if we write outside of SDRAM or will overwrite ourselves.
Move the relocation up to the generic part where we have a chance
of catching these issues.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-29 20:59:56 +01:00
Sascha Hauer 7631e76c0b Merge branch 'work/magicvars' into next 2011-11-29 20:52:03 +01:00
Sascha Hauer 020a30be0d add magicvar command
The magicvar command gives an overview about all environment variables
with a special meaning.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-29 20:51:31 +01:00
Sascha Hauer 38884dabbe remove irq support fragments
We never had interrupt support in barebox and we have no plans to
add interrupt support. Even if we do I doubt the current fragments
of irq support are helpful, so remove them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-28 11:41:33 +01:00
Sascha Hauer 6b8503baab Merge branch 'master' into next 2011-10-23 13:38:39 +02:00
Loïc Minier 4e26fba680 Only pass -P to cpp when generating ld scripts
When building sandbox with ccache, one would hit warnings such as:
    warning: 'struct mmsghdr' declared inside parameter list
on random files; a way to reproduce this issue is to build a simple
file doing just:
    #include <sys/socket.h>

    int main(void) {
        return 0;
    }

    gcc -Wall -P -c -o foo foo.c

But actually the -P flag is only useful when generating non-C files,
such as linker scripts in the case of barebox.  Removing the -P flag
from all the gcc invocations, except when generating .lds files makes
the warning go away.  It turns out that this is what
linux/scripts/Makefile.build also does nowadays.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-18 09:18:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4ac3a1f9e0 move digest to crypto/
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-12 08:52:48 +02:00
Sascha Hauer 0e811d11a6 ppc common.h: remove unused function declarations
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 11:54:11 +02:00
Sascha Hauer a97e68d6dd ppc mpc5200: remove various board specific register setup from generic code
The boards can do this themselves, no need for ifdef orgies.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 11:51:58 +02:00
Sascha Hauer 14da1c7e65 ppc mpc5200: remove cs setup from cpu_init
If a board wishes to setup a chipselect, it can use mpc5200_setup_cs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 11:51:53 +02:00
Sascha Hauer 5e50ab4ff5 pcm030: cleanup config.h
Remove several now unnecessary defines.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:33 +02:00
Sascha Hauer 7c949330cc ppc mpc5200: remove bus clock switching from generic code
The only user (pcm030) already setups the bus clocks in
its board code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:33 +02:00
Sascha Hauer 1c4a5d24a1 pcm030: fix /dev/self0 and /dev/env0
/dev/self0 and /dev/env0 are in the last MB of nor flash. The
offset depends on the size of the flash, so detect this at
runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:33 +02:00
Sascha Hauer b349565fdc mpc5200: hardcode internal sram for initram
Why should we use other ram? No need to configure this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:33 +02:00
Sascha Hauer 06d375b0db mpc5200: hardcode MBAR to 0xf0000000
We use 0xf0000000 in barebox, no need to configure this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:32 +02:00
Sascha Hauer e1278becb3 ppc: hardcode sdram base to 0x0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:32 +02:00
Sascha Hauer 569a24bb07 pcm030: use new functionality
We introduced several new functions to ease our life
on ppc, use themn on the pcm030:

- setup iomux and bus clocks in board code
- add sdram memory according to detected size

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:32 +02:00
Sascha Hauer 1c9c937a6a ppc mpc5200b: cleanup lowlevel startup
The old startup process consisted of several CFG_LOWBOOT,
CFG_RAMBOOT ifdeffery which I do not understand. So remove
all this and replace it with:

- put the entry point for second stage loaders to offset 0x0
  so that we can do a go /dev/ram0 to start a second barebox
- When we come from the reset vector assume MBAR is at 0x80000000
- When we come from the second stage entry assume that
  SPR 311 is in sync with the current MBAR address.
- Switch MBAR to 0xf0000000 and we are done.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:32 +02:00
Sascha Hauer c9fc3626fd ppc mpc5200: add function to setup bus clocks
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:32 +02:00
Sascha Hauer bc1969658b ppc mpc5200: add function to configure a chipselect
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:31 +02:00
Sascha Hauer 0c638571f0 ppc mpc5200: add function to determine configured sdram size
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:31 +02:00
Sascha Hauer d01070c8af remove EARLY_INIT and EARLY_CONSOLE support
Bitrotted over time and nearly unused, so remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 10:27:18 +02:00
Sascha Hauer bbbfb9f4f8 ppc: add a get_pc() function
Useful to determine whether sdram has to be setup or not.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 09:44:54 +02:00
Sascha Hauer 9ff0bf82ad ppc: remove mgt5100 support from code
This has never been used in barebox and likely is incomplete
and bitrotted over time, so remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-27 09:44:17 +02:00
Sascha Hauer 0fc7fb6b4f rename include/mem_malloc.h to include/memory.h
Which is a better name and also better to collect other
things.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-23 16:32:48 +02:00
Sascha Hauer a20a3957a9 ppc pcm030: remove puts in early init
puts does not work at this stage, so remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-23 16:32:48 +02:00
Sascha Hauer 3ee7877a48 introduce io.h
To allow for some generic io accessors introduce io.h and use
this instead of asm/io.h throughout the tree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-22 19:03:05 +02:00
Sascha Hauer 628434ae50 Merge branch 'pu-remove-gd_t' into next 2011-08-03 09:20:29 +02:00
Sascha Hauer 147affbd8d remove unused global_data.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 12:00:59 +02:00
Jean-Christophe PLAGNIOL-VILLARD 08cdbd3ae3 pcm030: switch to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Sascha Hauer ffcf536cef Merge branch 'pu' into next 2011-07-29 12:03:40 +02:00
Andre Naujoks 4cc463f942 barebox compilation with gcc 4.5.2 and ptxdist
From 9b3985045da1161a934cba48749fe1759e62dae6 Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:29:43 +0200
Subject: [PATCH 2/2] Ported ppc ashrdi3 from linux kernel

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00
Andre Naujoks 0947b2edd5 barebox compilation with gcc 4.5.2 and ptxdist
From c479527616c5fc79c608e21573373a5a324f6e9b Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:28:35 +0200
Subject: [PATCH 1/2] Ported crtsavres from linux kernel to barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00