From 1b810a4dc6b7ad52eb8cf34438cf75b29be83407 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Nov 2008 10:16:44 +0000 Subject: [PATCH] qi-gta02-additional-regs-init.patch This should fix the reported problems with audio when the kernel is started with Qi on GTA02 Signed-off-by: Andy Green --- qiboot/src/cpu/s3c2442/gta02.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qiboot/src/cpu/s3c2442/gta02.c b/qiboot/src/cpu/s3c2442/gta02.c index 885debd..dbeb852 100644 --- a/qiboot/src/cpu/s3c2442/gta02.c +++ b/qiboot/src/cpu/s3c2442/gta02.c @@ -53,6 +53,9 @@ const struct pcf50633_init pcf50633_init[] = { { PCF50633_REG_HCLDOOUT, 21 }, /* 3.0V (21 * 0.1V + 0.9V) */ { PCF50633_REG_HCLDOENA, 0x01 }, /* ON by default*/ + { PCF50633_REG_DOWN1OUT, 0x1b }, /* 1.3V (0x1b * .025V + 0.625V) */ + { PCF50633_REG_DOWN1ENA, 0x02 }, /* enabled if GPIO1 = HIGH */ + { PCF50633_REG_INT1M, 0x00 }, { PCF50633_REG_INT2M, 0x00 }, { PCF50633_REG_INT3M, 0x00 }, @@ -62,12 +65,17 @@ const struct pcf50633_init pcf50633_init[] = { { PCF50633_REG_MBCC2, 0x28 }, /* Vbatconid=2.7V, Vmax=4.20V */ { PCF50633_REG_MBCC3, 0x19 }, /* 25/255 == 98mA pre-charge */ { PCF50633_REG_MBCC4, 0xff }, /* 255/255 == 1A adapter fast */ - { PCF50633_REG_MBCC5, 0x19 }, /* 25/255 == 98mA soft-start usb fast */ + { PCF50633_REG_MBCC5, 0xff }, /* 255/255 == 1A usb fast */ { PCF50633_REG_MBCC6, 0x00 }, /* cutoff current 1/32 * Ichg */ { PCF50633_REG_MBCC7, 0x00 }, /* 1.6A max bat curr, USB 100mA */ { PCF50633_REG_MBCC8, 0x00 }, { PCF50633_REG_MBCC1, 0xff }, /* chgena */ + { PCF50633_REG_LDO1ENA, 2 }, /* enabled if GPIO1 = H */ + { PCF50633_REG_LDO2ENA, 2 }, /* enabled if GPIO1 = H */ + { PCF50633_REG_LDO5ENA, 1 }, + { PCF50633_REG_LDO6ENA, 1 }, + { PCF50633_REG_BBCCTL, 0x19 }, /* 3V, 200uA, on */ { PCF50633_REG_OOCSHDWN, 0x04 }, /* defeat 8s death from lowsys on A5 */