• Yang Li's avatar
    Bluetooth: hci_uart: Add support for Amlogic HCI UART · 37bac77e
    Yang Li authored
    Add a new HCI protocol HCI_UART_AML for the Amlogic Bluetooth
    controller. It works on the standard H4 protocol via a 4-wire UART
    interface, with baud rates up to 4 Mbps.
    
    The controller supports two types of commands: the TCI commands and the
    vendor command. The former is for initial setup including setting baud
    rates, downloading fw, starting chip and etc, while the latter is for
    dumping firmware versions and setting public address after firmware
    updates and normal startup.
    
    It was verified on board of T602 (S905X4 + W265S2).
    
    dmesg:
    ..
    [    5.313450] Bluetooth: HCI UART protocol AML registered
    [    6.506052] Bluetooth: hci0: fw_version: date = 42.28, number = 0xb2fd
    ...
    Co-developed-by: default avatarYe He <ye.he@amlogic.com>
    Signed-off-by: default avatarYe He <ye.he@amlogic.com>
    Signed-off-by: default avatarYang Li <yang.li@amlogic.com>
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    37bac77e
hci_aml.c 17.2 KB