1# Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//drivers/adapter/khdf/liteos/hdf.gni") 15 16module_switch = defined(LOSCFG_DRIVERS_HDF_STORAGE_MTD) 17module_name = "hdf_mtd_hisilicon" 18hdf_driver(module_name) { 19 if (defined(LOSCFG_PLATFORM_HI3516DV300) || 20 defined(LOSCFG_PLATFORM_HI3518EV300)) { 21 include_dirs = [ 22 "hifmc100/common", 23 "hifmc100/spi_nor", 24 "hifmc100/spi_nand", 25 ] 26 sources = [ 27 "hifmc100/common/hifmc100.c", 28 "hifmc100/spi_nand/hifmc100_spi_nand.c", 29 "hifmc100/spi_nand/hifmc100_spi_nand_ids.c", 30 "hifmc100/spi_nor/hifmc100_spi_nor.c", 31 "hifmc100/spi_nor/hifmc100_spi_nor_ids.c", 32 "hifmc100/spi_nor/mx25l.c", 33 "hifmc100/spi_nor/w25qh.c", 34 ] 35 } 36} 37