This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About iPAQ H3870


Gary D. Thomas wrote:
On Wed, 2003-04-23 at 11:24, Sung-Nan Yao wrote:

Hi,
After tracing the Linux code for H3800,
I found the memory mapped I/O between the iPAQ H3800 and
iPAQ H6000 is different.
So I think some code in eCos won`t work on H3870.

For example,
the RS232_ON is different between them.

In linux,
#define H3800_ASIC1_GPIO_OUT    0x49001e68
#define GPIO1_RS232_ON          (1  << 2)

In eCos,
#define EGPIOBase               0x49000000
#define EGPIO_BITSY_RS232_ON    (1  << 7)

In InitUART3 macro in eCos,it initializes the UART3.
In the end of the macro,it turns on the RS232_ON by setting the EGPIOBase.
But in the linux,it sets the H3800_ASIC1_GPIO_OUT.

So I change the EGPIOBase to 0x49001e68 and
EGPIO_BITSY_RS232_ON to (1  << 7).
In the test on my H3870,the Serial Port can work.

Does anyone find the problem or do the porting?


As far as I know, no one has ever tried to get eCos/RedBoot running on
the 3870.

Obviously if this is the only change required, and Sung-Nan can verify this, then we want to know so we can add this support! Sung-Nan?


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]