Skip to content

Instantly share code, notes, and snippets.

#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/uaccess.h>
#include <linux/gpio.h>
int ds_gpio = 13;
char ds = '0';
int ds_read( char *page, char **start, off_t off, int count, int *eof, void *data )
{
@galaxyfreak
galaxyfreak / log
Created February 11, 2015 20:53
msm_camera_io_util.c full logging - it's gpio 69, not suprising it fucks with us.
<3>[ 5.575911] msm_eeprom_platform_probe MM data miss:1033
<3>[ 5.580404] msm_camera_request_gpio_table:562 i 0, gpio 26 dir 0
<3>[ 5.586085] msm_camera_request_gpio_table:562 i 1, gpio 37 dir 0
<3>[ 5.592092] msm_camera_request_gpio_table:562 i 2, gpio 36 dir 0
<3>[ 5.598063] msm_camera_request_gpio_table:562 i 3, gpio 69 dir 0
<3>[ 5.604088] [VY5X] GPIO69_count+1 = 1
<3>[ 5.607704] msm_camera_config_single_vreg enable cam_vio
<3>[ 5.613103] msm_camera_config_single_vreg enable cam_vdig
<3>[ 5.618750] msm_camera_config_single_vreg enable cam_vana
<3>[ 5.624130] msm_camera_config_single_vreg enable cam_vaf
Kernel features
- Sweep2Wake
- DoubleTap2Wake - Done
- BLN - Done
- Pocket Detection - Done
- Update KGSL to KK2.7 - Done
- Update ION to KK2.7 - Done
- Resizing partitions - Done
- Wake Gestures module - Done
@galaxyfreak
galaxyfreak / pico_defconfig
Last active August 29, 2015 13:57
Making sexy defconfig
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.16 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y