2004-12-20 Marcel Telka <marcel@telka.sk>
* device/other/hd64461/gpio.h: New file. * device/other/hd64461/intc.h: Ditto. * device/other/hd64461/lcdc.h: Ditto. * device/other/hd64461/pcc.h: Ditto. * device/other/hd64461/stbsys.h: Ditto. * device/other/hd64461/timer.h: Ditto. * Makefile.am (nobase_openwinceinc_HEADERS): Added new files. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@626 b68d4a1b-bc3d-0410-92ed-d4ac073336b7master
parent
27b8216318
commit
54356002cf
@ -0,0 +1,103 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 Pin Function Controller & I/O Port Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_GPIO_H
|
||||
#define HD64461_GPIO_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Pin Function Controller & I/O Port Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct GPIO_registers {
|
||||
uint16_t gpacr;
|
||||
uint16_t gpbcr;
|
||||
uint16_t gpccr;
|
||||
uint16_t gpdcr;
|
||||
uint16_t __reserved1[4];
|
||||
uint8_t gpadr;
|
||||
uint8_t __reserved2;
|
||||
uint8_t gpbdr;
|
||||
uint8_t __reserved3;
|
||||
uint8_t gpcdr;
|
||||
uint8_t __reserved4;
|
||||
uint8_t gpddr;
|
||||
uint8_t __reserved5[9];
|
||||
uint8_t gpaicr;
|
||||
uint8_t __reserved6;
|
||||
uint8_t gpbicr;
|
||||
uint8_t __reserved7;
|
||||
uint8_t gpcicr;
|
||||
uint8_t __reserved8;
|
||||
uint8_t gpdicr;
|
||||
uint8_t __reserved9[25];
|
||||
uint8_t gpaisr;
|
||||
uint8_t __reserved10;
|
||||
uint8_t gpbisr;
|
||||
uint8_t __reserved11;
|
||||
uint8_t gpcisr;
|
||||
uint8_t __reserved12;
|
||||
uint8_t gpdisr;
|
||||
} GPIO_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define GPACR_OFFSET 0x00
|
||||
#define GPBCR_OFFSET 0x02
|
||||
#define GPCCR_OFFSET 0x04
|
||||
#define GPDCR_OFFSET 0x06
|
||||
#define GPADR_OFFSET 0x10
|
||||
#define GPBDR_OFFSET 0x12
|
||||
#define GPCDR_OFFSET 0x14
|
||||
#define GPDDR_OFFSET 0x16
|
||||
#define GPAICR_OFFSET 0x20
|
||||
#define GPBICR_OFFSET 0x22
|
||||
#define GPCICR_OFFSET 0x24
|
||||
#define GPDICR_OFFSET 0x26
|
||||
#define GPAISR_OFFSET 0x40
|
||||
#define GPBISR_OFFSET 0x42
|
||||
#define GPCISR_OFFSET 0x44
|
||||
#define GPDISR_OFFSET 0x46
|
||||
|
||||
#endif /* HD64461_GPIO_H */
|
@ -0,0 +1,83 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 Interrupt Controller Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_INTC_H
|
||||
#define HD64461_INTC_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Interrupt Controller Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct INTC_registers {
|
||||
uint16_t nirr;
|
||||
uint16_t nimr;
|
||||
} INTC_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define NIRR_OFFSET 0x00
|
||||
#define NIMR_OFFSET 0x02
|
||||
|
||||
/* NIRR bits */
|
||||
#define NIRR_PCC0R bit(14)
|
||||
#define NIRR_PCC1R bit(13)
|
||||
#define NIRR_AFER bit(12)
|
||||
#define NIRR_GPIOR bit(11)
|
||||
#define NIRR_TMU0R bit(10)
|
||||
#define NIRR_TMU1R bit(9)
|
||||
#define NIRR_IRDAR bit(6)
|
||||
#define NIRR_UARTR bit(5)
|
||||
|
||||
/* NIMR bits */
|
||||
#define NIMR_PCC0M bit(14)
|
||||
#define NIMR_PCC1M bit(13)
|
||||
#define NIMR_AFEM bit(12)
|
||||
#define NIMR_GPIOM bit(11)
|
||||
#define NIMR_TMU0M bit(10)
|
||||
#define NIMR_TMU1M bit(9)
|
||||
#define NIMR_IRDAM bit(6)
|
||||
#define NIMR_UARTM bit(5)
|
||||
|
||||
#endif /* HD64461_INTC_H */
|
@ -0,0 +1,331 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 Color LCD Controller Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_LCDC_H
|
||||
#define HD64461_LCDC_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Color LCD Controller Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct LCDC_registers {
|
||||
uint16_t lcdcbar;
|
||||
uint16_t lcdclor;
|
||||
uint16_t lcdccr;
|
||||
uint16_t __reserved1[5];
|
||||
uint16_t ldr1;
|
||||
uint16_t ldr2;
|
||||
uint16_t ldhncr;
|
||||
uint16_t ldhnsr;
|
||||
uint16_t ldvntr;
|
||||
uint16_t ldvndr;
|
||||
uint16_t ldvspr;
|
||||
uint16_t ldr3;
|
||||
uint16_t crtvtr;
|
||||
uint16_t crtvrsr;
|
||||
uint16_t vrtvrer;
|
||||
uint16_t __reserved2[5];
|
||||
uint16_t cptwar;
|
||||
uint16_t cptwdr;
|
||||
uint16_t cptrar;
|
||||
uint16_t cptrdr;
|
||||
uint16_t __reserved3[4];
|
||||
uint16_t grdor;
|
||||
uint16_t grscr;
|
||||
uint16_t grcfgr;
|
||||
uint16_t lnsarh;
|
||||
uint16_t lnsarl;
|
||||
uint16_t lnaxlr;
|
||||
uint16_t lndgr;
|
||||
uint16_t lnaxr;
|
||||
uint16_t lnertr;
|
||||
uint16_t lnmdr;
|
||||
uint16_t bbtssarh;
|
||||
uint16_t bbtssarl;
|
||||
uint16_t bbtdsarh;
|
||||
uint16_t bbtdsarl;
|
||||
uint16_t bbtdwr;
|
||||
uint16_t bbtdhr;
|
||||
uint16_t bbtparh;
|
||||
uint16_t bbtparl;
|
||||
uint16_t bbtmarh;
|
||||
uint16_t bbtmarl;
|
||||
uint16_t bbtropr;
|
||||
uint16_t bbtmdr;
|
||||
} LCDC_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define LCDCBAR_OFFSET 0x00
|
||||
#define LCDCLOR_OFFSET 0x02
|
||||
#define LCDCCR_OFFSET 0x04
|
||||
#define LDR1_OFFSET 0x10
|
||||
#define LDR2_OFFSET 0x12
|
||||
#define LDHNCR_OFFSET 0x14
|
||||
#define LDHNSR_OFFSET 0x16
|
||||
#define LDVNTR_OFFSET 0x18
|
||||
#define LDVNDR_OFFSET 0x1A
|
||||
#define LDVSPR_OFFSET 0x1C
|
||||
#define LDR3_OFFSET 0x1E
|
||||
#define CRTVTR_OFFSET 0x20
|
||||
#define CRTVRSR_OFFSET 0x22
|
||||
#define CRTVRER_OFFSET 0x24
|
||||
#define CPTWAR_OFFSET 0x30
|
||||
#define CPTWDR_OFFSET 0x32
|
||||
#define CPTRAR_OFFSET 0x34
|
||||
#define CPTRDR_OFFSET 0x36
|
||||
#define GRDOR_OFFSET 0x40
|
||||
#define GRSCR_OFFSET 0x42
|
||||
#define GRCFGR_OFFSET 0x44
|
||||
#define LNSARH_OFFSET 0x46
|
||||
#define LNSARL_OFFSET 0x48
|
||||
#define LNAXLR_OFFSET 0x4A
|
||||
#define LNDGR_OFFSET 0x4C
|
||||
#define LNAXR_OFFSET 0x4E
|
||||
#define LNERTR_OFFSET 0x50
|
||||
#define LNMDR_OFFSET 0x52
|
||||
#define BBTSSARH_OFFSET 0x54
|
||||
#define BBTSSARL_OFFSET 0x56
|
||||
#define BBTDSARH_OFFSET 0x58
|
||||
#define BBTDSARL_OFFSET 0x5A
|
||||
#define BBTDWR_OFFSET 0x5C
|
||||
#define BBTDHR_OFFSET 0x5E
|
||||
#define BBTPARH_OFFSET 0x60
|
||||
#define BBTPARL_OFFSET 0x62
|
||||
#define BBTMARH_OFFSET 0x64
|
||||
#define BBTMARL_OFFSET 0x66
|
||||
#define BBTROPR_OFFSET 0x68
|
||||
#define BBTMDR_OFFSET 0x6A
|
||||
|
||||
/* LCDCBAR bits */
|
||||
#define LCDCBAR_BAD_MASK bits(13,0)
|
||||
#define LCDCBAR_BAD(x) bits_val(13,0,x)
|
||||
#define get_LCDCBAR_BAD(x) bits_get(13,0,x)
|
||||
|
||||
/* LCDCLOR bits */
|
||||
#define LCDCLOR_LO_MASK bits(10,0)
|
||||
#define LCDCLOR_LO(x) bits_val(10,0,x)
|
||||
#define get_LCDCLOR_LO(x) bits_get(10,0,x)
|
||||
|
||||
/* LCDCCR bits */
|
||||
#define LCDCCR_STBACK bit(10)
|
||||
#define LCDCCR_STREQ bit(8)
|
||||
#define LCDCCR_MOFF bit(7)
|
||||
#define LCDCCR_REFSEL bit(6)
|
||||
#define LCDCCR_EPON bit(5)
|
||||
#define LCDCCR_SPON bit(4)
|
||||
#define LCDCCR_DSPSEL_MASK bits(2,0)
|
||||
#define LCDCCR_DSPSEL(x) bits_val(2,0,x)
|
||||
#define get_LCDCCR_DSPSEL(x) bits_get(2,0,x)
|
||||
|
||||
/* LDR1 bits */
|
||||
#define LDR1_DINV bit(8)
|
||||
#define LDR1_DON bit(0)
|
||||
|
||||
/* LDR2 bits */
|
||||
#define LDR2_CC1 bit(7)
|
||||
#define LDR2_CC2 bit(6)
|
||||
#define LDR2_LM_MASK bits(2,0)
|
||||
#define LDR2_LM(x) bits_val(2,0,x)
|
||||
#define get_LDR2_LM(x) bits_get(2,0,x)
|
||||
|
||||
/* LDHNCR bits */
|
||||
#define LDHNCR_NHD_MASK bits(15,8)
|
||||
#define LDHNCR_NHD(x) bits_val(15,8,x)
|
||||
#define get_LDHNCR_NHD(x) bits_get(15,8,x)
|
||||
#define LDHNCR_NHT_MASK bits(7,0)
|
||||
#define LDHNCR_NHT(x) bits_val(7,0,x)
|
||||
#define get_LDHNCR_NHT(x) bits_get(7,0,x)
|
||||
|
||||
/* LDHNSR bits */
|
||||
#define LDHNSR_HSW_MASK bits(11,8)
|
||||
#define LDHNSR_HSW(x) bits_val(11,8,x)
|
||||
#define get_LDHNSR_HSW(x) bits_get(11,8,x)
|
||||
#define LDHNSR_HSP_MASK bits(7,0)
|
||||
#define LDHNSR_HSP(x) bits_val(7,0,x)
|
||||
#define get_LDHNSR_HSP(x) bits_get(7,0,x)
|
||||
|
||||
/* LDVNTR bits */
|
||||
#define LDVNTR_VTL_MASK bits(9,0)
|
||||
#define LDVNTR_VTL(x) bits_val(9,0,x)
|
||||
#define get_LDVNTR_VTL(x) bits_get(9,0,x)
|
||||
|
||||
/* LDVNDR bits */
|
||||
#define LDVNDR_VDL_MASK bits(9,0)
|
||||
#define LDVNDR_VDL(x) bits_val(9,0,x)
|
||||
#define get_LDVNDR_VDL(x) bits_get(9,0,x)
|
||||
|
||||
/* LDVSPR bits */
|
||||
#define LDVSPR_VSP_MASK bits(9,0)
|
||||
#define LDVSPR_VSP(x) bits_val(9,0,x)
|
||||
#define get_LDVSPR_VSP(x) bits_get(9,0,x)
|
||||
|
||||
/* LDR3 bits */
|
||||
#define LDR3_CS_MASK bits(9,5)
|
||||
#define LDR3_CS(x) bits_val(9,5,x)
|
||||
#define get_LDR3_CS(x) bits_get(9,5,x)
|
||||
#define LDR3_CG_MASK bits(3,0)
|
||||
#define LDR3_CG(x) bits_val(3,0,x)
|
||||
#define get_LDR3_CG(x) bits_get(3,0,x)
|
||||
|
||||
/* CRTVTR bits */
|
||||
#define CRTVTR_CRTVTR_MASK bits(9,0)
|
||||
#define CRTVTR_CRTVTR(x) bits_val(9,0,x)
|
||||
#define get_CRTVTR_CRTVTR(x) bits_get(9,0,x)
|
||||
|
||||
/* CRTVRSR bits */
|
||||
#define CRTVRSR_CRTVRSR_MASK bits(9,0)
|
||||
#define CRTVRSR_CRTVRSR(x) bits_val(9,0,x)
|
||||
#define get_CRTVRSR_CRTVRSR(x) bits_get(9,0,x)
|
||||
|
||||
/* CRTVRER bits */
|
||||
#define CRTVRER_CRTVRER_MASK bits(3,0)
|
||||
#define CRTVRER_CRTVRER(x) bits_val(3,0,x)
|
||||
#define get_CRTVRER_CRTVRER(x) bits_get(3,0,x)
|
||||
|
||||
/* CPTWAR bits */
|
||||
#define CPTWAR_WRITE_PALETTE_NUM_MASK bits(15,8)
|
||||
#define CPTWAR_WRITE_PALETTE_NUM(x) bits_val(15,8,x)
|
||||
#define get_CPTWAR_WRITE_PALETTE_NUM(x) bits_get(15,8,x)
|
||||
|
||||
/* CPTWDR bits */
|
||||
#define CPTWDR_WRITE_PALETTE_D_MASK bits(5,0)
|
||||
#define CPTWDR_WRITE_PALETTE_D(x) bits_val(5,0,x)
|
||||
#define get_CPTWDR_WRITE_PALETTE_D(x) bits_get(5,0,x)
|
||||
|
||||
/* CPTRAR bits */
|
||||
#define CPTRAR_READ_PALETTE_NUM_MASK bits(15,8)
|
||||
#define CPTRAR_READ_PALETTE_NUM(x) bits_val(15,8,x)
|
||||
#define get_CPTRAR_READ_PALETTE_NUM(x) bits_get(15,8,x)
|
||||
|
||||
/* CPTRDR bits */
|
||||
#define CPTRDR_READ_PALETTE_D_MASK bits(5,0)
|
||||
#define CPTRDR_READ_PALETTE_D(x) bits_val(5,0,x)
|
||||
#define get_CPTRDR_READ_PALETTE_D(x) bits_get(5,0,x)
|
||||
|
||||
/* GRDOR bits */
|
||||
#define GRDOR_GRDOR_MASK bits(10,0)
|
||||
#define GRDOR_GRDOR(x) bits_val(10,0,x)
|
||||
#define get_GRDOR_GRDOR(x) bits_get(10,0,x)
|
||||
|
||||
/* GRCFGR bits */
|
||||
#define GRCFGR_ACCSTATUS bit(4)
|
||||
#define GRCFGR_ACCRESET bit(3)
|
||||
#define GRCFGR_ACCSTART_MASK bits(2,1)
|
||||
#define GRCFGR_ACCSTART(x) bits_val(2,1,x)
|
||||
#define get_GRCFGR_ACCSTART(x) bits_get(2,1,x)
|
||||
#define GRCFGR_COLORDEPTH bit(0)
|
||||
|
||||
/* LNSARH bits */
|
||||
#define LNSARH_LNSARH_MASK bits(2,0)
|
||||
#define LNSARH_LNSARH(x) bits_val(2,0,x)
|
||||
#define get_LNSARH_LNSARH(x) bits_get(2,0,x)
|
||||
|
||||
/* LNAXLR bits */
|
||||
#define LNAXLR_LNAXLR_MASK bits(10,0)
|
||||
#define LNAXLR_LNAXLR(x) bits_val(10,0,x)
|
||||
#define get_LNAXLR_LNAXLR(x) bits_get(10,0,x)
|
||||
|
||||
/* LNDGR bits */
|
||||
#define LNDGR_LNDGR_SIGN bit(15)
|
||||
#define LNDGR_LNDGR_MASK bits(10,0)
|
||||
#define LNDGR_LNDGR(x) bits_val(10,0,x)
|
||||
#define get_LNDGR_LNDGR(x) bits_get(10,0,x)
|
||||
|
||||
/* LNAXR bits */
|
||||
#define LNAXR_LNAXR_MASK bits(11,0)
|
||||
#define LNAXR_LNAXR(x) bits_val(10,0,x)
|
||||
#define get_LNAXR_LNAXR(x) bits_get(10,0,x)
|
||||
|
||||
/* LNERTR bits */
|
||||
#define LNERTR_LNERTR_SIGN bit(15)
|
||||
#define LNERTR_LNERTR_MASK bits(10,0)
|
||||
#define LNERTR_LNERTR(x) bits_val(10,0,x)
|
||||
#define get_LNERTR_LNERTR(x) bits_get(10,0,x)
|
||||
|
||||
/* LNMDR bits */
|
||||
#define LNMDR_LNMDR_MASK bits(1,0)
|
||||
#define LNMDR_LNMDR(x) bits_val(1,0,x)
|
||||
#define get_LNMDR_LNMDR(x) bits_get(1,0,x)
|
||||
|
||||
/* BBTSSARH bits */
|
||||
#define BBTSSARH_BBTSSARH_MASK bits(2,0)
|
||||
#define BBTSSARH_BBTSSARH(x) bits_val(2,0,x)
|
||||
#define get_BBTSSARH_BBTSSARH(x) bits_get(2,0,x)
|
||||
|
||||
/* BBTDSARH bits */
|
||||
#define BBTDSARH_BBTDSARH_MASK bits(2,0)
|
||||
#define BBTDSARH_BBTDSARH(x) bits_val(2,0,x)
|
||||
#define get_BBTDSARH_BBTDSARH(x) bits_get(2,0,x)
|
||||
|
||||
/* BBTDWR bits */
|
||||
#define BBTDWR_BBTDWR_MASK bits(10,0)
|
||||
#define BBTDWR_BBTDWR(x) bits_val(10,0,x)
|
||||
#define get_BBTDWR_BBTDWR(x) bits_get(10,0,x)
|
||||
|
||||
/* BBTDHR bits */
|
||||
#define BBTDHR_BBTDHR_MASK bits(10,0)
|
||||
#define BBTDHR_BBTDHR(x) bits_val(10,0,x)
|
||||
#define get_BBTDHR_BBTDHR(x) bits_get(10,0,x)
|
||||
|
||||
/* BBTPARH bits */
|
||||
#define BBTPARH_BBTPARH_MASK bits(2,0)
|
||||
#define BBTPARH_BBTPARH(x) bits_val(2,0,x)
|
||||
#define get_BBTPARH_BBTPARH(x) bits_get(2,0,x)
|
||||
|
||||
/* BBTMARH bits */
|
||||
#define BBTMARH_BBTMARH_MASK bits(2,0)
|
||||
#define BBTMARH_BBTMARH(x) bits_val(2,0,x)
|
||||
#define get_BBTMARH_BBTMARH(x) bits_get(2,0,x)
|
||||
|
||||
/* BBTMDR bits */
|
||||
#define BBTMDR_MSKENABLE bit(5)
|
||||
#define BBTMDR_PATSELECT bit(4)
|
||||
#define BBTMDR_SCREENSELECT_MASK bits(3,2)
|
||||
#define BBTMDR_SCREENSELECT(x) bits_val(3,2,x)
|
||||
#define get_BBTMDR_SCREENSELECT(x) bits_get(3,2,x)
|
||||
#define BBTMDR_SCANDRCT bit(0)
|
||||
|
||||
#endif /* HD64461_LCDC_H */
|
@ -0,0 +1,191 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 PC Card Controller Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_PCC_H
|
||||
#define HD64461_PCC_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* PC Card Controller Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct PCC_registers {
|
||||
uint8_t pcc0isr;
|
||||
uint8_t __reserved1;
|
||||
uint8_t pcc0gcr;
|
||||
uint8_t __reserved2;
|
||||
uint8_t pcc0cscr;
|
||||
uint8_t __reserved3;
|
||||
uint8_t pcc0cscier;
|
||||
uint8_t __reserved4;
|
||||
uint8_t pcc0scr;
|
||||
uint8_t __reserved5[7];
|
||||
uint8_t pcc1isr;
|
||||
uint8_t __reserved6;
|
||||
uint8_t pcc1gcr;
|
||||
uint8_t __reserved7;
|
||||
uint8_t pcc1cscr;
|
||||
uint8_t __reserved8;
|
||||
uint8_t pcc1cscier;
|
||||
uint8_t __reserved9;
|
||||
uint8_t pcc1scr;
|
||||
uint8_t __reserved10[17];
|
||||
uint8_t p0ocr;
|
||||
uint8_t __reserved11;
|
||||
uint8_t p1ocr;
|
||||
uint8_t __reserved12;
|
||||
uint8_t pgcr;
|
||||
} PCC_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define PCC0ISR_OFFSET 0x00
|
||||
#define PCC0GCR_OFFSET 0x02
|
||||
#define PCC0CSCR_OFFSET 0x04
|
||||
#define PCC0CSCIER_OFFSET 0x06
|
||||
#define PCC0SCR_OFFSET 0x08
|
||||
#define PCC1ISR_OFFSET 0x10
|
||||
#define PCC1GCR_OFFSET 0x12
|
||||
#define PCC1CSCR_OFFSET 0x14
|
||||
#define PCC1CSCIER_OFFSET 0x16
|
||||
#define PCC1SCR_OFFSET 0x18
|
||||
#define P0OCR_OFFSET 0x2A
|
||||
#define P1OCR_OFFSET 0x2C
|
||||
#define PGCR_OFFSET 0x2E
|
||||
|
||||
/* PCC0ISR bits */
|
||||
#define PCC0ISR_P0READY bit(7)
|
||||
#define PCC0ISR_P0MWP bit(6)
|
||||
#define PCC0ISR_P0VS2 bit(5)
|
||||
#define PCC0ISR_P0VS1 bit(4)
|
||||
#define PCC0ISR_P0CD2 bit(3)
|
||||
#define PCC0ISR_P0CD1 bit(2)
|
||||
#define PCC0ISR_P0BVD2 bit(1)
|
||||
#define PCC0ISR_P0BVD1 bit(0)
|
||||
|
||||
/* PCC0GCR bits */
|
||||
#define PCC0GCR_P0DRVE bit(7)
|
||||
#define PCC0GCR_P0PCCR bit(6)
|
||||
#define PCC0GCR_P0PCCT bit(5)
|
||||
#define PCC0GCR_P0VCC0 bit(4)
|
||||
#define PCC0GCR_P0MMOD bit(3)
|
||||
#define PCC0GCR_P0PA25 ` bit(2)
|
||||
#define PCC0GCR_P0PA24 bit(1)
|
||||
#define PCC0GCR_P0REG bit(0)
|
||||
|
||||
/* PCC0CSCR bits */
|
||||
#define PCC0CSCR_P0SCDI bit(7)
|
||||
#define PCC0CSCR_P0IREQ bit(5)
|
||||
#define PCC0CSCR_P0SC bit(4)
|
||||
#define PCC0CSCR_P0CDC bit(3)
|
||||
#define PCC0CSCR_P0RC bit(2)
|
||||
#define PCC0CSCR_P0BW bit(1)
|
||||
#define PCC0CSCR_P0BD bit(0)
|
||||
|
||||
/* PCC0CSCIER bits */
|
||||
#define PCC0CSCIER_P0CRE bit(7)
|
||||
#define PCC0CSCIER_P0IREQE1 bit(6)
|
||||
#define PCC0CSCIER_P0IREQE0 bit(5)
|
||||
#define PCC0CSCIER_P0SCE bit(4)
|
||||
#define PCC0CSCIER_P0CDE bit(3)
|
||||
#define PCC0CSCIER_P0RE bit(2)
|
||||
#define PCC0CSCIER_P0BWE bit(1)
|
||||
#define PCC0CSCIER_P0BDE bit(0)
|
||||
|
||||
/* PCC0SCR bits */
|
||||
#define PCC0SCR_P0VCC1 bit(1)
|
||||
#define PCC0SCR_P0SWP bit(0)
|
||||
|
||||
/* PCC1ISR bits */
|
||||
#define PCC1ISR_P1READY bit(7)
|
||||
#define PCC1ISR_P1MWP bit(6)
|
||||
#define PCC1ISR_P1VS2 bit(5)
|
||||
#define PCC1ISR_P1VS1 bit(4)
|
||||
#define PCC1ISR_P1CD2 bit(3)
|
||||
#define PCC1ISR_P1CD1 bit(2)
|
||||
#define PCC1ISR_P1BVD2 bit(1)
|
||||
#define PCC1ISR_P1BVD1 bit(0)
|
||||
|
||||
/* PCC1GCR bits */
|
||||
#define PCC1GCR_P1DRVE bit(7)
|
||||
#define PCC1GCR_P1PCCR bit(6)
|
||||
#define PCC1GCR_P1VCC0 bit(4)
|
||||
#define PCC1GCR_P1MMOD bit(3)
|
||||
#define PCC1GCR_P1PA25 ` bit(2)
|
||||
#define PCC1GCR_P1PA24 bit(1)
|
||||
#define PCC1GCR_P1REG bit(0)
|
||||
|
||||
/* PCC1CSCR bits */
|
||||
#define PCC1CSCR_P1SCDI bit(7)
|
||||
#define PCC1CSCR_P1CDC bit(3)
|
||||
#define PCC1CSCR_P1RC bit(2)
|
||||
#define PCC1CSCR_P1BW bit(1)
|
||||
#define PCC1CSCR_P1BD bit(0)
|
||||
|
||||
/* PCC1CSCIER bits */
|
||||
#define PCC1CSCIER_P1CRE bit(7)
|
||||
#define PCC1CSCIER_P1CDE bit(3)
|
||||
#define PCC1CSCIER_P1RE bit(2)
|
||||
#define PCC1CSCIER_P1BWE bit(1)
|
||||
#define PCC1CSCIER_P1BDE bit(0)
|
||||
|
||||
/* PCC1SCR bits */
|
||||
#define PCC1SCR_P1VCC1 bit(1)
|
||||
#define PCC1SCR_P1SWP bit(0)
|
||||
|
||||
/* P0OCR bits */
|
||||
#define P0OCR_P0DEPLUP bit(7)
|
||||
#define P0OCR_P0AEPLUP bit(4)
|
||||
|
||||
/* P1OCR bits */
|
||||
#define P1OCR_P1RST8MA bit(3)
|
||||
#define P1OCR_P1RST4MA bit(2)
|
||||
#define P1OCR_P1RAS8MA bit(1)
|
||||
#define P1OCR_P1RAS4MA bit(0)
|
||||
|
||||
/* PGCR bits */
|
||||
#define PGCR_PSSDIR bit(1)
|
||||
#define PGCR_PSSRDWR bit(0)
|
||||
|
||||
#endif /* HD64461_PCC_H */
|
@ -0,0 +1,106 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 Standby Mode and System Configuration Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_STBSYS_H
|
||||
#define HD64461_STBSYS_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Standby Mode and System Configuration Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct STBSYS_registers {
|
||||
uint16_t stbcr;
|
||||
uint16_t syscr;
|
||||
uint16_t scpucr;
|
||||
} STBSYS_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define STBCR_OFFSET 0x00
|
||||
#define SYSCR_OFFSET 0x02
|
||||
#define SCPUCR_OFFSET 0x04
|
||||
|
||||
/* STBCR bits */
|
||||
#define STBCR_CKIO_STBY bit(13)
|
||||
#define STBCR_SAFECKE_IST bit(12)
|
||||
#define STBCR_SLCKE_IST bit(11)
|
||||
#define STBCR_SAFECKE_OST bit(10)
|
||||
#define STBCR_SLCKE_OST bit(9)
|
||||
#define STBCR_SMIAST bit(8)
|
||||
#define STBCR_SLCDST bit(7)
|
||||
#define STBCR_SPC0ST bit(6)
|
||||
#define STBCR_SPC1ST bit(5)
|
||||
#define STBCR_SAFEST bit(4)
|
||||
#define STBCR_STM0ST bit(3)
|
||||
#define STBCR_STM1ST bit(2)
|
||||
#define STBCR_SIRST bit(1)
|
||||
#define STBCR_SURTSD bit(0)
|
||||
|
||||
/* SYSCR bits */
|
||||
#define SYSCR_SCPU_BUS_IGAT bit(13)
|
||||
#define SYSCR_SPTA_IR bit(7)
|
||||
#define SYSCR_SPTA_TM bit(6)
|
||||
#define SYSCR_SPTB_UR bit(5)
|
||||
#define SYSCR_WAIT_CTL_SEL bit(4)
|
||||
#define SYSCR_SMODE1 bit(1)
|
||||
#define SYSCR_SMODE0 bit(0)
|
||||
|
||||
/* SCPUCR bits */
|
||||
#define SCPUCR_SPDSTOF bit(15)
|
||||
#define SCPUCR_SPDSTIG bit(14)
|
||||
#define SCPUCR_SPCSTOF bit(13)
|
||||
#define SCPUCR_SPCSTIG bit(12)
|
||||
#define SCPUCR_SPBSTOF bit(11)
|
||||
#define SCPUCR_SPBSTIG bit(10)
|
||||
#define SCPUCR_SPASTOF bit(9)
|
||||
#define SCPUCR_SPASTIG bit(8)
|
||||
#define SCPUCR_SLCDSTIG bit(7)
|
||||
#define SCPUCR_SCPU_CS56_EP bit(6)
|
||||
#define SCPUCR_SCPU_CMD_EP bit(5)
|
||||
#define SCPUCR_SCPU_ADDR_EP bit(4)
|
||||
#define SCPUCR_SCPDPU bit(3)
|
||||
#define SCPUCR_SCPU_A2319_EP bit(0)
|
||||
|
||||
#endif /* HD64461_STBSYS_H */
|
@ -0,0 +1,97 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Hitachi HD64461 Timer Registers
|
||||
* Copyright (C) 2004 Marcel Telka
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of the copyright holders nor the names of their
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Written by Marcel Telka <marcel@telka.sk>, 2004.
|
||||
*
|
||||
* Documentation:
|
||||
* [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller",
|
||||
* 1st Edition, July 1998, Order Number: ADE-602-076
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HD64461_TIMER_H
|
||||
#define HD64461_TIMER_H
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#if LANGUAGE == C
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Timer Registers */
|
||||
|
||||
#if LANGUAGE == C
|
||||
typedef volatile struct TIMER_registers {
|
||||
uint16_t tcvr1;
|
||||
uint16_t tcvr0;
|
||||
uint16_t trvr1;
|
||||
uint16_t trvr0;
|
||||
uint16_t tcr1;
|
||||
uint16_t tcr0;
|
||||
uint16_t tirr;
|
||||
uint16_t ter;
|
||||
} TIMER_registers_t;
|
||||
#endif /* LANGUAGE == C */
|
||||
|
||||
#define TCVR1_OFFSET 0x00
|
||||
#define TCVR0_OFFSET 0x02
|
||||
#define TRVR1_OFFSET 0x04
|
||||
#define TRVR0_OFFSET 0x06
|
||||
#define TCR1_OFFSET 0x08
|
||||
#define TCR0_OFFSET 0x0A
|
||||
#define TIRR_OFFSET 0x0C
|
||||
#define TER_OFFSET 0x0E
|
||||
|
||||
/* TCR1 bits */
|
||||
#define TCR1_ETMO1 bit(3)
|
||||
#define TCR1_PST1_MASK bits(2,1)
|
||||
#define TCR1_PST1(x) bits_val(2,1,x)
|
||||
#define get_TCR1_PST1(x) bits_get(2,1,x)
|
||||
#define TCR1_T1STP bit(0)
|
||||
|
||||
/* TCR0 bits */
|
||||
#define TCR0_ETMO0 bit(3)
|
||||
#define TCR0_PST0_MASK bits(2,1)
|
||||
#define TCR0_PST0(x) bits_val(2,1,x)
|
||||
#define get_TCR0_PST0(x) bits_get(2,1,x)
|
||||
#define TCR0_T0STP bit(0)
|
||||
|
||||
/* TIRR bits */
|
||||
#define TIRR_TMU1R bit(1)
|
||||
#define TIRR_TMU0R bit(0)
|
||||
|
||||
/* TER bits */
|
||||
#define TER_TMU1E bit(1)
|
||||
#define TER_TMU0E bit(0)
|
||||
|
||||
#endif /* HD64461_TIMER_H */
|
Loading…
Reference in New Issue