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/driver.h>
7 #include <ddk/platform-defs.h>
8 
9 extern zx_status_t astro_display_bind(void* ctx, zx_device_t* parent);
10 
11 static zx_driver_ops_t astro_display_ops = {
12     .version = DRIVER_OPS_VERSION,
13     .bind = astro_display_bind,
14 };
15 
16 // clang-format off
17 ZIRCON_DRIVER_BEGIN(astro_display, astro_display_ops, "zircon", "0.1", 4)
18     BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_PDEV),
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_DISPLAY),
22 ZIRCON_DRIVER_END(astro_display)
23