From: Stefan E. <se...@us...> - 2002-07-25 14:06:15
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv16555 Modified Files: system3.c Log Message: - system3 GPIO settings Index: system3.c =================================================================== RCS file: /cvsroot/blob/blob/src/blob/system3.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- system3.c 13 May 2002 09:36:22 -0000 1.21 +++ system3.c 25 Jul 2002 14:06:12 -0000 1.22 @@ -2,7 +2,7 @@ * system3.c: PT System3 specific stuff * * Copyright (C) 2001 Erik Mouw (J.A...@it...) - * Copyright (C) 2001 Stefan Eletzhofer + * Copyright (C) 2001,2002 Stefan Eletzhofer * (ste...@ww...) * * This program is free software; you can redistribute it and/or modify @@ -231,6 +231,11 @@ MEM(SYSTEM3_CTRL_1) = 0x00; MEM(SYSTEM3_CTRL_2) = 0x00; + /* initialize GPIO states */ + GPDR = 0x0f35a7fc; + GPSR |= GPIO_GPIO15 | GPIO_GPIO20; /* 15: core fast, 20: SCL */ + GPCR |= 0x070527fc; + /* activate SYSCLCK for keyboard controller */ RST( MEM(TUCR), 31 ); GAFR |= GPIO_32_768kHz; @@ -395,7 +400,6 @@ int pcmcia_init() { printf( "PT Digital Board PCMCIA init\n" ); - //sa1111_init(); return 0; } #endif @@ -430,7 +434,7 @@ return -EINVAL; } -#if 1 +#if !defined(SYSUPD_DUMMY_COPY) /* flash tha image, man! */ ret = io_copy( "BLOB_PART", "TAR", 0 ); if ( ret ) { @@ -850,11 +854,13 @@ * manually reference flash and download commands until they * are in libblob. */ +#if 0 extern int cf_test_module( int argc, char *argv[] ); extern char cf_help[]; __commandlist(cf_test_module, "cftest", cf_help); +#endif -#if 0 +#if 1 extern int fwrite_cmd(int argc, char *argv[]); extern char fwrite_help[]; __commandlist(fwrite_cmd, "fwrite", fwrite_help); |