type
stringclasses
5 values
content
stringlengths
9
163k
defines
#define MDP_VSYNC_GPIO 0
defines
#define MIPI_CMD_NOVATEK_QHD_PANEL_NAME "mipi_cmd_novatek_qhd"
defines
#define MIPI_VIDEO_NOVATEK_QHD_PANEL_NAME "mipi_video_novatek_qhd"
defines
#define MIPI_VIDEO_TOSHIBA_WSVGA_PANEL_NAME "mipi_video_toshiba_wsvga"
defines
#define MIPI_VIDEO_TOSHIBA_WUXGA_PANEL_NAME "mipi_video_toshiba_wuxga"
defines
#define MIPI_VIDEO_CHIMEI_WXGA_PANEL_NAME "mipi_video_chimei_wxga"
defines
#define MIPI_VIDEO_SIMULATOR_VGA_PANEL_NAME "mipi_video_simulator_vga"
defines
#define MIPI_CMD_RENESAS_FWVGA_PANEL_NAME "mipi_cmd_renesas_fwvga"
defines
#define HDMI_PANEL_NAME "hdmi_msm"
defines
#define TVOUT_PANEL_NAME "tvout_msm"
defines
#define TUNING_BUFSIZE 4096
defines
#define TUNING_REGSIZE 40
defines
#define TUNING_REGNUM 10
defines
#define LCD_GAMMA 0
defines
#define CABC_POWERON_OFFSET 4 /* offset from lcd display on cmds */
defines
#define CABC_OFF 0
defines
#define CABC_ON 1
defines
#define CABC_10 1
defines
#define CABC_20 2
defines
#define CABC_30 3
defines
#define CABC_40 4
defines
#define CABC_50 5
defines
#define CABC_DEFAULT CABC_10
defines
#define LM3533_BACKLIGHT_ADDRESS 0x36
defines
#define PWM_SIMPLE_EN 0xA0
structs
struct msm_fb_info_st { unsigned int width_mm; unsigned int height_mm; };
structs
struct backlight_platform_data { void (*platform_init)(void); int gpio; unsigned int mode; int max_current; int init_on_boot; int min_brightness; int max_brightness; int default_brightness; int factory_brightness; };
functions
int msm_fb_detect_panel(const char *name) { return 0; }
functions
void mipi_dsi_panel_pwm_cfg(void) { int rc; static int mipi_dsi_panel_gpio_configured; static struct pm_gpio pwm_enable = { .direction = PM_GPIO_DIR_OUT, .output_buffer = PM_GPIO_OUT_BUF_CMOS, .output_value = 1, .pull = PM_GPIO_PULL_NO, .vin_sel = PM_GPIO_VIN_VPH, .out_...
functions
int mipi_dsi_panel_power(int on) { static struct regulator *reg_l8, *reg_l2, *reg_lvs6; static int gpio43 = PM8921_GPIO_PM_TO_SYS(43); int rc; pr_debug("%s: state : %d\n", __func__, on); if (!dsi_power_on) { reg_l8 = regulator_get(&msm_mipi_dsi1_device.dev, "dsi_vdc"); if (IS_ERR(reg_l8)) { pr_err("...
functions
int msm_fb_event_notify(struct notifier_block *self, unsigned long action, void *data) { struct fb_event *event = data; struct fb_info *info = event->info; struct msm_fb_info_st *fb_info_mm = &msm_fb_info_data; int ret = 0; switch (action) { case FB_EVENT_FB_REGISTERED: info->var.width = fb_info_mm->width_mm...
functions
void set_mdp_clocks_for_wuxga(void) { int i; mdp_ui_vectors[0].ab = 2000000000; mdp_ui_vectors[0].ib = 2000000000; mdp_vga_vectors[0].ab = 2000000000; mdp_vga_vectors[0].ib = 2000000000; mdp_720p_vectors[0].ab = 2000000000; mdp_720p_vectors[0].ib = 2000000000; mdp_1080p_vectors[0].ab = 2000000000; mdp_1080p_v...
functions
__init msm8960_mdp_writeback(struct memtype_reserve* reserve_table) { mdp_pdata.ov0_wb_size = MSM_FB_OVERLAY0_WRITEBACK_SIZE; mdp_pdata.ov1_wb_size = MSM_FB_OVERLAY1_WRITEBACK_SIZE; #if defined(CONFIG_ANDROID_PMEM) && !defined(CONFIG_MSM_MULTIMEDIA_USE_ION) reserve_table[mdp_pdata.mem_hid].size += mdp_pdata.ov0_wb...
functions
int mipi_lgit_backlight_level(int level, int max, int min) { lm3533_lcd_backlight_set_level(level); return 0; }
functions
if defined(CONFIG_FB_MSM_MIPI_LGIT_VIDEO_WVGA_INVERSE_PT_PANEL) {DTYPE_GEN_WRITE2, 1, 0, 0, 0, sizeof(video_switch), video_switch}
functions
if defined(CONFIG_FB_MSM_MIPI_LGIT_VIDEO_WVGA_INVERSE_PT_PANEL) {DTYPE_DCS_LWRITE, 1, 0, 0, 0, sizeof(rgb_interface_setting_old), rgb_interface_setting_old}
functions
if defined(CONFIG_FB_MSM_MIPI_LGIT_CMD_WVGA_INVERSE_PT_PANEL) {DTYPE_DCS_LWRITE, 1, 0, 0, 0, sizeof(display_ctrl3_old), display_ctrl3_old}
functions
if defined(CONFIG_LGE_BACKLIGHT_CABC) {DTYPE_DCS_WRITE1, 1, 0, 0, 0, sizeof(cabc_51), cabc_51}
functions
void set_lgit_cabc(int cabc_index) { pr_info("%s! cabc_index: %d\n", __func__, cabc_index); switch(cabc_index) { case 0: /* CABC OFF */ lgit_power_on_set[CABC_POWERON_OFFSET+2].payload = config_cabc_55[CABC_OFF]; break; case 1: /* 10% */ case 2: /* 20% */ case 3: /* 30% */ case 4: /* 40% */ case 5: /* 50% *...
functions
int get_lgit_cabc(void) { return lgit_cabc_index; }
functions
int lge_get_fb_phys_info(unsigned long *start, unsigned long *size) { if (!start || !size) return -1; *start = (unsigned long)msm_fb_resources[0].start; *size = (unsigned long)(LCD_RESOLUTION_X * LCD_RESOLUTION_Y * 4); return 0; }
functions
__init msm_fb_add_devices(void) { #ifdef CONFIG_FB_MSM_WRITEBACK_MSM_PANEL platform_device_register(&wfd_panel_device); platform_device_register(&wfd_device); #endif if (machine_is_msm8x60_rumi3()) { msm_fb_register_device("mdp", NULL); mipi_dsi_pdata.target_type = 1; }
functions
__init msm8960_allocate_fb_region(void) { void *addr; unsigned long size; size = MSM_FB_SIZE; addr = alloc_bootmem_align(size, 0x1000); msm_fb_resources[0].start = __pa(addr); msm_fb_resources[0].end = msm_fb_resources[0].start + size - 1; pr_info("allocating %lu bytes at %p (%lx physical) for fb\n", size, a...
functions
__init msm8960_set_display_params(char *prim_panel, char *ext_panel) { if (strnlen(prim_panel, PANEL_NAME_MAX_LEN)) { strlcpy(msm_fb_pdata.prim_panel_name, prim_panel, PANEL_NAME_MAX_LEN); pr_debug("msm_fb_pdata.prim_panel_name %s\n", msm_fb_pdata.prim_panel_name); if (!strncmp((char *)msm_fb_pdata.prim_pa...
functions
__init panel_gpiomux_init(void) { int rc; rc = msm_gpiomux_init(NR_GPIO_IRQS); if (rc == -EPERM) { pr_info("%s : msm_gpiomux_init is already initialized\n", __func__); }
functions
else if (rc) { pr_err(KERN_ERR "msm_gpiomux_init failed %d\n", rc); return rc; }
functions
__init lge_add_lcd_devices(void) { panel_gpiomux_init(); fb_register_client(&msm_fb_event_notifier); /* LGE_CHANGE_S, Assign command set to panel info as H/W revision, jamin.koo@lge.com, 2011.02.27 */ if(lge_get_board_revno() < HW_REV_C) mipi_dsi_lgit_panel_device.dev.platform_data = &mipi_lgit_pdata_old; /* L...
includes
#include <common.h>
includes
#include <command.h>
includes
#include <mmc.h>
includes
#include <part.h>
includes
#include <fat.h>
includes
#include <firmware_update.h>
includes
#include <linux/mtd/mtd.h>
includes
#include <nand.h>
includes
#include <linux/mtd/partitions.h>
includes
#include <linux/list.h>
includes
#include <ubi_uboot.h>
includes
#include <jffs2/load_kernel.h>
includes
#include <i2c.h>
includes
#include <lcd.h>
includes
#include <linux/time.h>
defines
#define N516_KEY_C 0x1d
defines
#define N516_KEY_MENU 0x0e
defines
#define N516_KEY_POWER 0x1c
defines
#define N516_KEY_1 0x04
defines
#define KEY_RESERVED 0
defines
#define KEY_ESC 1
defines
#define KEY_1 2
defines
#define KEY_2 3
defines
#define KEY_3 4
defines
#define KEY_4 5
defines
#define KEY_5 6
defines
#define KEY_6 7
defines
#define KEY_7 8
defines
#define KEY_8 9
defines
#define KEY_9 10
defines
#define KEY_0 11
defines
#define KEY_ENTER 28
defines
#define KEY_SPACE 57
defines
#define KEY_UP 103
defines
#define KEY_PAGEUP 104
defines
#define KEY_LEFT 105
defines
#define KEY_RIGHT 106
defines
#define KEY_DOWN 108
defines
#define KEY_PAGEDOWN 109
defines
#define KEY_POWER 116
defines
#define KEY_MENU 139
defines
#define KEY_SLEEP 142
defines
#define KEY_WAKEUP 143
defines
#define KEY_DIRECTION 153
defines
#define KEY_PLAYPAUSE 164
defines
#define KEY_SEARCH 217
defines
#define log(msg, args...) \
defines
#define show_progress(msg, args...) \
defines
#define KEYPRESS_TIMEOUT 5000000
defines
#define BLINK_PERIOD 300000
defines
#define I2C_DELAY 70000
structs
struct block_properties { unsigned int raw:1; u32 crc32; char *name; u64 offset; u64 size; };
structs
struct file_entry { char filename[255]; struct list_head link; };