notaz.gp2x.de
/
gpsp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: remove cpu ctrl files, move tests
[gpsp.git]
/
gp2x
/
cpuctrl_mmsp2.c
diff --git
a/gp2x/cpuctrl.c
b/gp2x/cpuctrl_mmsp2.c
similarity index 99%
rename from
gp2x/cpuctrl.c
rename to
gp2x/cpuctrl_mmsp2.c
index
ab165fc
..
60cd6dc
100644
(file)
--- a/
gp2x/cpuctrl.c
+++ b/
gp2x/cpuctrl_mmsp2.c
@@
-25,16
+25,16
@@
// CPU CONTROL
/****************************************************************************************************************************************/
// CPU CONTROL
/****************************************************************************************************************************************/
-#include <sys/mman.h>
+
//
#include <sys/mman.h>
#include <math.h>
#include <stdio.h>
#include <math.h>
#include <stdio.h>
-#include "gp2xminilib.h"
+
//
#include "gp2xminilib.h"
#define SYS_CLK_FREQ 7372800
//from minimal library rlyeh
#define SYS_CLK_FREQ 7372800
//from minimal library rlyeh
-extern unsigned long gp2x_dev[4];
+
//
extern unsigned long gp2x_dev[4];
extern unsigned short *gp2x_memregs;
// system registers
extern unsigned short *gp2x_memregs;
// system registers
@@
-117,6
+117,7
@@
unsigned get_FCLK()
return MEM_REG[0x910>>1];
}
return MEM_REG[0x910>>1];
}
+#if 0
void set_add_FLCDCLK(int addclock)
{
//Set LCD controller to use FPLL
void set_add_FLCDCLK(int addclock)
{
//Set LCD controller to use FPLL
@@
-320,6
+321,7
@@
void clock_940_on()
{
MEM_REG[0x904>>1]|=1;
}
{
MEM_REG[0x904>>1]|=1;
}
+#endif
//--------------
//--------------