diff options
Diffstat (limited to 'packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P18-detailed_battery_050309.patch')
-rw-r--r-- | packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P18-detailed_battery_050309.patch | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P18-detailed_battery_050309.patch b/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P18-detailed_battery_050309.patch new file mode 100644 index 0000000000..1dd6db199b --- /dev/null +++ b/packages/linux/openzaurus-pxa27x-2.4.20-rmk2-embedix20050602/P18-detailed_battery_050309.patch @@ -0,0 +1,102 @@ +diff -Nur c3000_pre/linux/arch/arm/mach-pxa/sharpsl_battery.c c3000_work/linux/arch/arm/mach-pxa/sharpsl_battery.c +--- c3000_pre/linux/arch/arm/mach-pxa/sharpsl_battery.c 2004-11-16 15:31:06.000000000 +0900 ++++ c3000_work/linux/arch/arm/mach-pxa/sharpsl_battery.c 2005-03-08 23:05:29.000000000 +0900 +@@ -337,20 +337,88 @@ + + #if defined(CONFIG_ARCH_PXA_SPITZ) + BATTERY_THRESH sharpsl_main_battery_thresh_temp_h[] = { +- { 194, 100, SHARPSL_BATTERY_STATUS_HIGH}, +- { 188, 75, SHARPSL_BATTERY_STATUS_HIGH}, +- { 184, 50, SHARPSL_BATTERY_STATUS_HIGH}, +- { 180, 25, SHARPSL_BATTERY_STATUS_LOW}, +- { 176, 5, SHARPSL_BATTERY_STATUS_VERYLOW}, ++ { 212, 100, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 212, 98, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 211, 95, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 210, 93, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 209, 90, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 208, 88, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 207, 85, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 206, 83, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 205, 80, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 204, 78, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 203, 75, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 202, 73, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 201, 70, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 200, 68, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 199, 65, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 198, 63, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 197, 60, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 196, 58, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 195, 55, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 194, 53, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 193, 50, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 192, 48, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 192, 45, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 191, 43, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 191, 40, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 190, 38, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 190, 35, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 189, 33, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 188, 30, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 187, 28, SHARPSL_BATTERY_STATUS_LOW}, ++ { 186, 25, SHARPSL_BATTERY_STATUS_LOW}, ++ { 185, 23, SHARPSL_BATTERY_STATUS_LOW}, ++ { 184, 20, SHARPSL_BATTERY_STATUS_LOW}, ++ { 183, 18, SHARPSL_BATTERY_STATUS_LOW}, ++ { 182, 15, SHARPSL_BATTERY_STATUS_LOW}, ++ { 181, 13, SHARPSL_BATTERY_STATUS_LOW}, ++ { 180, 10, SHARPSL_BATTERY_STATUS_LOW}, ++ { 179, 8, SHARPSL_BATTERY_STATUS_LOW}, ++ { 178, 5, SHARPSL_BATTERY_STATUS_VERYLOW}, + { 0, 0, SHARPSL_BATTERY_STATUS_CRITICAL}, + }; + + BATTERY_THRESH sharpsl_main_battery_thresh_temp_l[] = { +- { 194, 100, SHARPSL_BATTERY_STATUS_HIGH}, +- { 188, 75, SHARPSL_BATTERY_STATUS_HIGH}, +- { 184, 50, SHARPSL_BATTERY_STATUS_HIGH}, +- { 180, 25, SHARPSL_BATTERY_STATUS_LOW}, +- { 176, 5, SHARPSL_BATTERY_STATUS_VERYLOW}, ++ { 212, 100, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 212, 98, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 211, 95, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 210, 93, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 209, 90, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 208, 88, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 207, 85, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 206, 83, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 205, 80, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 204, 78, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 203, 75, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 202, 73, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 201, 70, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 200, 68, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 199, 65, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 198, 63, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 197, 60, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 196, 58, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 195, 55, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 194, 53, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 193, 50, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 192, 48, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 191, 45, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 190, 43, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 189, 40, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 188, 38, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 187, 35, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 186, 33, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 185, 30, SHARPSL_BATTERY_STATUS_HIGH}, ++ { 184, 28, SHARPSL_BATTERY_STATUS_LOW}, ++ { 183, 25, SHARPSL_BATTERY_STATUS_LOW}, ++ { 182, 23, SHARPSL_BATTERY_STATUS_LOW}, ++ { 181, 20, SHARPSL_BATTERY_STATUS_LOW}, ++ { 180, 18, SHARPSL_BATTERY_STATUS_LOW}, ++ { 179, 15, SHARPSL_BATTERY_STATUS_LOW}, ++ { 178, 13, SHARPSL_BATTERY_STATUS_LOW}, ++ { 177, 10, SHARPSL_BATTERY_STATUS_LOW}, ++ { 176, 8, SHARPSL_BATTERY_STATUS_LOW}, ++ { 175, 5, SHARPSL_BATTERY_STATUS_VERYLOW}, + { 0, 0, SHARPSL_BATTERY_STATUS_CRITICAL}, + }; + #else |