2022-11-10 22:22:48 +08:00
|
|
|
|
/*
|
|
|
|
|
* 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: fmio_g.c
|
|
|
|
|
* Date: 2022-06-20 21:05:07
|
|
|
|
|
* LastEditTime: 2022-06-20 21:05:07
|
2023-05-11 10:25:21 +08:00
|
|
|
|
* Description: This file is for mio static configuration
|
2022-11-10 22:22:48 +08:00
|
|
|
|
*
|
|
|
|
|
* Modify History:
|
|
|
|
|
* Ver Who Date Changes
|
|
|
|
|
* ----- ------ -------- --------------------------------------
|
2023-05-11 10:25:21 +08:00
|
|
|
|
* 1.0 liushengming 2022/06/20 first commit
|
2022-11-10 22:22:48 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/***************************** Include Files *********************************/
|
|
|
|
|
#include "fparameters.h"
|
|
|
|
|
#include "fmio_hw.h"
|
|
|
|
|
#include "fmio.h"
|
|
|
|
|
|
|
|
|
|
/************************** Constant Definitions *****************************/
|
|
|
|
|
|
2023-05-11 10:25:21 +08:00
|
|
|
|
const FMioConfig FMioConfigTbl[FMIO_NUM] =
|
2022-11-10 22:22:48 +08:00
|
|
|
|
{
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO0_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO0_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO0_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO0_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO1_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO1_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO1_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO1_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO2_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO2_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO2_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO2_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO3_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO3_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO3_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO3_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO4_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO4_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO4_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO4_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO5_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO5_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO5_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO5_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO6_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO6_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO6_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO6_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO7_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO7_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO7_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO7_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
2023-05-11 10:25:21 +08:00
|
|
|
|
#if defined(CONFIG_TARGET_E2000)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO8_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO8_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO8_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO8_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO9_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO9_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO9_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO9_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO10_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO10_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO10_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO10_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO11_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO11_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO11_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO11_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO12_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO12_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO12_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO12_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO13_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO13_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO13_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO13_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO14_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO14_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO14_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO14_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-05-11 10:25:21 +08:00
|
|
|
|
.instance_id = FMIO15_ID,
|
|
|
|
|
.func_base_addr = FMIO_BASE_ADDR(FMIO15_ID),
|
|
|
|
|
.irq_num = FMIO_IRQ_NUM(FMIO15_ID),
|
|
|
|
|
.mio_base_addr = FMIO_BASE_SET_ADDR(FMIO15_ID)
|
2022-11-10 22:22:48 +08:00
|
|
|
|
}
|
2023-05-11 10:25:21 +08:00
|
|
|
|
#endif
|
2022-11-10 22:22:48 +08:00
|
|
|
|
};
|