2 freebios/src/northbridge/nsc/gx1/gx_setup.inc
4 Copyright (c) 2002 Christer Weinigel <wingel@hack.org>
6 Setup the GX_BASE registers on a National Semiconductor Geode CPU
9 #include <cpu/amd/gx1def.h>
11 movl %eax, %ebp /* Preserve bist */
14 leal gx_setup_table, %esi
15 movl $gx_setup_len, %ecx
19 movw (%esi), %di /* Only read the low word of address */
21 movl (%esi), %eax /* Data */
29 /* Allow writes to config registers */
30 .long DC_UNLOCK, DC_UNLOCK_MAGIC
31 .long DC_GENERAL_CFG, 0
34 .long BC_DRAM_TOP, 0x3fffffff
39 .long MC_BANK_CFG, 0x00700070 /* No DIMMS installed */
40 .long MC_MEM_CNTRL1, XBUSARB
41 .long MC_GBASE_ADD, 0x7ff /* Almost 1GB */
42 gx_setup_len = (.-gx_setup_table)/8
47 movl %ebp, %eax /* Restore bist */