blob: 94dec0f017071785f08de6c326e24311097c1870 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* drivers/usb/gadget/v2_burning/v2_sdc_burn/optimus_led.h
*
* Copyright (C) 2020 Amlogic, Inc. All rights reserved.
*
*/
#ifndef __OPTIMUS_LED_H__
#define __OPTIMUS_LED_H__
#define LED_TYPE_PWM 0xabcd
#if CONFIG_SD_BURNING_SUPPORT_LED
int optimus_led_open(int ledType);//open the led for show burning states
int optimus_led_close(void);
int optimus_led_show_in_process_of_burning(void);
int optimus_led_show_burning_success(void);
int optimus_led_show_burning_failure(void);
#else
#define optimus_led_open(ledType) 0
#define optimus_led_close() 0
#define optimus_led_show_in_process_of_burning() do{}while(0)
#define optimus_led_show_burning_success() do{}while(0)
#define optimus_led_show_burning_failure() do{}while(0)
#endif// #if CONFIG_SD_BURNING_SUPPORT_LED
#endif//ifndef __OPTIMUS_LED_H__