diff options
author | sam <sam@FreeBSD.org> | 2009-03-10 21:49:22 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-03-10 21:49:22 +0000 |
commit | f9723c20c05f488cd1adff71c209aa59aaeaaa20 (patch) | |
tree | 81ca87005ca0fbcbbbb934346d5bc63c39d8c655 | |
parent | 96c45a369c3e8d3800bb135b2b22800d8891afb6 (diff) | |
download | FreeBSD-src-f9723c20c05f488cd1adff71c209aa59aaeaaa20.zip FreeBSD-src-f9723c20c05f488cd1adff71c209aa59aaeaaa20.tar.gz |
add IXP4XX_FLASH_SIZE config knob that can be used to override the default
flash size; this is necessary at the moment because we map all of flash at
boot, eventually we'll do this on the fly
-rw-r--r-- | sys/arm/xscale/ixp425/ixp425reg.h | 4 | ||||
-rw-r--r-- | sys/conf/options.arm | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/xscale/ixp425/ixp425reg.h b/sys/arm/xscale/ixp425/ixp425reg.h index f76e5c0..56346ae 100644 --- a/sys/arm/xscale/ixp425/ixp425reg.h +++ b/sys/arm/xscale/ixp425/ixp425reg.h @@ -660,7 +660,11 @@ /* NB: CS0 is special; it maps flash */ #define IXP425_EXP_BUS_CS0_HWBASE IXP425_EXP_BUS_CSx_HWBASE(0) #define IXP425_EXP_BUS_CS0_VBASE 0xFD000000UL +#ifndef IXP4XX_FLASH_SIZE #define IXP425_EXP_BUS_CS0_SIZE 0x01000000 /* NB: 16M */ +#else +#define IXP425_EXP_BUS_CS0_SIZE IXP4XX_FLASH_SIZE +#endif #define IXP425_EXP_BUS_CS1_HWBASE IXP425_EXP_BUS_CSx_HWBASE(1) #define IXP425_EXP_BUS_CS1_VBASE IXP425_EXP_BUS_CSx_VBASE(1) #define IXP425_EXP_BUS_CS1_SIZE IXP425_EXP_BUS_CSx_SIZE diff --git a/sys/conf/options.arm b/sys/conf/options.arm index 2985e00..a3fb760 100644 --- a/sys/conf/options.arm +++ b/sys/conf/options.arm @@ -18,6 +18,7 @@ CPU_XSCALE_IXP425 opt_global.h CPU_XSCALE_IXP435 opt_global.h CPU_XSCALE_PXA2X0 opt_global.h FLASHADDR opt_global.h +IXP4XX_FLASH_SIZE opt_global.h KERNPHYSADDR opt_global.h KERNVIRTADDR opt_global.h LOADERRAMADDR opt_global.h |