linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Leopold Stotch" <l.butterz@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: PSC in UART mode on TQM5200S
Date: Tue, 18 Sep 2007 14:13:28 +0400	[thread overview]
Message-ID: <53b5d6e90709180313n7ef053ddqfb771f44d9bd44ef@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

Hello, everyone !

I have TQM5200S module and development board.
It runs factory UBoot and latest DENX's linuxppc_2_4_devel kernel.
I want to configure all TQM5200S's onboard PSC's as UART's.
TQM5200S's onboard PSC's are connected to custom board
that makes all electrical things as my hardware engineer says...
So changed $HOME/linuxppc_2_4_devel/arch/ppc/platforms/tqm5200.h
the following way:

#ifdef CONFIG_PS2MULT
#define RS_TABLE_SIZE  4
#else
#if defined(CONFIG_SPI_EVAL) || defined(CONFIG_TB5200)
#define RS_TABLE_SIZE  2
#elif defined(CONFIG_CAM5200)
#define RS_TABLE_SIZE  6
#else
#define RS_TABLE_SIZE  3
#endif
#endif

changed to

#ifdef CONFIG_PS2MULT
#define RS_TABLE_SIZE  4
#else
#if defined(CONFIG_SPI_EVAL) || defined(CONFIG_TB5200)
#define RS_TABLE_SIZE  2
#elif defined(CONFIG_CAM5200)
#define RS_TABLE_SIZE  6
#else
#define RS_TABLE_SIZE  6
#endif
#endif

and

#else /* default */
#define SERIAL_PORT_DFNS    \
    STD_PSC_OP(1)        \
    STD_PSC_OP(2)        \
    STD_PSC_OP(3)
#endif

changed to

#else /* default */
#define SERIAL_PORT_DFNS    \
    STD_PSC_OP(1)        \
    STD_PSC_OP(2)        \
    STD_PSC_OP(3)        \
    STD_PSC_OP(4)        \
    STD_PSC_OP(5)        \
    STD_PSC_OP(6)
#endif

After rebuilding the kernel, dmesg says:

...
ttyS0 on PSC1
ttyS1 on PSC2
ttyS2 on PSC3
ttyS3 on PSC4
ttyS4 on PSC5
ttyS5 on PSC6
...

But when i do "echo 1 > /dev/ttyS4" i receive nothing at the other end.

The questions are:

Is it possible to reconfigure all PSC's as UART's ?
Should i change something in UBoot or everything i did was wrong ?

P.S. Sorry for my poor english and newbie questions :-)

-- 
Best regards,
Leopold Stotch

[-- Attachment #2: Type: text/html, Size: 2381 bytes --]

             reply	other threads:[~2007-09-18 10:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 10:13 Leopold Stotch [this message]
2007-09-18 14:01 ` PSC in UART mode on TQM5200S Grant Likely
2007-09-19  7:04   ` Leopold Stotch
     [not found]   ` <53b5d6e90709182355y17fd5965u5f212be74068442e@mail.gmail.com>
     [not found]     ` <fa686aa40709190733ufd38f1fx7771bd0e98376081@mail.gmail.com>
2007-09-19 14:50       ` Leopold Stotch
2007-09-18 22:38 ` Wolfgang Denk
2007-09-19  7:40   ` Leopold Stotch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53b5d6e90709180313n7ef053ddqfb771f44d9bd44ef@mail.gmail.com \
    --to=l.butterz@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).