mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-06-07 11:35:05 +02:00
Compare commits
No commits in common. "191a5ebccf3476b59f86da1890d444741449d449" and "ff17b8c22c70d433f6839d53e6738009fed82eee" have entirely different histories.
191a5ebccf
...
ff17b8c22c
2 changed files with 0 additions and 5 deletions
|
@ -35,7 +35,6 @@ typedef struct
|
||||||
int Bphi_div;
|
int Bphi_div;
|
||||||
int Iphi_div;
|
int Iphi_div;
|
||||||
int Pphi_div;
|
int Pphi_div;
|
||||||
int Sphi_div;
|
|
||||||
|
|
||||||
union {
|
union {
|
||||||
int CKIO_f;
|
int CKIO_f;
|
||||||
|
@ -45,7 +44,6 @@ typedef struct
|
||||||
int Bphi_f;
|
int Bphi_f;
|
||||||
int Iphi_f;
|
int Iphi_f;
|
||||||
int Pphi_f;
|
int Pphi_f;
|
||||||
int Sphi_f;
|
|
||||||
|
|
||||||
} clock_frequency_t;
|
} clock_frequency_t;
|
||||||
|
|
||||||
|
|
|
@ -84,12 +84,10 @@ static void sh7305_probe(void)
|
||||||
int divb = CPG.FRQCR.BFC;
|
int divb = CPG.FRQCR.BFC;
|
||||||
int divi = CPG.FRQCR.IFC;
|
int divi = CPG.FRQCR.IFC;
|
||||||
int divp = CPG.FRQCR.P1FC;
|
int divp = CPG.FRQCR.P1FC;
|
||||||
int divs = CPG.FRQCR.SFC;
|
|
||||||
|
|
||||||
freq.Bphi_div = 1 << (divb + 1);
|
freq.Bphi_div = 1 << (divb + 1);
|
||||||
freq.Iphi_div = 1 << (divi + 1);
|
freq.Iphi_div = 1 << (divi + 1);
|
||||||
freq.Pphi_div = 1 << (divp + 1);
|
freq.Pphi_div = 1 << (divp + 1);
|
||||||
freq.Sphi_div = 1 << (divs + 1);
|
|
||||||
|
|
||||||
/* Deduce the input frequency of divider 1 */
|
/* Deduce the input frequency of divider 1 */
|
||||||
int base = 32768;
|
int base = 32768;
|
||||||
|
@ -101,7 +99,6 @@ static void sh7305_probe(void)
|
||||||
freq.Bphi_f = base >> (divb + 1);
|
freq.Bphi_f = base >> (divb + 1);
|
||||||
freq.Iphi_f = base >> (divi + 1);
|
freq.Iphi_f = base >> (divi + 1);
|
||||||
freq.Pphi_f = base >> (divp + 1);
|
freq.Pphi_f = base >> (divp + 1);
|
||||||
freq.Sphi_f = base >> (divs + 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CPG
|
#undef CPG
|
||||||
|
|
Loading…
Add table
Reference in a new issue