rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* Copyright Statement: |
| 2 | * |
| 3 | * This software/firmware and related documentation ("MediaTek Software") are |
| 4 | * protected under relevant copyright laws. The information contained herein is |
| 5 | * confidential and proprietary to MediaTek Inc. and/or its licensors. Without |
| 6 | * the prior written permission of MediaTek inc. and/or its licensors, any |
| 7 | * reproduction, modification, use or disclosure of MediaTek Software, and |
| 8 | * information contained herein, in whole or in part, shall be strictly |
| 9 | * prohibited. |
| 10 | * |
| 11 | * MediaTek Inc. (C) 2010. All rights reserved. |
| 12 | * |
| 13 | * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 14 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 15 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER |
| 16 | * ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL |
| 17 | * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED |
| 18 | * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR |
| 19 | * NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH |
| 20 | * RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, |
| 21 | * INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES |
| 22 | * TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. |
| 23 | * RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO |
| 24 | * OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK |
| 25 | * SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE |
| 26 | * RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR |
| 27 | * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S |
| 28 | * ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE |
| 29 | * RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE |
| 30 | * MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE |
| 31 | * CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 32 | * |
| 33 | * The following software/firmware and/or related documentation ("Media Tek |
| 34 | * Software") have been modified by MediaTek Inc. All revisions are subject to |
| 35 | * any receiver's applicable license agreements with MediaTek Inc. |
| 36 | */ |
| 37 | |
| 38 | #ifndef __DRAMC_CUSTOM_H__ |
| 39 | #define __DRAMC_CUSTOM_H__ |
| 40 | |
| 41 | #include <emi.h> |
| 42 | |
| 43 | #if defined(LOW_POWER_DDR4) |
| 44 | EMI_SETTINGS g_default_emi_setting = { |
| 45 | .type = 0x0006, |
| 46 | .EMI_CONA_VAL = 0x20103034, |
| 47 | .EMI_CONF_VAL = 0x421000, |
| 48 | .EMI_CONH_VAL = 0x00020003, |
| 49 | .DRAMC_ACTIME_UNION = { |
| 50 | 0x00000000, /* U 00 */ |
| 51 | 0x00000000, /* U 01 */ |
| 52 | 0x00000000, /* U 02 */ |
| 53 | 0x00000000, /* U 03 */ |
| 54 | 0x00000000, /* U 04 */ |
| 55 | 0x00000000, /* U 05 */ |
| 56 | 0x00000000, /* U 06 */ |
| 57 | 0x00000000, /* U 07 */ |
| 58 | }, |
| 59 | .CHN0_EMI_CONA_VAL = 0x04002010, |
| 60 | .CHN1_EMI_CONA_VAL = 0x04002010, |
| 61 | .DRAM_RANK_SIZE = {0x20000000, 0x0, 0x0, 0x0}, |
| 62 | .dram_cbt_mode_extern = CBT_R0_R1_NORMAL, |
| 63 | .iLPDDR3_MODE_REG_5 = 0xFF, |
| 64 | .PIN_MUX_TYPE = 0, /* PIN_MUX_TYPE for tablet */ |
| 65 | }; |
| 66 | #else |
| 67 | EMI_SETTINGS g_default_emi_setting = { |
| 68 | .type = 0x0003, |
| 69 | .EMI_CONA_VAL = 0x00003036, |
| 70 | .EMI_CONF_VAL = 0x00000000, |
| 71 | .EMI_CONH_VAL = 0x11110003, |
| 72 | .DRAMC_ACTIME_UNION = { |
| 73 | 0x00000000, /* U 00 */ |
| 74 | 0x00000000, /* U 01 */ |
| 75 | 0x00000000, /* U 02 */ |
| 76 | 0x00000000, /* U 03 */ |
| 77 | 0x00000000, /* U 04 */ |
| 78 | 0x00000000, /* U 05 */ |
| 79 | 0x00000000, /* U 06 */ |
| 80 | 0x00000000, /* U 07 */ |
| 81 | }, |
| 82 | .CHN0_EMI_CONA_VAL = 0x00110012, |
| 83 | .CHN1_EMI_CONA_VAL = 0x00110012, |
| 84 | .DRAM_RANK_SIZE = {0x10000000, 0x0, 0x0, 0x0}, |
| 85 | .dram_cbt_mode_extern = CBT_R0_R1_BYTE, |
| 86 | .iLPDDR3_MODE_REG_5 = 0x00000006, |
| 87 | .PIN_MUX_TYPE = 0, /* PIN_MUX_TYPE for tablet */ |
| 88 | }; |
| 89 | #endif |
| 90 | |
| 91 | #endif /* __DRAMC_CUSTOM_H__ */ |
| 92 | |