android_kernel_google_msm/drivers/video/msm/mipi_toshiba.h
Siddhartha Agrawal 4c0b73f95e msm: display: reduce pwm frquency to fix the broswer blank issue
screen goes completely blank while loading a webpage at low back
light value. reducing the pwm frequency range to fix the issue.

Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb
CRs-fixed: 362987
2013-02-27 18:11:23 -08:00

30 lines
1,013 B
C

/* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* 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 MIPI_TOSHIBA_H
#define MIPI_TOSHIBA_H
#include <linux/pwm.h>
#include <linux/mfd/pm8xxx/pm8921.h>
int mipi_toshiba_device_register(struct msm_panel_info *pinfo,
u32 channel, u32 panel);
#define MIPI_TOSHIBA_PWM_FREQ_HZ 300
#define MIPI_TOSHIBA_PWM_PERIOD_USEC (USEC_PER_SEC / MIPI_TOSHIBA_PWM_FREQ_HZ)
#define MIPI_TOSHIBA_PWM_LEVEL 255
#define MIPI_TOSHIBA_PWM_DUTY_LEVEL \
(MIPI_TOSHIBA_PWM_PERIOD_USEC / MIPI_TOSHIBA_PWM_LEVEL)
#endif /* MIPI_TOSHIBA_H */