Files
luban-lite-t3e-pro/bsp/artinchip/include/drv/fal_cfg.h

37 lines
1.1 KiB
C
Raw Normal View History

2023-08-30 16:21:18 +08:00
/*
2024-09-03 11:16:08 +08:00
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
2023-08-30 16:21:18 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: xuan.wen <xuan.wen@artinchip.com>
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include <rtconfig.h>
#include <board.h>
#include <partition_table.h>
#define NOR_FLASH_DEV_NAME "norflash0"
/* ===================== Flash device Configuration ========================= */
extern struct fal_flash_dev nor_flash0;
2024-09-03 11:16:08 +08:00
extern struct fal_flash_dev nor_flash1;
2023-08-30 16:21:18 +08:00
/* flash device table */
2024-09-03 11:16:08 +08:00
#if defined(AIC_QSPI1_DEVICE_SPINOR)
2023-08-30 16:21:18 +08:00
#define FAL_FLASH_DEV_TABLE \
{ \
&nor_flash0, \
2024-09-03 11:16:08 +08:00
&nor_flash1, \
2023-08-30 16:21:18 +08:00
}
2024-09-03 11:16:08 +08:00
#else
#define FAL_FLASH_DEV_TABLE \
{ \
&nor_flash0, \
}
#endif
2023-08-30 16:21:18 +08:00
#endif /* _FAL_CFG_H_ */