On 03/21/2014 01:21 AM, Zhao Qiang wrote: > Add u-qe support for t1040qds > > Signed-off-by: Zhao Qiang <b45...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot