You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.4 KiB
80 lines
2.4 KiB
/*
|
|
* 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: fi3c_g.c
|
|
* Date: 2023-9-11 14:53:42
|
|
* LastEditTime: 2023-9-11 08:36:14
|
|
* Description: This file is for I3C static configuration
|
|
*
|
|
* Modify History:
|
|
* Ver Who Date Changes
|
|
* ----- ------ -------- --------------------------------------
|
|
* 1.0 zhangyan 2023/9/11 first commit
|
|
*/
|
|
|
|
|
|
/* - This file contains a configuration table that specifies the configuration
|
|
- 驱动全局变量定义,包括静态配置参数 */
|
|
|
|
/***************************** Include Files *********************************/
|
|
|
|
#include "ftypes.h"
|
|
#include "fparameters.h"
|
|
#include "fi3c.h"
|
|
#include "sdkconfig.h"
|
|
/************************** Constant Definitions *****************************/
|
|
|
|
/**************************** Type Definitions *******************************/
|
|
|
|
/***************** Macros (Inline Functions) Definitions *********************/
|
|
|
|
/************************** Function Prototypes ******************************/
|
|
|
|
/************************** Variable Definitions *****************************/
|
|
/**
|
|
* @name: FI3C_CONFIG_TBL
|
|
* @msg: I3C驱动的默认配置参数
|
|
*/
|
|
const FI3cConfig FI3C_CONFIG_TBL[FI3C_NUM] =
|
|
{
|
|
[FI3C0_ID] =
|
|
{
|
|
.instance_id = FI3C0_ID,
|
|
.base_addr = FI3C0_BASE_ADDR,
|
|
.irq_num = FI3C0_IRQ_NUM,
|
|
.irq_prority = 0,
|
|
},
|
|
[FI3C1_ID] =
|
|
{
|
|
.instance_id = FI3C1_ID,
|
|
.base_addr = FI3C1_BASE_ADDR,
|
|
.irq_num = FI3C1_IRQ_NUM,
|
|
.irq_prority = 0,
|
|
},
|
|
#if defined(CONFIG_TARGET_E2000)
|
|
[FI3C2_ID] =
|
|
{
|
|
.instance_id = FI3C2_ID,
|
|
.base_addr = FI3C2_BASE_ADDR,
|
|
.irq_num = FI3C2_IRQ_NUM,
|
|
.irq_prority = 0,
|
|
},
|
|
[FI3C3_ID] =
|
|
{
|
|
.instance_id = FI3C3_ID,
|
|
.base_addr = FI3C3_BASE_ADDR,
|
|
.irq_num = FI3C3_IRQ_NUM,
|
|
.irq_prority = 0,
|
|
},
|
|
#endif
|
|
};
|
|
|