blob: 36c502874349c2e6834b2049abc708d098cf4c5e [file] [log] [blame]
# Copyright 2022 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("aml_rtc_bind") {
rules = "aml_rtc.bind"
tests = "bind-tests.json"
deps = [
"//src/devices/bind/fuchsia.amlogic.platform",
"//src/devices/bind/fuchsia.platform",
]
}
fuchsia_driver("aml-rtc-driver") {
output_name = "aml-rtc"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [ "aml-rtc.cc" ]
deps = [
":aml_rtc_bind",
"//sdk/fidl/fuchsia.hardware.rtc:fuchsia.hardware.rtc_cpp",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/lib/driver",
"//src/devices/lib/mmio",
"//src/devices/rtc/lib/rtc:rtc_llcpp",
"//src/lib/ddk",
"//src/lib/ddktl",
]
}
fuchsia_driver_component("aml-rtc") {
info = "aml-rtc-info.json"
component_name = "aml-rtc"
deps = [ ":aml-rtc-driver" ]
manifest = "meta/aml-rtc.cml"
}
group("tests") {
testonly = true
deps = [ ":aml_rtc_bind_test" ]
}