yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | /******************************************************************************* |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2012 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | ******************************************************************************/ |
| 35 | |
| 36 | /******************************************************************************* |
| 37 | * Filename: |
| 38 | * --------- |
| 39 | * pll.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * UMOLYE |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * PLL Related Functions |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | * ============================================================================ |
| 54 | * $Log$ |
| 55 | * |
| 56 | * 07 31 2019 jun-ying.huang |
| 57 | * [MOLY00425097] [VMOLY][FMA]Add __MD97P__ for Mercury build pass |
| 58 | * . |
| 59 | * |
| 60 | * 03 01 2018 jun-ying.huang |
| 61 | * [MOLY00310598] [95/97 re-arch]PLL co-branch for MT6295 & MT6297 |
| 62 | * Add PLL for 97 - Only for Build pass, function and driver is not ready. |
| 63 | * |
| 64 | * 12 11 2017 jun-ying.huang |
| 65 | * [MOLY00295410] [PLL][MT3967] Add Macro for MT3967 |
| 66 | * . |
| 67 | * |
| 68 | * 10 25 2017 jun-ying.huang |
| 69 | * [MOLY00285159] [PLL][DCM]Add Macro for MT6765(=Cervino) |
| 70 | * . |
| 71 | * |
| 72 | * 10 02 2017 jun-ying.huang |
| 73 | * [MOLY00281611] [93/95 re-arch]PLL co-branch for MT6293 & MT6295 |
| 74 | * . |
| 75 | * |
| 76 | * 09 01 2017 jun-ying.huang |
| 77 | * [MOLY00275084] [6293]Add PLL_SEC Module related code to get SW version. |
| 78 | * . |
| 79 | * |
| 80 | * 08 21 2017 jun-ying.huang |
| 81 | * [MOLY00272509] [Sylvia][PLL]Add MT6771 Macro for PLL due to Sylvia MT6771 Call for check in |
| 82 | * . |
| 83 | * |
| 84 | * 06 09 2017 jun-ying.huang |
| 85 | * [MOLY00244484] [Zion]Add compile option for ZION in PLL. |
| 86 | * Add compile option for ZION and Workaround for CIRQ APB sync issue- Let BUS2x clock use MDBPIPLL_0/6 = 101 MHz |
| 87 | * |
| 88 | * 10 24 2016 jun-ying.huang |
| 89 | * [MOLY00209150] [System Service][PLL]Remove redundant files from UMOLYA PLL |
| 90 | * Remove redundant files from PLL |
| 91 | * |
| 92 | * 06 24 2016 alan-tl.lin |
| 93 | * [MOLY00173527] [PLL] Driver porting |
| 94 | * Fix build error |
| 95 | * |
| 96 | * 06 15 2016 alan-tl.lin |
| 97 | * [MOLY00173527] [PLL] Driver porting |
| 98 | * [PLL] PLL init first porting |
| 99 | * |
| 100 | * |
| 101 | ****************************************************************************/ |
| 102 | |
| 103 | #ifndef __PLL_H__ |
| 104 | #define __PLL_H__ |
| 105 | |
| 106 | /******************************************************************************* |
| 107 | * Locally Used Options |
| 108 | ******************************************************************************/ |
| 109 | |
| 110 | /******************************************************************************* |
| 111 | * Include header files |
| 112 | ******************************************************************************/ |
| 113 | #include "kal_general_types.h" |
| 114 | #include "reg_base.h" |
| 115 | |
| 116 | #if defined(__MD93__) |
| 117 | #include "pll_gen93m17.h" |
| 118 | #elif defined(__MD95__) |
| 119 | #include "pll_gen95.h" |
| 120 | #elif defined(__MD97__) |
| 121 | #include "pll_gen97.h" |
| 122 | #elif defined(__MD97P__) |
| 123 | #include "pll_gen97p.h" |
| 124 | #else |
| 125 | #error "ERROR in PLL define (pll.h)" |
| 126 | #endif |
| 127 | |
| 128 | /******************************************************************************* |
| 129 | * Define exported macro |
| 130 | ******************************************************************************/ |
| 131 | |
| 132 | /******************************************************************************* |
| 133 | * Define data structure |
| 134 | ******************************************************************************/ |
| 135 | |
| 136 | /******************************************************************************* |
| 137 | * Define exported function prototype |
| 138 | ******************************************************************************/ |
| 139 | extern void INT_SetPLL(void); |
| 140 | |
| 141 | #endif /* !__PLL_H__ */ |