type
stringclasses
5 values
content
stringlengths
9
163k
includes
#include <linux/proc_avc.h>
includes
#include <mach/sec_thermistor.h>
includes
#include <mach/fusion3-thermistor.h>
defines
#define MSM_PMEM_ADSP_SIZE 0x7800000
defines
#define MSM_PMEM_AUDIO_SIZE 0x4CF000
defines
#define MSM_PMEM_SIZE 0x4000000 /* 64 Mbytes */
defines
#define MSM_PMEM_SIZE 0x4000000 /* 64 Mbytes */
defines
#define HOLE_SIZE 0x20000
defines
#define MSM_CONTIG_MEM_SIZE 0x65000
defines
#define MSM_ION_MM_SIZE 0x6600000 /* 56MB(0x3800000) -> 98MB -> 102MB */
defines
#define MSM_ION_SF_SIZE 0
defines
#define MSM_ION_QSECOM_SIZE 0x1700000 /* 7.5MB(0x780000) -> 23MB */
defines
#define MSM_ION_HEAP_NUM 7
defines
#define MSM_ION_MM_SIZE MSM_PMEM_ADSP_SIZE
defines
#define MSM_ION_SF_SIZE MSM_PMEM_SIZE
defines
#define MSM_ION_QSECOM_SIZE 0x600000 /* (6MB) */
defines
#define MSM_ION_HEAP_NUM 8
defines
#define MSM_ION_MM_FW_SIZE (0x200000 - HOLE_SIZE) /* (2MB - 128KB) */
defines
#define MSM_ION_MFC_SIZE SZ_8K
defines
#define MSM_ION_AUDIO_SIZE MSM_PMEM_AUDIO_SIZE
defines
#define MSM_CONTIG_MEM_SIZE 0x110C000
defines
#define MSM_ION_HEAP_NUM 1
defines
#define APQ8064_FIXED_AREA_START (0xa0000000 - (MSM_ION_MM_FW_SIZE + \
defines
#define MAX_FIXED_AREA_SIZE 0x10000000
defines
#define MSM_MM_FW_SIZE (0x200000 - HOLE_SIZE)
defines
#define APQ8064_FW_START APQ8064_FIXED_AREA_START
defines
#define QFPROM_RAW_FEAT_CONFIG_ROW0_MSB (MSM_QFPROM_BASE + 0x23c)
defines
#define QFPROM_RAW_OEM_CONFIG_ROW0_LSB (MSM_QFPROM_BASE + 0x220)
defines
#define PCIE_AXI_BAR_PHYS 0x08000000
defines
#define PCIE_AXI_BAR_SIZE SZ_128M
defines
#define PCIE_WAKE_N_PMIC_GPIO 12
defines
#define PCIE_PWR_EN_PMIC_GPIO 13
defines
#define PCIE_RST_N_PMIC_MPP 1
defines
#define FMEM_ENABLED 0
defines
#define RAMCONSOLE_PHYS_ADDR 0x8FD00000
defines
#define GPIO_TOUCH_KEY_INT PM8921_GPIO_PM_TO_SYS(31)
defines
#define PID_MAGIC_ID 0x71432909
defines
#define SERIAL_NUM_MAGIC_ID 0x61945374
defines
#define SERIAL_NUMBER_LENGTH 127
defines
#define DLOAD_USB_BASE_ADD 0x2A03F0C8
defines
#define PMIC_GPIO_DP 27 /* PMIC GPIO for D+ change */
defines
#define PMIC_GPIO_DP_IRQ PM8921_GPIO_IRQ(PM8921_IRQ_BASE, PMIC_GPIO_DP)
defines
#define MSM_MPM_PIN_USB1_OTGSESSVLD 40
defines
#define MPP_MCU_NRST PM8921_MPP_PM_TO_SYS(4)
defines
#define NFC_SW_I2C
defines
#define GPIO_NFC_FIRMWARE_AP 70
defines
#define HAP_SHIFT_LVL_OE_GPIO PM8921_MPP_PM_TO_SYS(8)
defines
#define ISA1200_HAP_EN_GPIO PM8921_GPIO_PM_TO_SYS(33)
defines
#define ISA1200_HAP_LEN_GPIO PM8921_GPIO_PM_TO_SYS(20)
defines
#define ISA1200_HAP_CLK_PM8921 PM8921_GPIO_PM_TO_SYS(44)
defines
#define ISA1200_HAP_CLK_PM8917 PM8921_GPIO_PM_TO_SYS(38)
defines
#define MSM_WCNSS_PHYS 0x03000000
defines
#define MSM_WCNSS_SIZE 0x280000
defines
#define QCE_SIZE 0x10000
defines
#define QCE_0_BASE 0x11000000
defines
#define QCE_HW_KEY_SUPPORT 0
defines
#define QCE_SHA_HMAC_SUPPORT 1
defines
#define QCE_SHARE_CE_RESOURCE 3
defines
#define QCE_CE_SHARED 0
defines
#define MSM_SHARED_RAM_PHYS 0x80000000
defines
#define KS8851_IRQ_GPIO 43
defines
#define GSBI_DUAL_MODE_CODE 0x60
defines
#define MSM_GSBI1_PHYS 0x12440000
defines
#define GPIO_KEY_VOLUME_UP PM8921_GPIO_PM_TO_SYS(35)
defines
#define GPIO_KEY_VOLUME_DOWN PM8921_GPIO_PM_TO_SYS(37)
defines
#define GPIO_KEY_HOME PM8921_GPIO_PM_TO_SYS(27)
defines
#define GPIO_KEY_VOLUME_UP PM8921_GPIO_PM_TO_SYS(35)
defines
#define GPIO_KEY_VOLUME_DOWN_PM8921 PM8921_GPIO_PM_TO_SYS(38)
defines
#define GPIO_KEY_VOLUME_DOWN_PM8917 PM8921_GPIO_PM_TO_SYS(30)
defines
#define GPIO_KEY_CAM_FOCUS PM8921_GPIO_PM_TO_SYS(3)
defines
#define GPIO_KEY_CAM_SNAP PM8921_GPIO_PM_TO_SYS(4)
defines
#define GPIO_KEY_ROTATION_PM8921 PM8921_GPIO_PM_TO_SYS(42)
defines
#define GPIO_KEY_ROTATION_PM8917 PM8921_GPIO_PM_TO_SYS(8)
defines
#define MPQ_KP_ROW_BASE SX150X_EXP2_GPIO_BASE
defines
#define MPQ_KP_COL_BASE (SX150X_EXP2_GPIO_BASE + 4)
defines
#define DSPS_PIL_GENERIC_NAME "dsps"
defines
#define I2C_SURF 1
defines
#define I2C_FFA (1 << 1)
defines
#define I2C_RUMI (1 << 2)
defines
#define I2C_SIM (1 << 3)
defines
#define I2C_LIQUID (1 << 4)
defines
#define I2C_FLUID (1 << 4)
defines
#define I2C_MPQ_CDP BIT(5)
defines
#define I2C_MPQ_HRD BIT(6)
defines
#define I2C_MPQ_DTV BIT(7)
defines
#define SX150X_EXP1_INT_N PM8921_MPP_IRQ(PM8921_IRQ_BASE, 9)
defines
#define SX150X_EXP2_INT_N MSM_GPIO_TO_INT(81)
defines
#define MPQ8064_I2C_GSBI5_BUS_ID 5
structs
struct magic_num_struct { uint32_t pid; uint32_t serial_num; };
structs
struct dload_struct { uint32_t reserved1; uint32_t reserved2; uint32_t reserved3; uint16_t reserved4; uint16_t pid; char serial_number[SERIAL_NUMBER_LENGTH]; uint16_t reserved5; struct magic_num_struct magic_struct; };
structs
struct i2c_registry { u8 machs; int bus; struct i2c_board_info *info; int len; };
functions
int atoi(char *str) { int ret = 0; int count = 0; if (str == NULL) return -EINVAL; while (str[count] != (int)NULL && str[count] >= '0' && str[count] <= 'z') { ret = ret * 0x10 + str[count] - '0'; ++count; }
functions
__init sec_tsp_mode(char *mode) { int ret, ret1; ret = atoi(mode); ret1 = ((ret >> 12) & 0X0F); lcd_tsp_panel_version = ret; printk(KERN_ERR "%s: LCD_ID = 0x%s, val: 0X%x, ret1: 0x%x", __func__, mode, ret, ret1); if (ret1 == 0x02 || ret1 == 0x03 || ret1 == 0x00) sec_tsp_synaptics_mode = 0; else sec_ts...
functions
void max77693_haptic_power_onoff(int onoff) { int ret; static struct regulator *reg_l8; if (!reg_l8) { reg_l8 = regulator_get(NULL, "8921_l8"); ret = regulator_set_voltage(reg_l8, 1800000, 3000000); if (IS_ERR(reg_l8)) { printk(KERN_ERR"could not get 8921_l8, rc = %ld\n", PTR_ERR(reg_l8)); return; ...
functions
void irda_wake_en(bool onoff) { gpio_direction_output(PM8921_GPIO_PM_TO_SYS(PMIC_GPIO_IRDA_WAKE), onoff); printk(KERN_ERR "%s: irda_wake_en :%d\n", __func__, onoff); }
functions
void irda_device_init(void) { struct pm_gpio irda_irq = { .direction = PM_GPIO_DIR_IN, .pull = PM_GPIO_PULL_UP_31P5, .out_strength = PM_GPIO_STRENGTH_HIGH, .function = PM_GPIO_FUNC_NORMAL, .inv_int_pol = 0, .vin_sel = PM_GPIO_VIN_S4, .output_buffer = PM_GPIO_OUT_BUF_CMOS, .output_value = 0, }
functions
void irda_vdd_onoff(bool onoff) { int ret = 0; static struct regulator *irda_vreg_1p8; if (!irda_vreg_1p8) { irda_vreg_1p8 = regulator_get(NULL, "8917_l36"); if (IS_ERR(irda_vreg_1p8)) { pr_err("could not get 8921_l36, rc = %ld\n", PTR_ERR(irda_vreg_1p8)); return; }
functions
__init msm_contig_mem_size_setup(char *p) { msm_contig_mem_size = memparse(p, NULL); return 0; }
functions
__init pmem_size_setup(char *p) { pmem_size = memparse(p, NULL); return 0; }
functions
__init pmem_adsp_size_setup(char *p) { pmem_adsp_size = memparse(p, NULL); return 0; }