Skip to contentSkip to conversation

Linuxppc-dev Digest, Vol 81, Issue 140

DISCUSSION Muhammad Waseem 2 participants 2 messages May 27, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I have developed a simple polling based serial device driver for PC's serial port (COM1: 0x3F8) which works fine. Now I want to implement the same on UART # 1 of PPC440EPx (Sequoia board).

By changing the base address 0x3F8 to UART# 1 base address (0xEF600400) in Sequoia it does not work and return all the registers contents from 0xEF600400 to 0xEF600407 as 0xFF.

Whereas existing ttyS1 driver works for UART# 1.

How can I access the UART# 1 registers in a custom serial driver under kernel space.

Waseem

#2 lore raw
Quoted 4 lines · Muhammad Waseem

I have developed a simple polling based serial device driver for PC's serial port (COM1: 0x3F8) which works fine. Now I want to implement the same on UART # 1 of PPC440EPx (Sequoia board).

Quoted 8 lines

By changing the base address 0x3F8 to UART# 1 base address (0xEF600400) in Sequoia it does not work and return all the registers contents from 0xEF600400 to 0xEF600407 as 0xFF.

Whereas existing ttyS1 driver works for UART# 1.

How can I access the UART# 1 registers in a custom serial driver under kernel space.

If you post your driver code, we can review it.

josh