1 /*
2  * Copyright (c) 2023 Arm Limited. All rights reserved.
3  *
4  * Licensed under the Apache License Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing software
11  * distributed under the License is distributed on an "AS IS" BASIS
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "device_cfg.h"
18 #include "gfc100_eflash_drv.h"
19 #include "platform_base_address.h"
20 
21 /* ======= Peripheral configuration structure definitions ======= */
22 /** GFC-100 eflash driver structures */
23 #ifdef GFC100_EFLASH0_S
24 static const struct gfc100_eflash_dev_cfg_t GFC100_EFLASH0_CFG_S = {
25     .base = MUSCA_B1_EFLASH0_REG_MAP_S_BASE};
26 static struct gfc100_eflash_dev_data_t GFC100_EFLASH0_DATA_S = {
27     .is_initialized = false,
28     .flash_size = 0};
29 struct gfc100_eflash_dev_t GFC100_EFLASH0_DEV_S = {&(GFC100_EFLASH0_CFG_S),
30                                                    &(GFC100_EFLASH0_DATA_S)};
31 #endif
32 
33 #ifdef GFC100_EFLASH1_S
34 static const struct gfc100_eflash_dev_cfg_t GFC100_EFLASH1_CFG_S = {
35     .base = MUSCA_B1_EFLASH1_REG_MAP_S_BASE};
36 static struct gfc100_eflash_dev_data_t GFC100_EFLASH1_DATA_S = {
37     .is_initialized = false,
38     .flash_size = 0};
39 struct gfc100_eflash_dev_t GFC100_EFLASH1_DEV_S = {&(GFC100_EFLASH1_CFG_S),
40                                                    &(GFC100_EFLASH1_DATA_S)};
41 #endif
42