Search
lxdream.org :: lxdream/src/sh4/sh4mmio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mmio.h
changeset 859:b941c703ccd6
prev841:808d64b05073
next929:fd8cb0c82f5f
next953:f4a156508ad1
author nkeynes
date Fri Sep 26 10:29:10 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Improve FRQCR register handling slightly (recognize the PLLEN1 flag)
file annotate diff log raw
1.1 --- a/src/sh4/sh4mmio.h Tue Sep 02 11:53:16 2008 +0000
1.2 +++ b/src/sh4/sh4mmio.h Fri Sep 26 10:29:10 2008 +0000
1.3 @@ -117,9 +117,16 @@
1.4 LONG_PORT( 0x040, DMAOR, PORT_MRW, 0, "DMA operation register" )
1.5 MMIO_REGION_END
1.6
1.7 +#define FRQCR_CKOEN 0x0800
1.8 +#define FRQCR_PLL1EN 0x0400
1.9 +#define FRQCR_PLL2EN 0x0200
1.10 +#define FRQCR_IFC_MASK 0x01C0
1.11 +#define FRQCR_BFC_MASK 0x0038
1.12 +#define FRQCR_PFC_MASK 0x0007
1.13 +
1.14 /* Clock Pulse Generator (page 233 [273] of sh7750h manual) */
1.15 MMIO_REGION_BEGIN( 0xFFC00000, CPG, "Clock Pulse Generator" )
1.16 - WORD_PORT( 0x000, FRQCR, PORT_MRW, UNDEFINED, "Frequency control" )
1.17 + WORD_PORT( 0x000, FRQCR, PORT_MRW, 0x0E0A, "Frequency control" )
1.18 BYTE_PORT( 0x004, STBCR, PORT_MRW, 0, "Standby control" )
1.19 BYTE_PORT( 0x008, WTCNT, PORT_MRW, 0, "Watchdog timer counter" )
1.20 BYTE_PORT( 0x00C, WTCSR, PORT_MRW, 0, "Watchdog timer control/status" )
.