blob: 776ade1c94d5027ce27b06c450da1257bb00498d [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/drivers.gni")
driver_bind_rules("nelson_usb_phy_bind") {
rules = "nelson_usb_phy.bind"
tests = "bind_tests.json"
deps = [
"//src/devices/bind/fuchsia.amlogic.platform",
"//src/devices/bind/fuchsia.platform",
]
}
group("tests") {
testonly = true
deps = [ ":nelson_usb_phy_bind_test" ]
}
fuchsia_driver("nelson-usb-phy-driver") {
output_name = "nelson-usb-phy"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [ "nelson-usb-phy.cc" ]
deps = [
":nelson_usb_phy_bind",
"//sdk/banjo/fuchsia.hardware.usb.phy:fuchsia.hardware.usb.phy_banjo_cpp",
"//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/system/ulib/fbl",
"//zircon/system/ulib/hwreg",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("nelson-usb-phy") {
info = "nelson-usb-phy-info.json"
component_name = "nelson-usb-phy"
deps = [ ":nelson-usb-phy-driver" ]
manifest = "meta/nelson-usb-phy.cml"
}
fuchsia_driver_package("package") {
package_name = "nelson-usb-phy"
driver_components = [ ":nelson-usb-phy" ]
}