Date: Sat, 29 Nov 2008 18:43:14 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 153780 for review Message-ID: <200811291843.mATIhEGq082388@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=153780 Change 153780 by sam@sam_ebb on 2008/11/29 18:42:54 checkpoint ixp435 work; we're apparently not mapping the MCU registers correctly as their contents looks wrong; need this so we can size DDRAM at boot Affected files ... .. //depot/projects/vap/sys/arm/xscale/ixp425/ixp425_mem.c#3 edit Differences ... ==== //depot/projects/vap/sys/arm/xscale/ixp425/ixp425_mem.c#3 (text+ko) ==== @@ -62,11 +62,10 @@ 0, 0 }; -#define MCU_REG_READ(x) (*(volatile uint32_t *)(IXP425_MCU_VBASE + (x))) - uint32_t ixp425_sdram_size(void) { +#define MCU_REG_READ(x) (*(volatile uint32_t *)(IXP425_MCU_VBASE + (x))) uint32_t size, sdr_config; sdr_config = MCU_REG_READ(MCU_SDR_CONFIG); @@ -82,4 +81,20 @@ } return (size); +#undef MCU_REG_READ +} + +uint32_t +ixp435_ddram_size(void) +{ +#define MCU_REG_READ(x) (*(volatile uint32_t *)(IXP435_MCU_VBASE + (x))) + +printf("sdir 0x%x\n", MCU_REG_READ(MCU_DDR_SDIR));/*XXX*/ +printf("sdcr0 0x%x\n", MCU_REG_READ(MCU_DDR_SDCR0));/*XXX*/ +printf("sdcr1 0x%x\n", MCU_REG_READ(MCU_DDR_SDCR1));/*XXX*/ +printf("sdbr 0x%x\n", MCU_REG_READ(MCU_DDR_SDBR));/*XXX*/ +printf("sbr0 0x%x\n", MCU_REG_READ(MCU_DDR_SBR0));/*XXX*/ +printf("sbr1 0x%x\n", MCU_REG_READ(MCU_DDR_SBR1));/*XXX*/ + return 128*1024*1024; /*XXX*/ +#undef MCU_REG_READ }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811291843.mATIhEGq082388>