blob: f3add6e9e43194e6c75cc5e3cadfc3584284008b [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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) 2005
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 * emimpu.c
40 *
41 * Project:
42 * --------
43 * TK6291
44 *
45 * Description:
46 * ------------
47 * This file implements EMIMPU handler
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 * ==========================================================================
54 * $Log$
55 *
56 * 07 20 2018 janne.mahosenaho
57 * [MOLY00340247] [KAL] Coding Convention change
58 * [KAL] Coding Convention change
59 *
60 * 03 02 2016 janne.mahosenaho
61 * [MOLY00167211] Cache driver cleanup for Elbrus
62 * cache driver cleanup for Elbrus
63 *
64 * 01 22 2016 alva.li
65 * [MOLY00160521] emimpu violate MSBB SW interface including rule check
66 * modify for MSBB SW interface including rule check
67 *
68 * 08 20 2015 alva.li
69 * [MOLY00138240] modify umoly emimpu code for 6292 build error
70 * add EMI_MPU_VIO_INFO in emimpu.h
71 *
72 * 08 20 2015 alva.li
73 * [MOLY00138240] modify umoly emimpu code for 6292 build error
74 * Delete build error emimpu code
75 *
76 * 05 05 2015 yaohua.liu
77 * [MOLY00107927] [TK6291] Add emimpu module to UMOLY
78 * fix RMPU master id display error.
79 *
80 * 04 28 2015 yaohua.liu
81 * [MOLY00107927] [TK6291] Add emimpu module to UMOLY
82 * change output API to kal_assert_trace. (from QMei)
83 *
84 * 04 28 2015 yaohua.liu
85 * [MOLY00107927] [TK6291] Add emimpu module to UMOLY
86 * fix emimpu_dump_status() API undefinition in SP
87 *
88 * 04 22 2015 yaohua.liu
89 * [MOLY00107927] [TK6291] Add emimpu module to UMOLY
90 * fix NULL pointer structure issue.
91 *
92 * 04 20 2015 yaohua.liu
93 * [MOLY00107927] [TK6291] Add emimpu module to UMOLY
94 *
95 * 11 14 2013 yaohua.liu
96 * [MOLY00046471] [MT6290][Driver][RMPU] Re-architecture EMIMPU feature
97 *
98 * 09 27 2013 yaohua.liu
99 * [MOLY00037377] [MT6290][Driver] Enable RMPU Assert Feature
100 * Add emimpu_violation_ctl() API to control interrupt mask and bypass assert.
101 *
102 * 09 16 2013 yaohua.liu
103 * [MOLY00037871] [MT6290][Driver][RMPU] Add EMI clock control in RMPU driver
104 *
105 * 09 11 2013 yaohua.liu
106 * [MOLY00037377] [MT6290][Driver] Enable RMPU Assert Feature
107 * check DHL_SUPPORT in emimpu.c
108 *
109 * 09 11 2013 yaohua.liu
110 * [MOLY00037377] [MT6290][Driver] Enable RMPU Assert Feature
111 * Update RMPU implements code.
112 *
113 ****************************************************************************/
114
115#include "kal_public_defs.h"
116#include "kal_public_api.h"
117#include "kal_general_types.h"
118#include "kal_internal_def.h"
119#include "kal_internal_api.h"
120
121#include "reg_base.h"
122#include "init.h"
123#include "emimpu.h"
124#include "intrCtrl.h"
125#include "drv_hisr.h"
126#include "mpu.h"
127#if defined(__DHL_MODULE__)
128#include "dhl_trace.h"
129#endif
130
131//#if defined(__MTK_TARGET__)
132//remove for MSBB #include "SST_trc.h"
133//#endif /* __MTK_TARGET__ */
134
135//#if defined(MT6290) && defined(EMI_MPU_ENABLE)
136
137void emimpu_dump_status(EMI_MPU_VIO_INFO *emi_mpu_vio_info) {}
138
139void emimpu_lisr(void) {}
140void emimpu_init(void) {}