at91rm9200_lowlevel.c (171426) | at91rm9200_lowlevel.c (204900) |
---|---|
1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * 24 * This software is derived from software provide by Kwikbyte who specifically 25 * disclaimed copyright on the code. 26 * | 1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * 24 * This software is derived from software provide by Kwikbyte who specifically 25 * disclaimed copyright on the code. 26 * |
27 * $FreeBSD: head/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.c 171426 2007-07-13 14:27:05Z imp $ | 27 * $FreeBSD: head/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.c 204900 2010-03-09 00:50:58Z ticso $ |
28 */ 29 30#include "at91rm9200.h" 31#include "at91rm9200_lowlevel.h" 32 33extern int __bss_start__[]; 34extern int __bss_end__[]; 35 --- 95 unchanged lines hidden (view full) --- 131 // active to precharge = 4 (Tras) 132 // exit self refresh to active = 6 (Txsr) 133 value = ((AT91PS_EBI)AT91C_BASE_EBI)->EBI_CSA; 134 value &= ~AT91C_EBI_CS1A; 135 value |= AT91C_EBI_CS1A_SDRAMC; 136 AT91C_BASE_EBI->EBI_CSA = value; 137 138 AT91C_BASE_SDRC->SDRC_CR = | 28 */ 29 30#include "at91rm9200.h" 31#include "at91rm9200_lowlevel.h" 32 33extern int __bss_start__[]; 34extern int __bss_end__[]; 35 --- 95 unchanged lines hidden (view full) --- 131 // active to precharge = 4 (Tras) 132 // exit self refresh to active = 6 (Txsr) 133 value = ((AT91PS_EBI)AT91C_BASE_EBI)->EBI_CSA; 134 value &= ~AT91C_EBI_CS1A; 135 value |= AT91C_EBI_CS1A_SDRAMC; 136 AT91C_BASE_EBI->EBI_CSA = value; 137 138 AT91C_BASE_SDRC->SDRC_CR = |
139#ifdef KB9202_B | 139#if defined(KB9202_B) || defined(SDRAM_128M) |
140 AT91C_SDRC_NC_10 | 141#else 142 AT91C_SDRC_NC_9 | 143#endif 144 AT91C_SDRC_NR_13 | 145 AT91C_SDRC_NB_4_BANKS | 146 AT91C_SDRC_CAS_2 | 147 ((2 << 7) & AT91C_SDRC_TWR) | --- 76 unchanged lines hidden --- | 140 AT91C_SDRC_NC_10 | 141#else 142 AT91C_SDRC_NC_9 | 143#endif 144 AT91C_SDRC_NR_13 | 145 AT91C_SDRC_NB_4_BANKS | 146 AT91C_SDRC_CAS_2 | 147 ((2 << 7) & AT91C_SDRC_TWR) | --- 76 unchanged lines hidden --- |