type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
functions | __init pmem_audio_size_setup(char *p)
{
pmem_audio_size = memparse(p, NULL);
return 0;
} |
functions | __init reserve_rtb_memory(void)
{
#if defined(CONFIG_MSM_RTB)
apq8064_reserve_table[MEMTYPE_EBI1].size += apq8064_rtb_pdata.size;
#endif
} |
functions | __init size_pmem_devices(void)
{
#ifdef CONFIG_ANDROID_PMEM
#ifndef CONFIG_MSM_MULTIMEDIA_USE_ION
android_pmem_adsp_pdata.size = pmem_adsp_size;
android_pmem_pdata.size = pmem_size;
android_pmem_audio_pdata.size = MSM_PMEM_AUDIO_SIZE;
#endif /*CONFIG_MSM_MULTIMEDIA_USE_ION*/
#endif /*CONFIG_ANDROID_PMEM*/
} |
functions | __init reserve_memory_for(struct android_pmem_platform_data *p)
{
apq8064_reserve_table[p->memory_type].size += p->size;
} |
functions | __init reserve_pmem_memory(void)
{
#ifdef CONFIG_ANDROID_PMEM
#ifndef CONFIG_MSM_MULTIMEDIA_USE_ION
reserve_memory_for(&android_pmem_adsp_pdata);
reserve_memory_for(&android_pmem_pdata);
reserve_memory_for(&android_pmem_audio_pdata);
#endif /*CONFIG_MSM_MULTIMEDIA_USE_ION*/
apq8064_reserve_table[MEMTYPE_EBI1].size ... |
functions | int apq8064_paddr_to_memtype(unsigned int paddr)
{
return MEMTYPE_EBI1;
} |
functions | __init reserve_mem_for_ion(enum ion_memory_types mem_type,
unsigned long size)
{
apq8064_reserve_table[mem_type].size += size;
} |
functions | __init apq8064_reserve_fixed_area(unsigned long fixed_area_size)
{
#if defined(CONFIG_ION_MSM) && defined(CONFIG_MSM_MULTIMEDIA_USE_ION)
int ret;
if (fixed_area_size > MAX_FIXED_AREA_SIZE)
panic("fixed area size is larger than %dM\n",
MAX_FIXED_AREA_SIZE >> 20);
reserve_info->fixed_area_size = fixed_area_size... |
functions | void samsung_sys_class_init(void)
{
pr_info("samsung sys class init.\n");
sec_class = class_create(THIS_MODULE, "sec");
if (IS_ERR(sec_class)) {
pr_err("Failed to create class(sec)!\n");
return;
} |
functions | __init reserve_ion_memory(void)
{
#if defined(CONFIG_ION_MSM) && defined(CONFIG_MSM_MULTIMEDIA_USE_ION)
unsigned int i;
unsigned int ret;
unsigned int fixed_size = 0;
unsigned int fixed_low_size, fixed_middle_size, fixed_high_size;
unsigned long fixed_low_start, fixed_middle_start, fixed_high_start;
unsigned long... |
functions | else if (fixed_position == FIXED_MIDDLE) {
fixed_middle_size += heap->size;
middle_use_cma = use_cma;
} |
functions | else if (fixed_position == FIXED_HIGH) {
fixed_high_size += heap->size;
high_use_cma = use_cma;
} |
functions | else if (use_cma) {
/*
* Heaps that use CMA but are not part of the
* fixed set. Create wherever.
*/
dma_declare_contiguous(
heap->priv,
heap->size,
0,
0xb0000000);
} |
functions | __init reserve_mdp_memory(void)
{
apq8064_mdp_writeback(apq8064_reserve_table);
} |
functions | __init reserve_cache_dump_memory(void)
{
#ifdef CONFIG_MSM_CACHE_DUMP
unsigned int total;
total = apq8064_cache_dump_pdata.l1_size +
apq8064_cache_dump_pdata.l2_size;
apq8064_reserve_table[MEMTYPE_EBI1].size += total;
#endif
} |
functions | __init reserve_mpdcvs_memory(void)
{
apq8064_reserve_table[MEMTYPE_EBI1].size += SZ_32K;
} |
functions | __init apq8064_calculate_reserve_sizes(void)
{
size_pmem_devices();
reserve_pmem_memory();
reserve_ion_memory();
reserve_mdp_memory();
reserve_rtb_memory();
reserve_cache_dump_memory();
reserve_mpdcvs_memory();
} |
functions | int apq8064_memory_bank_size(void)
{
return 1<<29;
} |
functions | __init locate_unstable_memory(void)
{
struct membank *mb = &meminfo.bank[meminfo.nr_banks - 1];
unsigned long bank_size;
unsigned long low, high;
bank_size = apq8064_memory_bank_size();
low = meminfo.bank[0].start;
high = mb->start + mb->size;
/* Check if 32 bit overflow occured */
if (high < mb->start)
hig... |
functions | void touchkey_charger_infom(bool en)
{
if (tk_charger_callbacks && tk_charger_callbacks->inform_charger)
tk_charger_callbacks->inform_charger(tk_charger_callbacks, en);
} |
functions | void touchkey_register_callback(void *cb)
{
tk_charger_callbacks = cb;
} |
functions | void cypress_power_onoff(int onoff)
{
int ret;
static struct regulator *reg_l23;
static struct regulator *reg_l11;
if (!reg_l23) {
reg_l23 = regulator_get(NULL, "8921_l23");
ret = regulator_set_voltage(reg_l23, 1800000, 1800000);
if (IS_ERR(reg_l23)) {
printk(KERN_ERR"could not get 8921_l23, rc = %ld\n"... |
functions | int apq8064_change_memory_power(u64 start, u64 size,
int change_type)
{
return soc_change_memory_power(start, size, change_type);
} |
functions | __init prim_display_setup(char *param)
{
if (strnlen(param, PANEL_NAME_MAX_LEN))
strlcpy(prim_panel_name, param, PANEL_NAME_MAX_LEN);
return 0;
} |
functions | __init ext_display_setup(char *param)
{
if (strnlen(param, PANEL_NAME_MAX_LEN))
strlcpy(ext_panel_name, param, PANEL_NAME_MAX_LEN);
return 0;
} |
functions | __init hdmi_resulution_setup(char *param)
{
int ret;
ret = kstrtoint(param, 10, &ext_resolution);
return ret;
} |
functions | __init apq8064_reserve(void)
{
apq8064_set_display_params(prim_panel_name, ext_panel_name,
ext_resolution);
msm_reserve();
#ifdef CONFIG_ANDROID_PERSISTENT_RAM
persistent_ram_early_init(&per_ram);
#endif
} |
functions | __init place_movable_zone(void)
{
#ifdef CONFIG_ENABLE_DMM
movable_reserved_start = apq8064_reserve_info.low_unstable_address;
movable_reserved_size = apq8064_reserve_info.max_unstable_size;
pr_info("movable zone start %lx size %lx\n",
movable_reserved_start, movable_reserved_size);
#endif
} |
functions | __init apq8064_early_reserve(void)
{
reserve_info = &apq8064_reserve_info;
locate_unstable_memory();
place_movable_zone();
} |
functions | void muic77693_mhl_cb(bool otg_enable, int charger)
{
union power_supply_propval value;
int i, ret = 0;
struct power_supply *psy;
int current_cable_type = POWER_SUPPLY_TYPE_MISC;
int sub_type = ONLINE_SUB_TYPE_MHL;
int power_type = ONLINE_POWER_TYPE_UNKNOWN;
int muic_cable_type = max77693_muic_get_charging_type(... |
functions | else if (charger == 0x01) {
pr_info("TA powered charger\n");
power_type = ONLINE_POWER_TYPE_MHL_900;
} |
functions | else if (charger == 0x02) {
pr_info("TA powered charger\n");
power_type = ONLINE_POWER_TYPE_MHL_1500;
} |
functions | else if (charger == 0x03) {
pr_info("USB charger\n");
power_type = ONLINE_POWER_TYPE_USB;
} |
functions | void msm8960_mhl_gpio_init(void)
{
int ret;
if (system_rev >= 6) {
ice_gpiox_set(FPGA_GPIO_MHL_RST, 0);
ice_gpiox_set(FPGA_VSIL_A_1P2_EN, 0);
} |
functions | else if (system_rev < 6) {
ret = gpio_request(GPIO_MHL_RST, "mhl_rst");
if (ret < 0) {
pr_err("mhl_rst gpio_request is failed\n");
return;
} |
functions | void mhl_gpio_config(int data)
{
int ret;
if (system_rev < 6)
gpio_tlmm_config(GPIO_CFG(GPIO_MHL_RST, 0, GPIO_CFG_OUTPUT,
GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA), 1);
if (data) {
ret = gpio_request(GPIO_MHL_INT, "mhl_int");
if (ret < 0) {
pr_err("mhl_vsil gpio_request is failed\n");
return;
} |
functions | int get_mhl_int_irq(void)
{
return MSM_GPIO_TO_INT(GPIO_MHL_INT);
} |
functions | void sii8240_hw_onoff(bool onoff)
{
int rc = 0;
/*VPH_PWR : mhl_power_source
VMHL_3.3V, VSIL_A_1.2V, VMHL_1.8V
just power control with HDMI_EN pin or control Regulator12*/
pr_info("%s: onoff =%d\n", __func__, onoff);
if (mhl_hw_onoff == onoff) {
pr_info("mhl_hw_onoff already %d\n", onoff);
return;
} |
functions | void sii8240_hw_reset(void)
{
usleep_range(10000, 20000);
if (system_rev >= 6) {
if (ice_gpiox_set(FPGA_GPIO_MHL_RST, 1))
pr_info("%s error in making GPIO_MHL_RST HIGH\n",
__func__);
usleep_range(5000, 20000);
if (ice_gpiox_set(FPGA_GPIO_MHL_RST, 0))
pr_err("%s error in making GPIO_MHL_RST Low\n",
_... |
functions | int usb_diag_update_pid_and_serial_num(uint32_t pid, const char *snum)
{
struct dload_struct __iomem *dload = 0;
dload = ioremap(DLOAD_USB_BASE_ADD, sizeof(*dload));
if (!dload) {
pr_err("%s: cannot remap I/O memory region: %08x\n",
__func__, DLOAD_USB_BASE_ADD);
return -ENXIO;
} |
functions | int msm_hsusb_vbus_power_bq24157(bool on)
{
struct power_supply *psy = power_supply_get_by_name("battery");
union power_supply_propval value;
int ret = 0;
pr_info("%s, attached %d, vbus_is_on %d\n", __func__, on, vbus_is_on);
/* If VBUS is already on (or off), do nothing. */
if (vbus_is_on == on)
return -EBUS... |
functions | int msm_hsusb_vbus_power_max77693(bool on)
{
pr_info("%s, attached %d, vbus_is_on %d\n", __func__, on, vbus_is_on);
/* If VBUS is already on (or off), do nothing. */
if (vbus_is_on == on)
return -EBUSY;
otg_control(on);
vbus_is_on = on;
return 0;
} |
functions | int msm_hsusb_vbus_power(bool on)
{
#ifdef CONFIG_MFD_MAX77693
return msm_hsusb_vbus_power_max77693(on);
#endif
#ifdef CONFIG_CHARGER_BQ24157
return msm_hsusb_vbus_power_bq24157(on);
#endif
return 0;
} |
functions | void sensor_power_on_vdd(int onoff_l9, int onoff_lvs4)
{
int ret;
pr_info("[SSP]%s\n", __func__);
if (vsensor_2p85 == NULL) {
vsensor_2p85 = regulator_get(NULL, "8921_l9");
if (IS_ERR(vsensor_2p85))
return ;
ret = regulator_set_voltage(vsensor_2p85, 2850000, 2850000);
if (ret)
pr_err("%s: error vsens... |
functions | void clear_ssp_gpio(void)
{
struct pm_gpio ap_mcu_int_cfg = {
.direction = PM_GPIO_DIR_IN,
.pull = PM_GPIO_PULL_DN,
.vin_sel = 2,
.function = PM_GPIO_FUNC_NORMAL,
.inv_int_pol = 0,
} |
functions | int initialize_ssp_gpio(void)
{
int err;
struct pm_gpio ap_mcu_int_cfg = {
.direction = PM_GPIO_DIR_OUT,
.pull = PM_GPIO_PULL_NO,
.vin_sel = 2,
.function = PM_GPIO_FUNC_NORMAL,
.inv_int_pol = 0,
} |
functions | int wakeup_mcu(void)
{
gpio_set_value_cansleep(GPIO_AP_MCU_INT, 0);
udelay(20);
gpio_set_value_cansleep(GPIO_AP_MCU_INT, 1);
return 0;
} |
functions | int set_mcu_reset(int on)
{
if (system_rev >= 5)
gpio_set_value_cansleep(GPIO_MCU_NRST, on);
else
gpio_set_value_cansleep(MPP_MCU_NRST, on);
return 0;
} |
functions | int check_mcu_busy(void)
{
return gpio_get_value_cansleep(GPIO_MCU_AP_INT);
} |
functions | int check_mcu_ready(void)
{
return gpio_get_value_cansleep(GPIO_MCU_AP_INT_2);
} |
functions | int check_ap_rev(void)
{
return system_rev;
} |
functions | int ssp_read_chg()
{
if (system_rev >= BOARD_REV03)
return gpio_get_value(GPIO_MCU_CHG);
else
return 0;
} |
functions | int ssp_check_changes(void)
{
int changes = 0;
/* 0 : MPU6050, MCU L0
* 1 : MPU6500, MCU L5 */
if (system_rev < BOARD_REV03)
changes = SSP_MCU_L0;
else
changes = SSP_MCU_L5;
return changes;
} |
functions | void ssp_get_positions(int *acc, int *mag)
{
if (system_rev > BOARD_REV10)
*acc = K330_TOP_LEFT_UPPER;
else if (system_rev > BOARD_REV05)
*acc = MPU6500_TOP_RIGHT_UPPER;
else if (system_rev > BOARD_REV03)
*acc = MPU6500_BOTTOM_RIGHT_UPPER;
else
*acc = MPU6500_TOP_LEFT_UPPER;
if (system_rev > BOARD_REV03)
... |
functions | void bcm2079x_sw_i2c_config(void)
{
pr_info("%s is called\n", __func__);
gpio_tlmm_config(GPIO_CFG(10, 0, GPIO_CFG_INPUT,
GPIO_CFG_NO_PULL, GPIO_CFG_2MA), 1);
gpio_tlmm_config(GPIO_CFG(11, 0, GPIO_CFG_INPUT,
GPIO_CFG_NO_PULL, GPIO_CFG_2MA), 1);
} |
functions | __init bcm2079x_init(void)
{
struct pm_gpio nfc_irq_cfg = {
.direction = PM_GPIO_DIR_IN,
.pull = PM_GPIO_PULL_DN,
.vin_sel = 2,
.function = PM_GPIO_FUNC_NORMAL,
.inv_int_pol = 0,
} |
functions | void irda_led_poweron(int onoff)
{
int ret;
static struct regulator *reg_l10;
if (system_rev >= BOARD_REV10) {
if(onoff) {
if (!reg_l10) {
reg_l10 = regulator_get(NULL, "8921_l10");
ret = regulator_set_voltage(reg_l10, 3300000, 3300000);
if (IS_ERR(reg_l10)) {
printk(KERN_ERR"could not get 892... |
functions | int ice4_clock_en(int onoff)
{
if (system_rev < BOARD_REV04)
return 0;
if (system_rev >= BOARD_REV04 && system_rev <= BOARD_REV09) {
if (onoff)
msm_xo_mode_vote(fpga_xo, MSM_XO_MODE_ON);
else
msm_xo_mode_vote(fpga_xo, MSM_XO_MODE_OFF);
} |
functions | else if (system_rev >= BOARD_REV10) {
static struct clk *fpga_main_clk;
if (!fpga_main_clk)
fpga_main_clk = clk_get(NULL, "gp0_clk");
if (onoff) {
clk_set_rate(fpga_main_clk, 24000000);
clk_prepare_enable(fpga_main_clk);
} |
functions | void barcode_emul_poweron(int onoff)
{
int ret;
pr_info("%s onoff : %d\n", __func__, onoff);
if (barcode_vreg_2p85 == NULL) {
barcode_vreg_2p85 = regulator_get(NULL, "8921_l9");
if (IS_ERR(barcode_vreg_2p85))
return ;
ret = regulator_set_voltage(barcode_vreg_2p85,
2850000, 2850000);
if (ret)
pr_... |
functions | void barcode_gpio_config(void)
{
struct pm8xxx_mpp_config_data barcode_mppcfg = {
.type = PM8XXX_MPP_TYPE_D_OUTPUT,
.level = PM8921_MPP_DIG_LEVEL_S4,
.control = PM8XXX_MPP_DOUT_CTRL_LOW,
} |
functions | __init apq8064_ehci_host_init(void)
{
if (machine_is_apq8064_liquid() || machine_is_mpq8064_cdp() ||
machine_is_mpq8064_hrd() || machine_is_mpq8064_dtv()) {
if (machine_is_apq8064_liquid())
msm_ehci_host_pdata3.dock_connect_irq =
PM8921_MPP_IRQ(PM8921_IRQ_BASE, 9);
else
msm_ehci_host_pdata3.pmic_gpio_... |
functions | __init apq8064_epm_adc_init(void)
{
epm_adc_pdata.num_channels = 32;
epm_adc_pdata.num_adc = 2;
epm_adc_pdata.chan_per_adc = 16;
epm_adc_pdata.chan_per_mux = 8;
} |
functions | int enable_100KHz_ls(int enable)
{
int ret = 0;
if (enable) {
ret = gpio_request(SX150X_GPIO(1, 10),
"cs8427_100KHZ_ENABLE");
if (ret) {
pr_err("%s: Failed to request gpio %d\n", __func__,
SX150X_GPIO(1, 10));
return ret;
} |
functions | int isa1200_clk_enable(bool on)
{
unsigned int gpio = ISA1200_HAP_CLK_PM8921;
int rc = 0;
if (socinfo_get_pmic_model() == PMIC_MODEL_PM8917)
gpio = ISA1200_HAP_CLK_PM8917;
gpio_set_value_cansleep(gpio, on);
if (on) {
rc = pm8xxx_aux_clk_control(CLK_MP3_2, XO_DIV_1, true);
if (rc) {
pr_err("%s: unable t... |
functions | int isa1200_dev_setup(bool enable)
{
unsigned int gpio = ISA1200_HAP_CLK_PM8921;
int rc = 0;
if (socinfo_get_pmic_model() == PMIC_MODEL_PM8917)
gpio = ISA1200_HAP_CLK_PM8917;
if (!enable)
goto free_gpio;
rc = gpio_request(gpio, "haptics_clk");
if (rc) {
pr_err("%s: unable to request gpio %d config(%d)\n"... |
functions | __init apq8064_map_io(void)
{
msm_shared_ram_phys = MSM_SHARED_RAM_PHYS;
msm_map_apq8064_io();
if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
#ifdef CONFIG_SEC_DEBUG
sec_getlog_supply_meminfo(0x40000000, 0x80000000, 0x00, 0x00);
#endif
} |
functions | __init apq8064_init_irq(void)
{
struct msm_mpm_device_data *data = NULL;
#ifdef CONFIG_MSM_MPM
data = &apq8064_mpm_dev_data;
#endif
msm_mpm_irq_extn_init(data);
gic_init(0, GIC_PPI_START, MSM_QGIC_DIST_BASE,
(void *)MSM_QGIC_CPU_BASE);
} |
functions | __init apq8064_init_buses(void)
{
msm_bus_rpm_set_mt_mask();
msm_bus_8064_apps_fabric_pdata.rpm_enabled = 1;
msm_bus_8064_sys_fabric_pdata.rpm_enabled = 1;
msm_bus_8064_mm_fabric_pdata.rpm_enabled = 1;
msm_bus_8064_apps_fabric.dev.platform_data =
&msm_bus_8064_apps_fabric_pdata;
msm_bus_8064_sys_fabric.dev.plat... |
functions | __init mpq8064_pcie_enabled(void)
{
return !((readl_relaxed(QFPROM_RAW_FEAT_CONFIG_ROW0_MSB) & BIT(21)) ||
(readl_relaxed(QFPROM_RAW_OEM_CONFIG_ROW0_LSB) & BIT(4)));
} |
functions | __init mpq8064_pcie_init(void)
{
if (mpq8064_pcie_enabled()) {
msm_device_pcie.dev.platform_data = &msm_pcie_platform_data;
platform_device_register(&msm_device_pcie);
} |
functions | void set_sec_micbias_state(bool state)
{
gpio_set_value_cansleep(PM8921_GPIO_PM_TO_SYS(PMIC_GPIO_EAR_MICBIAS_EN),
state);
} |
functions | int sec_jack_get_adc_value(void)
{
int rc = 0;
int retVal = 0;
struct pm8xxx_adc_chan_result result;
rc = pm8xxx_adc_mpp_config_read(
PM8XXX_AMUX_MPP_3,
ADC_MPP_1_AMUX6_SCALE_DEFAULT,
&result);
if (rc) {
pr_err("%s : error reading mpp %d, rc = %d\n",
__func__, PM8XXX_AMUX_MPP_3, rc);
return rc;
} |
functions | int uv_get_adc_value(void)
{
int rc = 0;
int retVal = 0;
struct pm8xxx_adc_chan_result result;
rc = pm8xxx_adc_mpp_config_read(
PM8XXX_AMUX_MPP_1,
ADC_MPP_2_AMUX6,
&result);
if (rc) {
pr_err("%s : error reading mpp %d, rc = %d\n",
__func__, PM8XXX_AMUX_MPP_1, rc);
return rc;
} |
functions | void uv_opamp_power_on(int onoff_l29)
{
int ret;
if (uv_vcc_1p8 == NULL) {
uv_vcc_1p8 = regulator_get(NULL, "8921_l29");
if (IS_ERR(uv_vcc_1p8))
return ;
ret = regulator_set_voltage(uv_vcc_1p8, 1800000, 1800000);
if (ret)
pr_err("%s: error uv_vcc_1p8 setting voltage ret=%d\n",
__func__, ret);
} |
functions | int rf4ce_gpio_init(void)
{
if (!machine_is_mpq8064_cdp() &&
!machine_is_mpq8064_hrd() &&
!machine_is_mpq8064_dtv())
return -EINVAL;
/* CC2533 SRDY Input */
if (!gpio_request(SX150X_GPIO(4, 6), "rf4ce_srdy")) {
gpio_direction_input(SX150X_GPIO(4, 6));
gpio_export(SX150X_GPIO(4, 6), true);
} |
functions | int es325_enable_VDD_CORE(void)
{
static struct regulator *l18;
int ret;
l18 = regulator_get(NULL, "8921_l18");
if (IS_ERR(l18)) {
pr_err("%s: error regulator_get\n", __func__);
return -1;
} |
functions | void es325_2MIC_RST_init(void)
{
struct pm_gpio es325_2MIC_RST = {
.direction = PM_GPIO_DIR_OUT,
.pull = PM_GPIO_PULL_NO,
.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 = ... |
functions | void es325_start_api(void)
{
es325_enable_VDD_CORE();
mdelay(50);
es325_2MIC_RST_init();
pr_info("=[ES325]=%s=====\n",__func__);
} |
functions | int es325_enable_ext_clk(int enable)
{
int r = 0;
static struct clk *es325_codec_clk;
pr_info("%s: enable=%d\n", __func__, enable);
if (!es325_codec_clk) {
pr_info("%s: Clk_Get osr_clk\n", __func__);
es325_codec_clk = clk_get(&msm_es325_mclk_dev.dev, "osr_clk");
} |
functions | __init apq8064_i2c_init(void)
{
void __iomem *gsbi_mem;
apq8064_device_qup_i2c_gsbi1.dev.platform_data =
&apq8064_i2c_qup_gsbi1_pdata;
gsbi_mem = ioremap_nocache(MSM_GSBI1_PHYS, 4);
writel_relaxed(GSBI_DUAL_MODE_CODE, gsbi_mem);
/* Ensure protocol code is written before proceeding */
wmb();
iounmap(gsbi_me... |
functions | int ethernet_init(void)
{
int ret;
ret = gpio_request(KS8851_IRQ_GPIO, "ks8851_irq");
if (ret) {
pr_err("ks8851 gpio_request failed: %d\n", ret);
goto fail;
} |
functions | int ethernet_init(void)
{
return 0;
} |
functions | __init apq8064_init_dsps(void)
{
struct msm_dsps_platform_data *pdata =
msm_dsps_device_8064.dev.platform_data;
pdata->pil_name = DSPS_PIL_GENERIC_NAME;
pdata->gpios = NULL;
pdata->gpios_num = 0;
platform_device_register(&msm_dsps_device_8064);
} |
functions | if defined(CONFIG_LEDS_AN30259A)
{
I2C_SURF | I2C_FFA | I2C_LIQUID,
I2C_LEDS_BUS_ID,
leds_i2c_devs,
ARRAY_SIZE(leds_i2c_devs),
} |
functions | __init register_i2c_devices(void)
{
u8 mach_mask = 0;
int i;
#ifdef CONFIG_MSM_CAMERA
struct i2c_registry apq8064_camera_i2c_devices = {
I2C_SURF | I2C_FFA | I2C_LIQUID | I2C_RUMI,
APQ_8064_GSBI4_QUP_I2C_BUS_ID,
apq8064_camera_board_info.board_info,
apq8064_camera_board_info.num_i2c_board_info,
} |
functions | void enable_ddr3_regulator(void)
{
static struct regulator *ext_ddr3;
/* Use MPP7 output state as a flag for PCDDR3 presence. */
if (gpio_get_value_cansleep(PM8921_MPP_PM_TO_SYS(7)) > 0) {
ext_ddr3 = regulator_get(NULL, "ext_ddr3");
if (IS_ERR(ext_ddr3) || ext_ddr3 == NULL)
pr_err("Could not get MPP7 regulat... |
functions | void enable_avc_i2c_bus(void)
{
int avc_i2c_en_mpp = PM8921_MPP_PM_TO_SYS(8);
int rc;
rc = gpio_request(avc_i2c_en_mpp, "avc_i2c_en");
if (rc)
pr_err("request for avc_i2c_en mpp failed,"
"rc=%d\n", rc);
else
gpio_set_value_cansleep(avc_i2c_en_mpp, 1);
} |
functions | void main_mic_bias_init(void)
{
int ret;
struct pm_gpio main_micbiase = {
.direction = PM_GPIO_DIR_OUT,
.pull = PM_GPIO_PULL_NO,
.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_v... |
functions | __init gpio_rev_init(void)
{
#ifdef CONFIG_SEC_FPGA
if (system_rev > BOARD_REV05) {
barcode_i2c_gpio_data.sda_pin =
PM8921_MPP_PM_TO_SYS(PMIC_MPP_FPGA_SPI_SI);
barcode_i2c_gpio_data.scl_pin =
PM8921_MPP_PM_TO_SYS(PMIC_MPP_FPGA_SPI_CLK);
barcode_emul_info.spi_en = -1;
barcode_emul_info.cresetb =
PM892... |
functions | void sec_jack_init(void)
{
int ret;
struct pm_gpio ear_micbiase = {
.direction = PM_GPIO_DIR_OUT,
.pull = PM_GPIO_PULL_NO,
.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 ... |
functions | void vps_sound_init(void)
{
int ret;
struct pm_gpio vps_sound_en = {
.direction = PM_GPIO_DIR_OUT,
.pull = PM_GPIO_PULL_NO,
.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 ... |
functions | __init apq8064_pm8917_pdata_fixup(void)
{
cdp_keys_data.buttons = cdp_keys_pm8917;
cdp_keys_data.nbuttons = ARRAY_SIZE(cdp_keys_pm8917);
} |
functions | __init apq8064ab_update_retention_spm(void)
{
int i;
/* Update the SPM sequences for krait retention on all cores */
for (i = 0; i < ARRAY_SIZE(msm_spm_data); i++) {
int j;
struct msm_spm_platform_data *pdata = &msm_spm_data[i];
for (j = 0; j < pdata->num_modes; j++) {
if (pdata->modes[j].cmd ==
spm_r... |
functions | __init apq8064_common_init(void)
{
u32 platform_version;
#ifdef CONFIG_KEYBOARD_CYPRESS_TOUCH_236
int ret;
#endif
#ifndef CONFIG_MACH_JF
if (socinfo_get_pmic_model() == PMIC_MODEL_PM8917)
apq8064_pm8917_pdata_fixup();
#endif
platform_device_register(&msm_gpio_device);
msm_tsens_early_init(&apq_tsens_pdata);
m... |
functions | __init apq8064_allocate_memory_regions(void)
{
apq8064_allocate_fb_region();
} |
functions | __init apq8064_gpio_keys_init(void)
{
struct pm_gpio param = {
.direction = PM_GPIO_DIR_IN,
.pull = PM_GPIO_PULL_UP_31P5,
.out_strength = PM_GPIO_STRENGTH_HIGH,
.vin_sel = PM_GPIO_VIN_S4,
.function = PM_GPIO_FUNC_NORMAL,
} |
functions | __init nfc_gpio_rev_init(void)
{
if (system_rev < BOARD_REV12)
bcm2079x_i2c_pdata.wake_gpio = GPIO_NFC_FIRMWARE;
} |
functions | __init samsung_jf_init(void)
{
#ifdef CONFIG_SEC_DEBUG
sec_debug_init();
#endif
#ifdef CONFIG_PROC_AVC
sec_avc_log_init();
#endif
if (meminfo_init(SYS_MEMORY, SZ_256M) < 0)
pr_err("meminfo_init() failed!\n");
/*
if (machine_is_apq8064_mtp() &&
SOCINFO_VERSION_MINOR(socinfo_get_platform_version()) == 1)
cytt... |
defines | #define CPD_ITERATIONS 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.