300 lines
12 KiB
C
300 lines
12 KiB
C
/*
|
||
* Copyright : (C) 2022 Phytium Information Technology, Inc.
|
||
* All Rights Reserved.
|
||
*
|
||
* This program is OPEN SOURCE software: you can redistribute it and/or modify it
|
||
* under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
|
||
* either version 1.0 of the License, or (at your option) any later version.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
|
||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||
* See the Phytium Public License for more details.
|
||
*
|
||
*
|
||
* FilePath: fparameters.h
|
||
* Date: 2022-02-11 13:33:28
|
||
* LastEditTime: 2022-02-17 18:00:50
|
||
* Description: This file is for
|
||
*
|
||
* Modify History:
|
||
* Ver Who Date Changes
|
||
* ----- ------ -------- --------------------------------------
|
||
*/
|
||
|
||
#ifndef BOARD_E2000S_PARAMTERERS_H
|
||
#define BOARD_E2000S_PARAMTERERS_H
|
||
|
||
#ifdef __cplusplus
|
||
extern "C"
|
||
{
|
||
#endif
|
||
/***************************** Include Files *********************************/
|
||
#include "fparameters_comm.h"
|
||
|
||
/************************** Constant Definitions *****************************/
|
||
#define CORE0_AFF 0x200U
|
||
#define FCORE_NUM 1
|
||
|
||
#define FT_CPUS_NR 1U
|
||
|
||
/* GIC offset */
|
||
#define FT_GIC_REDISTRUBUTIOR_OFFSET 2
|
||
|
||
/* register offset of iopad function / pull / driver strength */
|
||
#define FIOPAD_AN55_REG0_OFFSET 0x0000U
|
||
#define FIOPAD_AW43_REG0_OFFSET 0x0004U
|
||
#define FIOPAD_AR51_REG0_OFFSET 0x0020U
|
||
#define FIOPAD_AJ51_REG0_OFFSET 0x0024U
|
||
#define FIOPAD_AL51_REG0_OFFSET 0x0028U
|
||
#define FIOPAD_AL49_REG0_OFFSET 0x002CU
|
||
#define FIOPAD_AN47_REG0_OFFSET 0x0030U
|
||
#define FIOPAD_AR47_REG0_OFFSET 0x0034U
|
||
#define FIOPAD_BA53_REG0_OFFSET 0x0038U
|
||
#define FIOPAD_BA55_REG0_OFFSET 0x003CU
|
||
#define FIOPAD_AW53_REG0_OFFSET 0x0040U
|
||
#define FIOPAD_AW55_REG0_OFFSET 0x0044U
|
||
#define FIOPAD_AU51_REG0_OFFSET 0x0048U
|
||
#define FIOPAD_AN53_REG0_OFFSET 0x004CU
|
||
#define FIOPAD_AL55_REG0_OFFSET 0x0050U
|
||
#define FIOPAD_AJ55_REG0_OFFSET 0x0054U
|
||
#define FIOPAD_AJ53_REG0_OFFSET 0x0058U
|
||
#define FIOPAD_AG55_REG0_OFFSET 0x005CU
|
||
#define FIOPAD_AG53_REG0_OFFSET 0x0060U
|
||
#define FIOPAD_AE55_REG0_OFFSET 0x0064U
|
||
#define FIOPAD_AC55_REG0_OFFSET 0x0068U
|
||
#define FIOPAD_AC53_REG0_OFFSET 0x006CU
|
||
#define FIOPAD_AR45_REG0_OFFSET 0x0070U
|
||
#define FIOPAD_BA51_REG0_OFFSET 0x0074U
|
||
#define FIOPAD_BA49_REG0_OFFSET 0x0078U
|
||
#define FIOPAD_AR55_REG0_OFFSET 0x007CU
|
||
#define FIOPAD_AU55_REG0_OFFSET 0x0080U
|
||
#define FIOPAD_AR53_REG0_OFFSET 0x0084U
|
||
#define FIOPAD_BA45_REG0_OFFSET 0x0088U
|
||
#define FIOPAD_AW51_REG0_OFFSET 0x008CU
|
||
#define FIOPAD_A31_REG0_OFFSET 0x0090U
|
||
#define FIOPAD_R53_REG0_OFFSET 0x0094U
|
||
#define FIOPAD_R55_REG0_OFFSET 0x0098U
|
||
#define FIOPAD_U55_REG0_OFFSET 0x009CU
|
||
#define FIOPAD_W55_REG0_OFFSET 0x00A0U
|
||
#define FIOPAD_U53_REG0_OFFSET 0x00A4U
|
||
#define FIOPAD_AA53_REG0_OFFSET 0x00A8U
|
||
#define FIOPAD_AA55_REG0_OFFSET 0x00ACU
|
||
#define FIOPAD_AW47_REG0_OFFSET 0x00B0U
|
||
#define FIOPAD_AU47_REG0_OFFSET 0x00B4U
|
||
#define FIOPAD_A35_REG0_OFFSET 0x00B8U
|
||
#define FIOPAD_C35_REG0_OFFSET 0x00BCU
|
||
#define FIOPAD_C33_REG0_OFFSET 0x00C0U
|
||
#define FIOPAD_A33_REG0_OFFSET 0x00C4U
|
||
#define FIOPAD_A37_REG0_OFFSET 0x00C8U
|
||
#define FIOPAD_A39_REG0_OFFSET 0x00CCU
|
||
#define FIOPAD_A41_REG0_OFFSET 0x00D0U
|
||
#define FIOPAD_C41_REG0_OFFSET 0x00D4U
|
||
#define FIOPAD_A43_REG0_OFFSET 0x00D8U
|
||
#define FIOPAD_A45_REG0_OFFSET 0x00DCU
|
||
#define FIOPAD_C45_REG0_OFFSET 0x00E0U
|
||
#define FIOPAD_A47_REG0_OFFSET 0x00E4U
|
||
#define FIOPAD_A29_REG0_OFFSET 0x00E8U
|
||
#define FIOPAD_C29_REG0_OFFSET 0x00ECU
|
||
#define FIOPAD_C27_REG0_OFFSET 0x00F0U
|
||
#define FIOPAD_A27_REG0_OFFSET 0x00F4U
|
||
#define FIOPAD_AJ49_REG0_OFFSET 0x00F8U
|
||
#define FIOPAD_AL45_REG0_OFFSET 0x00FCU
|
||
#define FIOPAD_AL43_REG0_OFFSET 0x0100U
|
||
#define FIOPAD_AN45_REG0_OFFSET 0x0104U
|
||
#define FIOPAD_AG47_REG0_OFFSET 0x0108U
|
||
#define FIOPAD_AJ47_REG0_OFFSET 0x010CU
|
||
#define FIOPAD_AG45_REG0_OFFSET 0x0110U
|
||
#define FIOPAD_AE51_REG0_OFFSET 0x0114U
|
||
#define FIOPAD_AE49_REG0_OFFSET 0x0118U
|
||
#define FIOPAD_AG51_REG0_OFFSET 0x011CU
|
||
#define FIOPAD_AJ45_REG0_OFFSET 0x0120U
|
||
#define FIOPAD_AC51_REG0_OFFSET 0x0124U
|
||
#define FIOPAD_AC49_REG0_OFFSET 0x0128U
|
||
#define FIOPAD_AE47_REG0_OFFSET 0x012CU
|
||
#define FIOPAD_W47_REG0_OFFSET 0x0130U
|
||
#define FIOPAD_W51_REG0_OFFSET 0x0134U
|
||
#define FIOPAD_W49_REG0_OFFSET 0x0138U
|
||
#define FIOPAD_U51_REG0_OFFSET 0x013CU
|
||
#define FIOPAD_U49_REG0_OFFSET 0x0140U
|
||
#define FIOPAD_AE45_REG0_OFFSET 0x0144U
|
||
#define FIOPAD_AC45_REG0_OFFSET 0x0148U
|
||
#define FIOPAD_AE43_REG0_OFFSET 0x014CU
|
||
#define FIOPAD_AA43_REG0_OFFSET 0x0150U
|
||
#define FIOPAD_AA45_REG0_OFFSET 0x0154U
|
||
#define FIOPAD_W45_REG0_OFFSET 0x0158U
|
||
#define FIOPAD_AA47_REG0_OFFSET 0x015CU
|
||
#define FIOPAD_U45_REG0_OFFSET 0x0160U
|
||
#define FIOPAD_G55_REG0_OFFSET 0x0164U
|
||
#define FIOPAD_J55_REG0_OFFSET 0x0168U
|
||
#define FIOPAD_L53_REG0_OFFSET 0x016CU
|
||
#define FIOPAD_C55_REG0_OFFSET 0x0170U
|
||
#define FIOPAD_E55_REG0_OFFSET 0x0174U
|
||
#define FIOPAD_J53_REG0_OFFSET 0x0178U
|
||
#define FIOPAD_L55_REG0_OFFSET 0x017CU
|
||
#define FIOPAD_N55_REG0_OFFSET 0x0180U
|
||
#define FIOPAD_C53_REG0_OFFSET 0x0184U
|
||
#define FIOPAD_E53_REG0_OFFSET 0x0188U
|
||
#define FIOPAD_E27_REG0_OFFSET 0x018CU
|
||
#define FIOPAD_G27_REG0_OFFSET 0x0190U
|
||
#define FIOPAD_N37_REG0_OFFSET 0x0194U
|
||
#define FIOPAD_N35_REG0_OFFSET 0x0198U
|
||
#define FIOPAD_J29_REG0_OFFSET 0x019CU
|
||
#define FIOPAD_N29_REG0_OFFSET 0x01A0U
|
||
#define FIOPAD_L29_REG0_OFFSET 0x01A4U
|
||
#define FIOPAD_N41_REG0_OFFSET 0x01A8U
|
||
#define FIOPAD_N39_REG0_OFFSET 0x01ACU
|
||
#define FIOPAD_L27_REG0_OFFSET 0x01B0U
|
||
#define FIOPAD_J27_REG0_OFFSET 0x01B4U
|
||
#define FIOPAD_J25_REG0_OFFSET 0x01B8U
|
||
#define FIOPAD_E25_REG0_OFFSET 0x01BCU
|
||
#define FIOPAD_G25_REG0_OFFSET 0x01C0U
|
||
#define FIOPAD_N23_REG0_OFFSET 0x01C4U
|
||
#define FIOPAD_L25_REG0_OFFSET 0x01C8U
|
||
#define FIOPAD_J33_REG0_OFFSET 0x01CCU
|
||
#define FIOPAD_J35_REG0_OFFSET 0x01D0U
|
||
#define FIOPAD_G37_REG0_OFFSET 0x01D4U
|
||
#define FIOPAD_E39_REG0_OFFSET 0x01D8U
|
||
#define FIOPAD_L39_REG0_OFFSET 0x01DCU
|
||
#define FIOPAD_C39_REG0_OFFSET 0x01E0U
|
||
#define FIOPAD_E37_REG0_OFFSET 0x01E4U
|
||
#define FIOPAD_L41_REG0_OFFSET 0x01E8U
|
||
#define FIOPAD_J39_REG0_OFFSET 0x01ECU
|
||
#define FIOPAD_J37_REG0_OFFSET 0x01F0U
|
||
#define FIOPAD_L35_REG0_OFFSET 0x01F4U
|
||
#define FIOPAD_E33_REG0_OFFSET 0x01F8U
|
||
#define FIOPAD_E31_REG0_OFFSET 0x01FCU
|
||
#define FIOPAD_G31_REG0_OFFSET 0x0200U
|
||
#define FIOPAD_J31_REG0_OFFSET 0x0204U
|
||
#define FIOPAD_L33_REG0_OFFSET 0x0208U
|
||
#define FIOPAD_N31_REG0_OFFSET 0x020CU
|
||
#define FIOPAD_R47_REG0_OFFSET 0x0210U
|
||
#define FIOPAD_R45_REG0_OFFSET 0x0214U
|
||
#define FIOPAD_N47_REG0_OFFSET 0x0218U
|
||
#define FIOPAD_N51_REG0_OFFSET 0x021CU
|
||
#define FIOPAD_L51_REG0_OFFSET 0x0220U
|
||
#define FIOPAD_J51_REG0_OFFSET 0x0224U
|
||
#define FIOPAD_J41_REG0_OFFSET 0x0228U
|
||
#define FIOPAD_E43_REG0_OFFSET 0x022CU
|
||
#define FIOPAD_G43_REG0_OFFSET 0x0230U
|
||
#define FIOPAD_J43_REG0_OFFSET 0x0234U
|
||
#define FIOPAD_J45_REG0_OFFSET 0x0238U
|
||
#define FIOPAD_N45_REG0_OFFSET 0x023CU
|
||
#define FIOPAD_L47_REG0_OFFSET 0x0240U
|
||
#define FIOPAD_L45_REG0_OFFSET 0x0244U
|
||
#define FIOPAD_N49_REG0_OFFSET 0x0248U
|
||
#define FIOPAD_J49_REG0_OFFSET 0x024CU
|
||
|
||
#define FIOPAD_REG0_BEG_OFFSET FIOPAD_AN55_REG0_OFFSET
|
||
#define FIOPAD_REG0_END_OFFSET FIOPAD_J49_REG0_OFFSET
|
||
|
||
/* register offset of iopad delay */
|
||
#define FIOPAD_AJ51_REG1_OFFSET 0x1024U
|
||
#define FIOPAD_AL51_REG1_OFFSET 0x1028U
|
||
#define FIOPAD_AL49_REG1_OFFSET 0x102CU
|
||
#define FIOPAD_AN47_REG1_OFFSET 0x1030U
|
||
#define FIOPAD_AR47_REG1_OFFSET 0x1034U
|
||
#define FIOPAD_AJ53_REG1_OFFSET 0x1058U
|
||
#define FIOPAD_AG55_REG1_OFFSET 0x105CU
|
||
#define FIOPAD_AG53_REG1_OFFSET 0x1060U
|
||
#define FIOPAD_AE55_REG1_OFFSET 0x1064U
|
||
#define FIOPAD_BA51_REG1_OFFSET 0x1074U
|
||
#define FIOPAD_BA49_REG1_OFFSET 0x1078U
|
||
#define FIOPAD_AR55_REG1_OFFSET 0x107CU
|
||
#define FIOPAD_AU55_REG1_OFFSET 0x1080U
|
||
#define FIOPAD_A41_REG1_OFFSET 0x10D0U
|
||
#define FIOPAD_C41_REG1_OFFSET 0x10D4U
|
||
#define FIOPAD_A43_REG1_OFFSET 0x10D8U
|
||
#define FIOPAD_A45_REG1_OFFSET 0x10DCU
|
||
#define FIOPAD_C45_REG1_OFFSET 0x10E0U
|
||
#define FIOPAD_A47_REG1_OFFSET 0x10E4U
|
||
#define FIOPAD_A29_REG1_OFFSET 0x10E8U
|
||
#define FIOPAD_C29_REG1_OFFSET 0x10ECU
|
||
#define FIOPAD_C27_REG1_OFFSET 0x10F0U
|
||
#define FIOPAD_A27_REG1_OFFSET 0x10F4U
|
||
#define FIOPAD_AJ49_REG1_OFFSET 0x10F8U
|
||
#define FIOPAD_AL45_REG1_OFFSET 0x10FCU
|
||
#define FIOPAD_AL43_REG1_OFFSET 0x1100U
|
||
#define FIOPAD_AN45_REG1_OFFSET 0x1104U
|
||
#define FIOPAD_AG47_REG1_OFFSET 0x1108U
|
||
#define FIOPAD_AJ47_REG1_OFFSET 0x110CU
|
||
#define FIOPAD_AG45_REG1_OFFSET 0x1110U
|
||
#define FIOPAD_AE51_REG1_OFFSET 0x1114U
|
||
#define FIOPAD_AE49_REG1_OFFSET 0x1118U
|
||
#define FIOPAD_AG51_REG1_OFFSET 0x111CU
|
||
#define FIOPAD_AJ45_REG1_OFFSET 0x1120U
|
||
#define FIOPAD_AC51_REG1_OFFSET 0x1124U
|
||
#define FIOPAD_AC49_REG1_OFFSET 0x1128U
|
||
#define FIOPAD_AE47_REG1_OFFSET 0x112CU
|
||
#define FIOPAD_W47_REG1_OFFSET 0x1130U
|
||
#define FIOPAD_W49_REG1_OFFSET 0x1138U
|
||
#define FIOPAD_U51_REG1_OFFSET 0x113CU
|
||
#define FIOPAD_U49_REG1_OFFSET 0x1140U
|
||
#define FIOPAD_AE45_REG1_OFFSET 0x1144U
|
||
#define FIOPAD_AC45_REG1_OFFSET 0x1148U
|
||
#define FIOPAD_AE43_REG1_OFFSET 0x114CU
|
||
#define FIOPAD_AA43_REG1_OFFSET 0x1150U
|
||
#define FIOPAD_AA45_REG1_OFFSET 0x1154U
|
||
#define FIOPAD_W45_REG1_OFFSET 0x1158U
|
||
#define FIOPAD_AA47_REG1_OFFSET 0x115CU
|
||
#define FIOPAD_U45_REG1_OFFSET 0x1160U
|
||
#define FIOPAD_J55_REG1_OFFSET 0x1168U
|
||
#define FIOPAD_L53_REG1_OFFSET 0x116CU
|
||
#define FIOPAD_C55_REG1_OFFSET 0x1170U
|
||
#define FIOPAD_E55_REG1_OFFSET 0x1174U
|
||
#define FIOPAD_J53_REG1_OFFSET 0x1178U
|
||
#define FIOPAD_L55_REG1_OFFSET 0x117CU
|
||
#define FIOPAD_N55_REG1_OFFSET 0x1180U
|
||
#define FIOPAD_E27_REG1_OFFSET 0x118CU
|
||
#define FIOPAD_G27_REG1_OFFSET 0x1190U
|
||
#define FIOPAD_N37_REG1_OFFSET 0x1194U
|
||
#define FIOPAD_N35_REG1_OFFSET 0x1198U
|
||
#define FIOPAD_J29_REG1_OFFSET 0x119CU
|
||
#define FIOPAD_N29_REG1_OFFSET 0x11A0U
|
||
#define FIOPAD_L29_REG1_OFFSET 0x11A4U
|
||
#define FIOPAD_N41_REG1_OFFSET 0x11A8U
|
||
#define FIOPAD_N39_REG1_OFFSET 0x11ACU
|
||
#define FIOPAD_L27_REG1_OFFSET 0x11B0U
|
||
#define FIOPAD_J27_REG1_OFFSET 0x11B4U
|
||
#define FIOPAD_J25_REG1_OFFSET 0x11B8U
|
||
#define FIOPAD_E25_REG1_OFFSET 0x11BCU
|
||
#define FIOPAD_G25_REG1_OFFSET 0x11C0U
|
||
#define FIOPAD_J33_REG1_OFFSET 0x11CCU
|
||
#define FIOPAD_J35_REG1_OFFSET 0x11D0U
|
||
#define FIOPAD_G37_REG1_OFFSET 0x11D4U
|
||
#define FIOPAD_E39_REG1_OFFSET 0x11D8U
|
||
#define FIOPAD_L39_REG1_OFFSET 0x11DCU
|
||
#define FIOPAD_C39_REG1_OFFSET 0x11E0U
|
||
#define FIOPAD_E37_REG1_OFFSET 0x11E4U
|
||
#define FIOPAD_L41_REG1_OFFSET 0x11E8U
|
||
#define FIOPAD_J39_REG1_OFFSET 0x11ECU
|
||
#define FIOPAD_J37_REG1_OFFSET 0x11F0U
|
||
#define FIOPAD_L35_REG1_OFFSET 0x11F4U
|
||
#define FIOPAD_E33_REG1_OFFSET 0x11F8U
|
||
#define FIOPAD_E31_REG1_OFFSET 0x11FCU
|
||
#define FIOPAD_G31_REG1_OFFSET 0x1200U
|
||
#define FIOPAD_L51_REG1_OFFSET 0x1220U
|
||
#define FIOPAD_J51_REG1_OFFSET 0x1224U
|
||
#define FIOPAD_J41_REG1_OFFSET 0x1228U
|
||
#define FIOPAD_E43_REG1_OFFSET 0x122CU
|
||
#define FIOPAD_G43_REG1_OFFSET 0x1230U
|
||
#define FIOPAD_J43_REG1_OFFSET 0x1234U
|
||
#define FIOPAD_J45_REG1_OFFSET 0x1238U
|
||
#define FIOPAD_N45_REG1_OFFSET 0x123CU
|
||
#define FIOPAD_L47_REG1_OFFSET 0x1240U
|
||
#define FIOPAD_L45_REG1_OFFSET 0x1244U
|
||
#define FIOPAD_N49_REG1_OFFSET 0x1248U
|
||
#define FIOPAD_J49_REG1_OFFSET 0x124CU
|
||
|
||
#define FIOPAD_REG1_BEG_OFFSET FIOPAD_AJ51_REG1_OFFSET
|
||
#define FIOPAD_REG1_END_OFFSET FIOPAD_J49_REG1_OFFSET
|
||
|
||
/*****************************************************************************/
|
||
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
|
||
#endif
|
||
|
||
#endif
|