11bd4fe43Sopenharmony_ci# Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
21bd4fe43Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31bd4fe43Sopenharmony_ci# you may not use this file except in compliance with the License.
41bd4fe43Sopenharmony_ci# You may obtain a copy of the License at
51bd4fe43Sopenharmony_ci#
61bd4fe43Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71bd4fe43Sopenharmony_ci#
81bd4fe43Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91bd4fe43Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101bd4fe43Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111bd4fe43Sopenharmony_ci# See the License for the specific language governing permissions and
121bd4fe43Sopenharmony_ci# limitations under the License.
131bd4fe43Sopenharmony_ci
141bd4fe43Sopenharmony_ciimport("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
151bd4fe43Sopenharmony_ci
161bd4fe43Sopenharmony_cimodule_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_MMC)
171bd4fe43Sopenharmony_cimodule_name = "hdf_mmc"
181bd4fe43Sopenharmony_cihdf_driver(module_name) {
191bd4fe43Sopenharmony_ci  if (defined(LOSCFG_PLATFORM_HI3516DV300)) {
201bd4fe43Sopenharmony_ci    sources = [
211bd4fe43Sopenharmony_ci      "himci_v200/himci.c",
221bd4fe43Sopenharmony_ci      "himci_v200/proc/himci_proc.c",
231bd4fe43Sopenharmony_ci    ]
241bd4fe43Sopenharmony_ci    include_dirs = [ "himci_v200/proc" ]
251bd4fe43Sopenharmony_ci  } else if (defined(LOSCFG_PLATFORM_HI3518EV300)) {
261bd4fe43Sopenharmony_ci    sources = [
271bd4fe43Sopenharmony_ci      "sdhci/proc/sdhci_proc.c",
281bd4fe43Sopenharmony_ci      "sdhci/sdhci.c",
291bd4fe43Sopenharmony_ci    ]
301bd4fe43Sopenharmony_ci    include_dirs = [ "sdhci/proc" ]
311bd4fe43Sopenharmony_ci  }
321bd4fe43Sopenharmony_ci}
33