rk292x内核配置及相关注意事项培训.ppt
文本预览下载声明
福州瑞芯微电子有限公司 2012.11.09 吴浩 RK292x kernel开发及注意要点 目录 rk2928 rk2926 代码简介 gsensor tp battery pmu Backlight and lcd wifi ddr dvfs fiq rk2928 rk2926 kernel代码简介 使用同一份工程代码 sdk 型号 rk2926:m713、v86 rk2928:726 (BGA封装) 使用宏区分 CONFIG_MACH_RK2928_SDK CONFIG_MACH_RK2926_SDK CONFIG_MACH_RK2926_V86 rk2928 rk2926 kernel代码简介 板级文件 一、rk292x的SDK内核配置: 1、RK2926 M713:rk2926_sdk_defconfig 板级文件是:board-rk2926-sdk.c 2、 RK2926 V86: rk2926_v86_defconfig 板级文件是:board-rk2926-sdk.c 3、RK2928 726:rk2928_sdk_defconfig 板级文件是:board-rk2928-sdk.c 二、rk292x的SDK共用: board-rk2928-sdk-camera.c board-rk2928-sdk-key.c board-rk2928-sdk-atc8931.c board-rk2928-sdk-tps65910.c gsensor 目前提供了2个框架 drivers/input/sensors 和 drivers/input/gsensor kernel配置 Device Drivers --- Input device support --- g_sensor device support --- 或 handle gsensor,compass,gyroscope,lsensor psensor etc --- gsensor x、y、z轴调整 static struct sensor_platform_data mma7660_info = { .type = SENSOR_TYPE_ACCEL, .irq_enable = 1, .poll_delay_ms = 30, .init_platform_hw = mma7660_init_platform_hw, #if defined(V86_VERSION_1_0) || defined(V86_VERSION_1_1) #if defined(V86_VERSION_1_0) .orientation = {1, 0, 0, 0, 0, -1, 0, -1, 0}, #else if defined(V86_VERSION_1_1) .orientation = {0, 1, 0, 0, 0, -1, 1, 0, 0}, #endif #else .orientation = {-1, 0, 0, 0, 0, -1, 0, 1, 0}, #endif }; x = sensor_convert_data(sensor-client, 0, buffer[0]); //buffer[1]:high bit y = sensor_convert_data(sensor-client, 0, buffer[1]); z = sensor_convert_data(sensor-client, 0, buffer[2]); axis.x = (pdata-orientation[0])*x + (pdata-orientation[1])*y + (pdata-orientation[2])*z; axis.y = (pdata-orientation[3])*x + (pdata-orientation[4])*y + (pdata-orientation[5])*z; axis.z = (pdata-orientation[6])*x + (pdata-orientation[7])*y + (pdata-orientation[8])*z; gsensor tp kernel配
显示全部