/* * (C) Copyright 2007 OpenMoko, Inc. * * Configuation settings for the OPENMOKO Neo GTA02 Linux GSM phone * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ #define __ASM_MODE__ #define __ASSEMBLY__ #include #define TEXT_BASE 0x53000000 #define S3C6410_POP_A 1 #define set_pll(mdiv, pdiv, sdiv) (1<<31 | mdiv<<16 | pdiv<<8 | sdiv) /* fixed MPLL 533MHz */ #define MPLL_MDIV 266 #define MPLL_PDIV 3 #define MPLL_SDIV 1 #define Startup_APLLdiv 0 #define APLL_MDIV 266 #define APLL_PDIV 3 #define APLL_SDIV 1 #define Startup_PCLKdiv 3 #define Startup_HCLKdiv 1 #define Startup_MPLLdiv 1 #define Startup_HCLKx2div 1 #define Startup_APLL (12000000/(APLL_PDIV< EXT_UCLK1*/ str r1, [r0, #UCON_OFFSET] ldr r1, =0x22 str r1, [r0, #UBRDIV_OFFSET] ldr r1, =0x1FFF str r1, [r0, #UDIVSLOT_OFFSET] ldr r1, =0x55 str r1, [r0, #UTXH_OFFSET] @'U' /* >> CFG_VIDEO_LOGO_MAX_SIZE */ #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ sub r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo */ sub sp, r0, #12 /* leave 3 words for abort-stack */ clear_bss: ldr r0, _bss_start /* find start of bss segment */ ldr r1, _bss_end /* stop here */ mov r2, #0x00000000 /* clear */ clbss_l: str r2, [r0] /* clear loop... */ add r0, r0, #4 cmp r0, r1 ble clbss_l b _steppingstone_done 4: b 4b