public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Question about CONFIG_MPC83XX
@ 2007-08-07 22:06 Bruce_Leonard at selinc.com
       [not found] ` <20070808170632.9b83c3de.kim.phillips@freescale.com>
  0 siblings, 1 reply; 17+ messages in thread
From: Bruce_Leonard at selinc.com @ 2007-08-07 22:06 UTC (permalink / raw)
  To: u-boot

I'm working on porting u-boot to my custom HW (using MPC8347E) and I'm 
curious about the CONFIG_MPC83XX flag.  I started with a copy of the 
MPC8349ITX.h file for my config and it defines CONFIG_MPC834X and 
CONFIG_MPC8349.  But there's a field called bi_immrbar in the bd_info 
struct (.../include/asm-ppc/u-boot.h) surrounded by a check for 
CONFIG_MPC83XX.  Now it seems to me that this field should be applicable 
to the 834x processors as well.  So my questions is two fold: 1) why 
doesn't the MPC8349ITX board define CONFIG_MPC83XX to pick it up, and 2) 
should I be doing so for an MPC8347E processor?

Thanks.

Bruce

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [U-Boot-Users] USART on at91rm9200
@ 2007-08-15  5:21 larytet.54154763 at bloglines.com
  2007-08-15  6:09 ` Wolfgang Denk
  0 siblings, 1 reply; 17+ messages in thread
From: larytet.54154763 at bloglines.com @ 2007-08-15  5:21 UTC (permalink / raw)
  To: u-boot

hello,



it looks  that function serial_putc() is called before serial_init()
(file cpu/arm920t/at91rm9200/serial.c. Function serial_putc() enters loop
forever.



Suggested quick patch 



static int initialized = 0;



/* bring
flag initialized up in the end of the function serial_init() */

int serial_init
(void)

{

	/* make any port initializations specific to this port */

#ifdef
CONFIG_DBGU

	*AT91C_PIOA_PDR = AT91C_PA31_DTXD | AT91C_PA30_DRXD;	/* PA 31
& 30 */

	*AT91C_PMC_PCER = 1 << AT91C_ID_SYS;	/* enable clock */

#endif

#ifdef CONFIG_USART0

	*AT91C_PIOA_PDR = AT91C_PA17_TXD0 | AT91C_PA18_RXD0;

	*AT91C_PMC_PCER |= 1 << AT91C_ID_USART0;	/* enable clock */

#endif

#ifdef
CONFIG_USART1

	*AT91C_PIOB_PDR = AT91C_PB21_TXD1 | AT91C_PB20_RXD1;

	/*
arkady - this is not enough to write PDR

		i want to make sure, that alternative
function A is set */

	*AT91C_PIOB_ASR = AT91C_PB21_TXD1 | AT91C_PB20_RXD1;

	*AT91C_PMC_PCER |= 1 << AT91C_ID_USART1;	/* enable clock */

	/* arkady
- i am not sure, that port B is enabled in the PCER */

	*AT91C_PMC_PCER |=
1 << AT91C_ID_PIOB;	/* enable PIOB */

#endif

	serial_setbrg ();



	us->US_CR
= AT91C_US_RSTRX | AT91C_US_RSTTX;

	us->US_CR = AT91C_US_RXEN | AT91C_US_TXEN;

	us->US_MR =

		(AT91C_US_CLKS_CLOCK | AT91C_US_CHRL_8_BITS |

		 AT91C_US_PAR_NONE
| AT91C_US_NBSTOP_1_BIT);

	us->US_IMR = ~0ul;

	initialized = 1;

	return
(0);

}





void serial_putc (const char c)

{

	if (!initialized) return;



	if (c == '\n')

		serial_putc ('\r');

	while ((us->US_CSR & AT91C_US_TXRDY)
== 0);

	us->US_THR = c;

}

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

end of thread, other threads:[~2007-08-15  6:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 22:06 [U-Boot-Users] Question about CONFIG_MPC83XX Bruce_Leonard at selinc.com
     [not found] ` <20070808170632.9b83c3de.kim.phillips@freescale.com>
2007-08-10  6:46   ` Kim Phillips
2007-08-10 17:11     ` Bruce_Leonard at selinc.com
2007-08-10 18:04       ` Wolfgang Denk
2007-08-12  1:02         ` [U-Boot-Users] [OT] 10/100/1000 TSEC LED meanings David Hawkins
2007-08-12  2:54           ` Rune Torgersen
2007-08-13 21:46             ` David Hawkins
2007-08-12  4:41           ` [U-Boot-Users] USART on at91rm9200 Leonid
2007-08-13 14:25             ` Matt Gessner
2007-08-13 15:38               ` Leonid
2007-08-13 15:46                 ` Matt Gessner
2007-08-13 16:26                   ` Leonid
2007-08-13 16:28                     ` Matt Gessner
2007-08-13 17:08                 ` Ulf Samuelsson
2007-08-13 17:40                   ` Leonid
  -- strict thread matches above, loose matches on Subject: below --
2007-08-15  5:21 larytet.54154763 at bloglines.com
2007-08-15  6:09 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox