blob: ab47da7fe8e585bc6c619d921413a59d3555e587 [file] [log] [blame]
/*
* drivers/display/lcd/bl_extern/bl_extern.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the named License,
* or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _BL_EXTERN_H_
#define _BL_EXTERN_H_
#include <amlogic/aml_bl_extern.h>
#define BLEX(fmt, args...) printf("bl extern: "fmt"", ## args)
#define BLEXERR(fmt, args...) printf("bl extern: error: "fmt"", ## args)
#define BL_EXTERN_DRIVER "bl_extern"
#ifdef CONFIG_SYS_I2C_AML
extern struct aml_i2c_platform g_aml_i2c_plat;
#endif
extern void aml_bl_extern_i2c_bus_print(unsigned char i2c_bus);
extern unsigned char aml_bl_extern_i2c_bus_get_sys(unsigned char i2c_bus);
extern int aml_bl_extern_i2c_bus_change(unsigned int i2c_bus);
extern int aml_bl_extern_i2c_bus_recovery(void);
extern int aml_bl_extern_i2c_write(unsigned char i2c_bus, unsigned i2c_addr,
unsigned char *buff, unsigned len);
extern int aml_bl_extern_i2c_read(unsigned char i2c_bus, unsigned i2c_addr,
unsigned char *buff, unsigned int len);
#ifdef CONFIG_AML_BL_EXTERN_I2C_LP8556
extern int i2c_lp8556_probe(void);
#endif
#ifdef CONFIG_AML_BL_EXTERN_MIPI_IT070ME05
extern int mipi_lt070me05_probe(void);
#endif
#endif