All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] u-boot using UART1
       [not found] <16B6520613CB8549B428B664E7F4A465049B6C@exch01.ta.local>
@ 2011-07-22  8:22 ` Nick Thompson
  2011-07-22  8:56   ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Thompson @ 2011-07-22  8:22 UTC (permalink / raw)
  To: u-boot

Don,

Please ask u-boot questions on the u-boot mailing list.

On 22/07/11 01:03, Don McCune wrote:
>
> We are bringing up a board based on the OMAPL137 processor.  The board is similar to the Spectrum Digital Evm board; however it has used UART2 for something else, so we need to make UAR1 the console line for u-boot.  Could you tell us how to modify u-boot to use UART1 for its console?
>

$ grep UART include/configs/da830evm.h
#define CONFIG_SYS_NS16550_COM1 DAVINCI_UART2_BASE /* Base address of UART2 */
#define CONFIG_SYS_NS16550_CLK  clk_get(DAVINCI_UART2_CLKID)
#define CONFIG_CONS_INDEX       1               /* use UART0 for console */

Just change DAVINCI_UART2_BASE to DAVINCI_UART1_BASE.

(and make sure your boot loader enables the pinmux for UART1)

>  
>
> Please reply-to-all with any questions or answers.  If you wish to contact us directly, please call Tim Orling at 805 269 0767.
>
>  
>
> Thank you.
>
>  
>
> Regards,
>
> Don McCune
>
>
 
Nick.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] u-boot using UART1
  2011-07-22  8:22 ` [U-Boot] u-boot using UART1 Nick Thompson
@ 2011-07-22  8:56   ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2011-07-22  8:56 UTC (permalink / raw)
  To: u-boot

Dear Nick Thompson,

In message <4E293329.9050009@ge.com> you wrote:
>
> > Could you tell us how to modify u-boot to use UART1 for its console?
> 
> $ grep UART include/configs/da830evm.h
> #define CONFIG_SYS_NS16550_COM1 DAVINCI_UART2_BASE /* Base address of UART2 */
> #define CONFIG_SYS_NS16550_CLK  clk_get(DAVINCI_UART2_CLKID)
> #define CONFIG_CONS_INDEX       1               /* use UART0 for console */
> 
> Just change DAVINCI_UART2_BASE to DAVINCI_UART1_BASE.

Eventually it would be useful to also change the definition of
CONFIG_SYS_NS16550_CLK to refer to DAVINCI_UART1_CLKID

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Evil does seek to maintain power by suppressing the truth."
"Or by misleading the innocent."
	-- Spock and McCoy, "And The Children Shall Lead",
	   stardate 5029.5.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-22  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <16B6520613CB8549B428B664E7F4A465049B6C@exch01.ta.local>
2011-07-22  8:22 ` [U-Boot] u-boot using UART1 Nick Thompson
2011-07-22  8:56   ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.