[U-Boot] [PATCH v7 3/3] T1040QDS/U-QE: Add u-qe support to t1040qds
York Sun
yorksun at freescale.com
Wed Mar 26 21:04:10 CET 2014
On 03/21/2014 01:21 AM, Zhao Qiang wrote:
> Add u-qe support for t1040qds
>
> Signed-off-by: Zhao Qiang <B45475 at freescale.com>
> ---
> Changes for v2:
> - modify CONFIG_SYS_QE_FMAN_FW_ADDR to CONFIG_SYS_FMAN_FW_ADDR and CONFIG_SYS_QE_FW_ADDR
> Changes for v3:
> - use CONFIG_U_QE instead of CONFIG_PPC_T1040
> Changes for v4:
> - ifdef CONFIG_U_QE, include "../../../../drivers/qe/qe.h"
> Changes for v5:
> - no
> Changes for v6:
> - rebase
> Changes for v7:
> - split to two patches, the one to support u-qe and the other is to add u-qe to t1040qds
>
> board/freescale/t1040qds/t1040qds.c | 27 +++++++++++++++++++++++++++
> include/configs/T1040QDS.h | 3 +++
> 2 files changed, 30 insertions(+)
>
> diff --git a/board/freescale/t1040qds/t1040qds.c b/board/freescale/t1040qds/t1040qds.c
> index 3dec447..d50ad42 100644
> --- a/board/freescale/t1040qds/t1040qds.c
> +++ b/board/freescale/t1040qds/t1040qds.c
> @@ -18,6 +18,7 @@
> #include <asm/fsl_portals.h>
> #include <asm/fsl_liodn.h>
> #include <fm_eth.h>
> +#include <hwconfig.h>
>
> #include "../common/qixis.h"
> #include "t1040qds.h"
> @@ -89,6 +90,30 @@ int select_i2c_ch_pca9547(u8 ch)
> return 0;
> }
>
> +static void qe_board_setup(void)
> +{
> + u8 brdcfg15, brdcfg9;
> +
> + if (hwconfig("qe") && hwconfig("tdm")) {
This is called before environmental variables are relocated to DDR. It will
cause a warning. Please use hwconfig_f.
York
More information about the U-Boot
mailing list