uBoot Hardware Awareness

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uBoot Hardware Awareness

Jump to solution
1,145 Views
danielbujak
Contributor III

I'm trying to understand how uBoot knows where to find the necessary hardware and peripherals on the IMX6. For example, when I build the default image uBoot outputs over UART1, but is it possible to have default output on UART2, 3,.. etc. Is there something similar to the DTB that uBoot uses to know what hardware it has available?

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,051 Views
igorpadykov
NXP Employee
NXP Employee

Hi danielbujak

there is no dtb in uboot, typically some modifications can be set in

uboot/include/configs/board_name.h file. Other hardware changes are

manually entered in code, please also look at attached Porting Guide.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
1,051 Views
danielbujak
Contributor III

I found the changes required for the UART:

mx6ul_14x14_evk.h:

#define CONFIG_MXC_UART_BASE        UART2_BASE

and

mx6ul_14x14_evk.c:

static iomux_v3_cfg_t const uart2_pads[] = {
  MX6_PAD_NAND_DATA04__UART2_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
  MX6_PAD_NAND_DATA05__UART2_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
};

0 Kudos
Reply
1,052 Views
igorpadykov
NXP Employee
NXP Employee

Hi danielbujak

there is no dtb in uboot, typically some modifications can be set in

uboot/include/configs/board_name.h file. Other hardware changes are

manually entered in code, please also look at attached Porting Guide.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply