On Thu, Sep 25, 2008 at 05:10:51PM +0200, Francesco Albanese wrote:
> Can you confirm this ? Anybody knows what is the possible cause ? (If
> yes, I'll investigate) The gsm_power_on function seems to act
> correctly on GPIO.
possible other causes:
* no clock to the respective UART (see untested patch below)
* baud rate configuration issue (unlikely if serial console works)
* some flow control related problem
> B.I don't know really how to read a file from the factory parrtition
> while working on u-boot. Any suggestion is welcome.
As Andy pointed out, it is just an ext2 partition. If u-boot is compiled
with ext2 support, you should be able to use the standard ext2ls and ext2load
commands of u-boot.
Looking forward to meeting you later today ;)
Cheers,
--
- Harald Welte <[EMAIL PROTECTED]> http://openmoko.org/
============================================================================
Software for the world's first truly open Free Software mobile phone
diff --git a/cpu/arm920t/s3c24x0/serial.c b/cpu/arm920t/s3c24x0/serial.c
index ba60ad1..ff7e0e5 100644
--- a/cpu/arm920t/s3c24x0/serial.c
+++ b/cpu/arm920t/s3c24x0/serial.c
@@ -114,6 +114,13 @@ void serial_setbrg(void)
static int serial_init_dev(const int dev_index)
{
S3C24X0_UART * const uart = S3C24X0_GetBase_UART(dev_index);
+ S3C24X0_CLOCK_POWER * const clk_power = S3C24X0_GetBase_CLOCK_POWER();
+
+ if (dev_index > 2)
+ return -ENODEV;
+
+ /* Clock enable */
+ clk_power-> CLKCON |= (1 << 10 + dev_index);
/* FIFO enable, Tx/Rx FIFO clear */
uart->UFCON = 0x07;