Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

u-boot: Change Serial Console Port

$
0
0

Hi all,

in the bsp there is :

in file include/configs/rztoaster.h file

#define CONFIG_SCIF_CONSOLE
#define CONFIG_CONS_SCIF2
#define SCIF2_BASE 0xE8008000

so if I want to change, I put

#define CONFIG_CONS_SCIF3

then in the board/my_company/rztoaster/rztoaster.c I should change:

    /* Serial Console */
    //pfc_set_pin_function(3, 0, ALT6, 0, 0);     //P3_0 = TxD2
    //pfc_set_pin_function(3, 2, ALT4, 0, 0);     //P3_2 = RxD2

into new:


    pfc_set_pin_function(3, 5, ALT6, 0, 0);    // P3_5 = TxD3
    pfc_set_pin_function(3, 6, ALT4, 0, 0);    // P3_6 = RxD3

It´s enough or there is something else?

Thanks in advance

Stevasway


Viewing all articles
Browse latest Browse all 1583

Trending Articles