#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <asm/mach/sharpsl_param.h>
#define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL)
#define TG_REG0_VQV 0x0001
#define TG_REG0_COLOR 0x0002
#define TG_REG0_UD 0x0004
#define TG_REG0_LR 0x0008
static int tosa_tg_send(struct spi_device *spi, int adrs, uint8_t data)
struct spi_transfer xfer = {
buf[0] = ((adrs & 0x07) << 5) | (data & 0x1f);
spi_message_add_tail(&xfer, &msg);
return spi_sync(spi, &msg);
int tosa_bl_enable(struct spi_device *spi, int enable)