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_uart_bind(void* ctx, zx_device_t* parent); 11 12static zx_driver_ops_t aml_uart_driver_ops = { 13 .version = DRIVER_OPS_VERSION, 14 .bind = aml_uart_bind, 15}; 16 17ZIRCON_DRIVER_BEGIN(aml_uart, aml_uart_driver_ops, "zircon", "0.1", 3) 18 BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_PLATFORM_DEV), 19 BI_ABORT_IF(NE, BIND_PLATFORM_DEV_VID, PDEV_VID_AMLOGIC), 20 BI_MATCH_IF(EQ, BIND_PLATFORM_DEV_DID, PDEV_DID_AMLOGIC_UART), 21ZIRCON_DRIVER_END(aml_uart) 22