Changing u-boot serial console

Hi all,

How can I change serial console(Debug port) in u-boot, I am using i-wave rainbow G22m development board. Currently using SCIF4 port for serial console but i want to change it to the SCIF5

 

changed iwg22m_sm.h

#define CONFIG_SCIF_CONSOLE
#define CONFIG_CONS_SCIF4   
#define CONFIG_SCIF_USE_EXT_CLK

to

#define CONFIG_SCIF_CONSOLE
#define CONFIG_CONS_SCIF5   
#define CONFIG_SCIF_USE_EXT_CLK

and

 

#define SCIF4_BASE    0xe6ee0000

to

#define SCIF5_BASE  0xe6ee8000

 

 

 

and in iwg22m_sm.c

#define SCIF4_MSTP715 (1 << 15)

to
#define SCIF5_MSTP714 (1 << 14)

 

and added

/* SCIF5 */
val = readl(MSTPSR7);
val &= ~SCIF5_MSTP714;
writel(val, SMSTPCR7);

to

int board_early_init_f(void) function

and also change

#ifdef CONFIG_SCIF_CONSOLE
/* UART */
/* IWG22M: UART: UART MUX pin defined */
gpio_request(GPIO_FN_SCIF4_TXD_B, NULL);
gpio_request(GPIO_FN_SCIF4_RXD_B, NULL);

 

to


gpio_request(GPIO_FN_SCIF5_TXD_D, NULL);
gpio_request(GPIO_FN_SCIF5_RXD_D, NULL);

 

kindly provide assistance for the issue.

Regards,

Jomon

 

 

 

 

 

 

  • Hi,

    I don't have the schematics of the G22m board but in general the debug port is determined by the hardware, i.e. which serial interface of the RZ/G has been connected to the onboard USB-to-serial interface chip. That means you cannot change it by just changing the software configuration.

    Regards,
    Georgi
  • jomon,

    Has your question been answered?

    Mike Clements
    RenesasRulz
  • This thread will be archived due to inactivity.

    Mike Clements
    RenesasRulz Moderator