1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <ddk/binding.h>
6#include <ddk/device.h>
7#include <ddk/driver.h>
8#include <ddk/protocol/platform-defs.h>
9
10extern zx_status_t aml_thermal(void* ctx, zx_device_t* parent);
11
12static zx_driver_ops_t aml_thermal_driver_ops = {
13    .version = DRIVER_OPS_VERSION,
14    .bind = aml_thermal,
15};
16
17// clang-format off
18ZIRCON_DRIVER_BEGIN(aml_thermal, aml_thermal_driver_ops, "aml-thermal", "0.1", 3)
19    BI_ABORT_IF(NE, BIND_PLATFORM_DEV_VID, PDEV_VID_AMLOGIC),
20    BI_ABORT_IF(NE, BIND_PLATFORM_DEV_PID, PDEV_PID_AMLOGIC_S905D2),
21    BI_MATCH_IF(EQ, BIND_PLATFORM_DEV_DID, PDEV_DID_AMLOGIC_THERMAL),
22ZIRCON_DRIVER_END(aml_thermal)
23