blob: ce15e8454c2bfffcc380098d9bbabd699bfa7770 [file] [log] [blame]
# Copyright 2020 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("nelson_usb_phy_bind") {
rules = "nelson_usb_phy.bind"
output = "nelson_usb_phy_bind.h"
tests = "bind_tests.json"
deps = [
"//src/devices/bind/amlogic.platform",
"//src/devices/bind/fuchsia.platform",
]
}
group("tests") {
testonly = true
deps = [ ":nelson_usb_phy_bind_test" ]
}
driver_module("nelson-usb-phy") {
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "nelson-usb-phy.cc" ]
deps = [
":nelson_usb_phy_bind",
"//sdk/banjo/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.usb.phy",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/lib/amlogic",
"//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",
]
}