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/platform-defs.h> 9 10 extern zx_status_t mtk_thermal_bind(void* ctx, zx_device_t* parent); 11 12 static zx_driver_ops_t mtk_thermal_driver_ops = { 13 .version = DRIVER_OPS_VERSION, 14 .bind = mtk_thermal_bind, 15 }; 16 17 ZIRCON_DRIVER_BEGIN(mtk_thermal, mtk_thermal_driver_ops, "zircon", "0.1", 3) 18 BI_ABORT_IF(NE, BIND_PLATFORM_DEV_VID, PDEV_VID_MEDIATEK), 19 BI_MATCH_IF(EQ, BIND_PLATFORM_DEV_DID, PDEV_DID_MEDIATEK_THERMAL), 20 ZIRCON_DRIVER_END(mtk_thermal) 21