blob: f928849c4a37873e4decf223bbf6817edfab6600 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bind/bind.gni")
import("//build/config/fuchsia/rules.gni")
bind_rules("msm8x53-sdhci-bind") {
rules = "msm8x53-sdhci.bind"
output = "msm8x53-sdhci-bind.h"
tests = "msm8x53-sdhci-bind-test.json"
deps = [
"//src/devices/bind/fuchsia.platform",
"//src/devices/bind/fuchsia.qualcomm.platform",
]
}
driver_module("msm8x53-sdhci") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "msm8x53-sdhci.cc" ]
deps = [
":msm8x53-sdhci-bind",
"//sdk/banjo/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.sdhci",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/hwreg",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
]
}
group("tests") {
testonly = true
deps = [ ":msm8x53-sdhci-bind_test" ]
}