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 /sys/arm | |
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
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/xscale/ixp425/ixp425reg.h | 4 |
1 files changed, 4 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 |