FORUMS
Remove All Ads from XDA

Samsung Galaxy Phone Rapid Charger Mod

4,735 posts
Thanks Meter: 2,938
 
By TRusselo, Inactive Recognized Developer on 9th December 2011, 09:03 PM
Post Reply Email Thread
3rd January 2012, 10:16 PM |#11  
TRusselo's Avatar
OP Inactive Recognized Developer
Flag Edmonton
Thanks Meter: 2,938
 
Donate to Me
More
Do you mean to build a kernel that has different settings for the USB resistor input? What/where was the specific change you made?
3rd January 2012, 10:43 PM |#12  
Lukiqq's Avatar
Senior Member
Flag Lubań
Thanks Meter: 1,515
 
Donate to Me
More
Quote:
Originally Posted by TRusselo

Do you mean to build a kernel that has different settings for the USB resistor input? What/where was the specific change you made?

Voltage regulator and the charging current part: max8998-private.h, a file that contains charging values in mA:

Code:
#define MAX8998_ICHG_90		0
#define MAX8998_ICHG_380	1
#define MAX8998_ICHG_475	2
#define MAX8998_ICHG_550	3
#define MAX8998_ICHG_570	4
#define MAX8998_ICHG_600	5
#define MAX8998_ICHG_700	6
#define MAX8998_ICHG_800	7
Battery driver part: s5pc110_battery.c and defined AC and USB charging rates (modified by me to 800mA when on AC and 550mA on USB):

Code:
                      if (chg->cable_status == CABLE_TYPE_AC)
				max8998_write_reg(i2c, MAX8998_REG_CHGR1,
					(MAX8998_TOPOFF_10	<< MAX8998_SHIFT_TOPOFF) |
					(MAX8998_RSTR_DISABLE	<< MAX8998_SHIFT_RSTR) |
					(MAX8998_ICHG_800	<< MAX8998_SHIFT_ICHG));
			else if (chg->cable_status == CABLE_TYPE_USB)
				max8998_write_reg(i2c, MAX8998_REG_CHGR1,
					(MAX8998_TOPOFF_25	<< MAX8998_SHIFT_TOPOFF) |
					(MAX8998_RSTR_DISABLE	<< MAX8998_SHIFT_RSTR) |
					(MAX8998_ICHG_550	<< MAX8998_SHIFT_ICHG));
One more thing in i9000 kernel sources: drivers/usb/gadget/android.c

Code:
#ifdef CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE
/* soonyong.cho : This value of max power is referred from S1 */
	.bMaxPower	= 0x30, /* 96ma */
#else /* original */
	.bMaxPower	= 0xFA, /* 500ma */
#endif /* CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE
from where I removed the condition to make it look like that:
Code:
.bMaxPower	= 0xFA, /* 500ma */
BEFORE:


AFTER:
The Following 4 Users Say Thank You to Lukiqq For This Useful Post: [ View ] Gift Lukiqq Ad-Free
3rd January 2012, 10:57 PM |#13  
TRusselo's Avatar
OP Inactive Recognized Developer
Flag Edmonton
Thanks Meter: 2,938
 
Donate to Me
More
Now that's the kind of stuff we like to see!

NOW ENGLISH IMAGE (non android related)...

3rd January 2012, 11:19 PM |#14  
TRusselo's Avatar
OP Inactive Recognized Developer
Flag Edmonton
Thanks Meter: 2,938
 
Donate to Me
More
Is there any particular reason why you did not move USB speed to match the PC speed? Was it to avoid drawing too much power from your USB port?
3rd January 2012, 11:41 PM |#15  
Lukiqq's Avatar
Senior Member
Flag Lubań
Thanks Meter: 1,515
 
Donate to Me
More
Quote:
Originally Posted by TRusselo

Is there any particular reason why you did not move USB speed to match the PC speed? Was it to avoid drawing too much power from your USB port?

Yes and no, because single USB port cannot deliver more than 500mA, but if you use two ports simultaneously, you are able to use full 800mA charging current which is limited by the kernel driver so there is no way to charm the phone.
4th January 2012, 01:38 AM |#16  
xHausx's Avatar
Inactive Recognized Developer
Flag Central Florida
Thanks Meter: 4,550
 
More
If you have any USB 3.0 ports those are able to go up to 900mA from a single port
6th January 2012, 06:17 AM |#17  
Member
Thanks Meter: 19
 
More
I just tried this and it worked perfectly, thanks! Very easy soldering job.
EDIT: Used my $8 radioshack iron, it was plenty. No need to break out the Hakko station for this.
8th January 2012, 03:03 AM |#18  
TRusselo's Avatar
OP Inactive Recognized Developer
Flag Edmonton
Thanks Meter: 2,938
 
Donate to Me
More
some kernel devs on ICS SGS project seem to think the above kernel change to up the USB mode to 500mah (less than AC mode) could cause the battery to explode, or damage the phone, or fry the USB ports of the computer..... and the batteries *like* being charged slower anyway... lithium ion batteries... but its all "simple chemistry" according to "one of them".. ignoring simple electronics...

i dont know where to start on how many things are wrong with what they think.... but I am not a kernel compiling god like them..... so I am no-one to tell them different.... (in their eyes).

making the suggestion of the above kernel change. led to a 20 minute bashing session of how i am wrong.
i just wanted to suggest, and leave. not really caring if they liked it or not. but ignorance is a powerful foe.

anyone wanna explain for me?

makes me re-think donating to people i dont know.
8th January 2012, 05:01 AM |#19  
Lukiqq's Avatar
Senior Member
Flag Lubań
Thanks Meter: 1,515
 
Donate to Me
More
Quote:
Originally Posted by TRusselo

some kernel devs on ICS SGS project seem to think the above kernel change to up the USB mode to 500mah (less than AC mode) could cause the battery to explode, or damage the phone, or fry the USB ports of the computer..... and the batteries *like* being charged slower anyway... lithium ion batteries... but its all "simple chemistry" according to "one of them".. ignoring simple electronics...

i dont know where to start on how many things are wrong with what they think.... but I am not a kernel compiling god like them..... so I am no-one to tell them different.... (in their eyes).

making the suggestion of the above kernel change. led to a 20 minute bashing session of how i am wrong.
i just wanted to suggest, and leave. not really caring if they liked it or not. but ignorance is a powerful foe.

anyone wanna explain for me?

makes me re-think donating to people i dont know.

So now you know why you didn't saw any info about my interesting finding... ^^

Sent from my GT-I9000 using Tapatalk
8th January 2012, 05:11 AM |#20  
TRusselo's Avatar
OP Inactive Recognized Developer
Flag Edmonton
Thanks Meter: 2,938
 
Donate to Me
More
we need to have software devs that understand hardware...

im too much in the middle. lol
8th January 2012, 10:21 AM |#21  
Junior Member
Thanks Meter: 1
 
More
good info and guide...thanks i must try it
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes