| # 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("as370_usb_phy_bind") { |
| rules = "as370_usb_phy.bind" |
| output = "as370_usb_phy_bind.h" |
| tests = "bind_tests.json" |
| deps = [ |
| "//src/devices/bind/fuchsia.platform", |
| "//src/devices/bind/fuchsia.synaptics.platform", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":as370_usb_phy_bind_test" ] |
| } |
| driver_module("as370-usb-phy") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| if (is_fuchsia) { |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| } |
| sources = [ "as370-usb-phy.cc" ] |
| deps = [ |
| ":as370_usb_phy_bind", |
| "//sdk/banjo/fuchsia.hardware.platform.device", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/lib/as370", |
| "//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/zx", |
| ] |
| } |