diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:09 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:09 +0200 |
commit | a71ce0c1891c07efc63b14664e15d57427509922 (patch) | |
tree | df8eae579b6ef5a160c78a4f48fa72b231451977 | |
parent | cd59a601014ce1121c51bd58901fa865975d8b5f (diff) | |
download | barebox-a71ce0c1891c07efc63b14664e15d57427509922.tar.gz barebox-a71ce0c1891c07efc63b14664e15d57427509922.tar.xz |
svn_rev_602
-rw-r--r-- | board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c index e99e5f1adc..4e622422e6 100644 --- a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c +++ b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c @@ -35,6 +35,8 @@ #include <pci.h> #include <asm/arch/fec.h> #include <types.h> +#include <partition.h> +#include <mem_malloc.h> #ifdef CONFIG_VIDEO_OPENIP #include <openip.h> @@ -59,6 +61,14 @@ struct device_d sdram_dev = { .map_base = 0x0, .size = 64 * 1024 * 1024, + + .type = DEVICE_TYPE_DRAM, +}; + +struct device_d scratch_dev = { + .name = "ram", + .id = "scratch0", + .type = DEVICE_TYPE_DRAM, }; static struct mpc5xxx_fec_platform_data fec_info = { @@ -74,12 +84,21 @@ struct device_d eth_dev = { .type = DEVICE_TYPE_ETHER, }; +#define SCRATCHMEM_SIZE (1024 * 1024 * 4) + static int devices_init (void) { register_device(&cfi_dev); register_device(&sdram_dev); register_device(ð_dev); + scratch_dev.map_base = (unsigned long)sbrk_no_zero(SCRATCHMEM_SIZE); + scratch_dev.size = SCRATCHMEM_SIZE; + register_device(&scratch_dev); + + dev_add_partition(&cfi_dev, 0x00f00000, 0x40000, "self"); + dev_add_partition(&cfi_dev, 0x00f60000, 0x20000, "env"); + return 0; } |