blob: 4d598143ba8823520105724d01d7471cdaee67a9 [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/zircon/zx_library.gni")
zx_library("amlogic") {
sdk = "source"
sdk_headers = [
"soc/aml-a113/a113-clocks.h",
"soc/aml-a113/a113-gpio.h",
"soc/aml-a113/a113-hw.h",
"soc/aml-a113/a113-pwm.h",
"soc/aml-a113/aml-tdm.h",
"soc/aml-a311d/a311d-gpio.h",
"soc/aml-a311d/a311d-hw.h",
"soc/aml-common/aml-audio.h",
"soc/aml-common/aml-audio-regs.h",
"soc/aml-common/aml-g12-reset.h",
"soc/aml-common/aml-guid.h",
"soc/aml-common/aml-pdm-audio.h",
"soc/aml-common/aml-pwm-regs.h",
"soc/aml-common/aml-rawnand.h",
"soc/aml-common/aml-sdmmc.h",
"soc/aml-common/aml-spi.h",
"soc/aml-common/aml-tdm-audio.h",
"soc/aml-common/aml-loopback-audio.h",
"soc/aml-common/aml-thermal.h",
"soc/aml-meson/aml-clk-common.h",
"soc/aml-meson/aml-meson-pll.h",
"soc/aml-meson/aml-pll.h",
"soc/aml-meson/axg-clk.h",
"soc/aml-meson/g12a-clk.h",
"soc/aml-meson/g12b-clk.h",
"soc/aml-meson/gxl-clk.h",
"soc/aml-meson/sm1-clk.h",
"soc/aml-meson/a1-clk.h",
"soc/aml-meson/a5-clk.h",
"soc/aml-s905d2/s905d2-gpio.h",
"soc/aml-s905d2/s905d2-hiu.h",
"soc/aml-s905d2/s905d2-hiu-regs.h",
"soc/aml-s905d2/s905d2-hw.h",
"soc/aml-s905d2/s905d2-pwm.h",
"soc/aml-s905d3/s905d3-gpio.h",
"soc/aml-s905d3/s905d3-hw.h",
"soc/aml-s905d3/s905d3-pwm.h",
"soc/aml-s905/s905-gpio.h",
"soc/aml-s905x/s905x-gpio.h",
"soc/aml-s912/s912-audio.h",
"soc/aml-s912/s912-gpio.h",
"soc/aml-s912/s912-hw.h",
"soc/aml-t931/t931-gpio.h",
"soc/aml-t931/t931-hw.h",
"soc/aml-t931/t931-pwm.h",
"soc/aml-a5/a5-gpio.h",
"soc/aml-a5/a5-hw.h",
"soc/aml-a5/a5-pwm.h",
"soc/aml-a5/a5-hiu.h",
"soc/aml-a5/a5-hiu-regs.h",
"soc/aml-a1/a1-hw.h",
"soc/aml-a1/a1-pwm.h",
"soc/aml-a1/a1-gpio.h",
"soc/aml-a1/a1-hiu.h",
"soc/aml-a1/a1-hiu-regs.h",
]
sources = [
"a1-hiu.cc",
"a1-pll-rates.cc",
"a113-clocks.cc",
"a5-hiu.cc",
"a5-pll-rates.cc",
"aml-audio.cc",
"aml-loopback-audio.cc",
"aml-meson-pll.cc",
"aml-pdm-audio.cc",
"aml-tdm-audio.cc",
"aml-tdm-in-audio.cc",
"aml-tdm-out-audio.cc",
"aml-tdmlb-audio.cc",
"s905d2-hiu.cc",
"s905d2-pll-rates.cc",
]
deps = [
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/hwreg",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
public_deps = [
"//sdk/fidl/fuchsia.hardware.thermal:fuchsia.hardware.thermal_cpp",
"//src/devices/lib/mmio",
]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}