summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-03-10 21:49:22 +0000
committersam <sam@FreeBSD.org>2009-03-10 21:49:22 +0000
commitf9723c20c05f488cd1adff71c209aa59aaeaaa20 (patch)
tree81ca87005ca0fbcbbbb934346d5bc63c39d8c655 /sys/arm
parent96c45a369c3e8d3800bb135b2b22800d8891afb6 (diff)
downloadFreeBSD-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.h4
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
OpenPOWER on IntegriCloud