MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
ip_platform.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/* Copyright 2022-2023 NXP */
3
/* */
4
/* SPDX-License-Identifier: BSD-3-Clause */
5
/* */
6
/* Redistribution and use in source and binary forms, with or without */
7
/* modification, are permitted provided that the following conditions are */
8
/* met: */
9
/* */
10
/* 1. Redistributions of source code must retain the above copyright */
11
/* notice, this list of conditions and the following disclaimer. */
12
/* */
13
/* 2. Redistributions in binary form must reproduce the above copyright */
14
/* notice, this list of conditions and the following disclaimer in the */
15
/* documentation and/or other materials provided with the distribution. */
16
/* */
17
/* 3. Neither the name of the copyright holder nor the names of its */
18
/* contributors may be used to endorse or promote products derived from */
19
/* this software without specific prior written permission. */
20
/* */
21
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS */
22
/* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
23
/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
24
/* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
25
/* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
26
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
27
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
28
/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
29
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
30
/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
31
/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
32
/*--------------------------------------------------------------------------*/
33
38
39
#ifndef IP_PLATFORM_H
40
#define IP_PLATFORM_H
41
42
#include "fsl_device_registers.h"
43
44
/* ================================================================================ */
45
/* ================ Peripheral declaration ================ */
46
/* ================================================================================ */
47
48
// Define base address of PUF
49
#define PUF_SFR_BASE PUF
50
#define PUF_SFR_NAME(sfr) sfr
51
#define PUF_SFR_PREFIX PUF_
52
#define PUF_SFR_SUFFIX_MSK _MASK
53
#define PUF_SFR_SUFFIX_POS _SHIFT
54
55
56
// Define base address of CSS
57
#define ELS_SFR_BASE ELS
58
#define ELS_SFR_NAME(sfr) sfr
59
#define ELS_SFR_PREFIX ELS_
60
61
// Define base address of PKC
62
#define PKC_SFR_BASE PKC
63
#define PKC_SFR_NAME(sfr) PKC_ ## sfr
64
#define PKC_SFR_PREFIX PKC_PKC_
65
#define PKC_SFR_SUFFIX_MSK _MASK
66
#define PKC_SFR_SUFFIX_POS _SHIFT
67
68
// PKC_RAM base address is not defined in any header file
69
#define PKC_RAM_ADDR ((uint32_t) 0x5015A000)
70
#define PKC_RAM_SIZE ((uint32_t)0x2000u)
71
#define PKC_WORD_SIZE 8u
72
73
// Define base address of TRNG
74
#define TRNG_SFR_BASE TRNG
75
#define TRNG_SFR_NAME(sfr) sfr
76
#define TRNG_SFR_PREFIX TRNG_
77
#define TRNG_SFR_SUFFIX_MSK _MASK
78
#define TRNG_SFR_SUFFIX_POS _SHIFT
79
80
// ELS version
81
#define ELS_HW_VERSION_REVISION 1
82
#define ELS_HW_VERSION_MINOR 16
83
#define ELS_HW_VERSION_MAJOR 2
84
#define ELS_HW_VERSION_FW_REVISION 1
85
#define ELS_HW_VERSION_FW_MINOR 2
86
#define ELS_HW_VERSION_FW_MAJOR 1
87
88
// Interrupt definitions
89
#define CSS_INTERRUPT_BUSY_NUMBER ELS_IRQn
90
#define CSS_INTERRUPT_ERR_NUMBER ELS_IRQn
91
#define CSS_INTERRUPT_IRQ_NUMBER ELS_IRQn
92
#define GDET_INTERRUPT_IRQ_NUMBER ELS_GDET_IRQ_IRQn
93
#define GDET_INTERRUPT_ERR_NUMBER ELS_GDET_ERR_IRQn
94
95
96
/* If we are supposed to determine the CSSv2 base address at link time, do not use the definitions from ip_css.h
97
* Redefine CSS as an extern pointer.
98
*/
99
#undef CSS_BASE
100
extern
void
* ip_css_base;
101
#define CSS_BASE ip_css_base
102
103
#endif
platform
rw61x
ip_platform.h
Generated by
1.16.1