blob: 17d859db0da443ceca00d34147c5fb64e9d0641f [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* gpt_hw.h
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* This file is intends for GPT driver.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
* removed!
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef GPT_HW_H
#define GPT_HW_H
#include "drv_features_gpt.h"
#include "reg_base.h"
#if !defined(DRV_GPT_OFF)
//MMP address
//#define GPT_base 0x80100000
#define GPT1_CTRL (GPT_base+0x00)
#define GPT1_LEN (GPT_base+0x04)
#define GPT2_CTRL (GPT_base+0x08)
#define GPT2_LEN (GPT_base+0x0c)
#define GPT_STS (GPT_base+0x10)
#define GPT1_PRESCALER (GPT_base+0x14)
#define GPT2_PRESCALER (GPT_base+0x18)
#if defined(DRV_GPT_GPT3)
#define GPT3_CTRL (GPT_base+0x1c)
#define GPT3_LEN (GPT_base+0x20)
#define GPT3_PRESCALER (GPT_base+0x24)
#endif
#if defined(DRV_GPT_GPT4)
#define GPT4_CTRL (GPT_base+0x28)
#define GPT4_LEN (GPT_base+0x2c)
#endif
#endif /*#if !defined(DRV_GPT_OFF)*/
//GPT_CTRL
#define GPT_CTRL_AUTOMODE 0x4000
#define GPT_CTRL_Enable 0x8000
#define GPT_CTRL_Disable 0x0000
#define GPT3_ENABLE 0x1
#define GPT4_ENABLE 0x1
#define GPT4_LOCKED 0x02
//GPT_STS
#define GPT_STS_1 0x0001
#define GPT_STS_2 0x0002
//GPT_PRESCALER
#define GPT_PRESCALER_div2 0x0000
#define GPT_PRESCALER_div4 0x0001
#define GPT_PRESCALER_div8 0x0002
#define GPT_PRESCALER_div16 0x0003
#define GPT_PRESCALER_div32 0x0004
#define GPT_PRESCALER_div64 0x0005
#define GPT_PRESCALER_div128 0x0006
#define GPT_PRESCALER_div256 0x0007
#endif /*GPT_HW_H*/