config MBA6
bool "TQMa6 on MBa6 Starterkit"
+ select TQ_COMMON_BB
select USB
select CMD_USB
select USB_STORAGE
config WRU4
bool "OHB WRU-IV"
+ select TQ_COMMON_BB
help
Select the
OHB Systems AG WRU-IV baseboard.
default "board/tq/tqma6/tqma6dl.cfg" if TQMA6DL
default "board/tq/tqma6/tqma6s.cfg" if TQMA6S
+source "board/tq/common/Kconfig"
+
endif
#include <power/pfuze100_pmic.h>
#include <power/pmic.h>
-#include "tqma6_bb.h"
+#include "../common/tq_bb.h"
DECLARE_GLOBAL_DATA_PTR;
int board_early_init_f(void)
{
- return tqma6_bb_board_early_init_f();
+ return tq_bb_board_early_init_f();
}
int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
- tqma6_bb_board_init();
+ tq_bb_board_init();
return 0;
}
{
env_set("board_name", tqma6_get_boardname());
- tqma6_bb_board_late_init();
+ tq_bb_board_late_init();
printf("Board: %s on a %s\n", tqma6_get_boardname(),
- tqma6_bb_get_boardname());
- return 0;
+ tq_bb_get_boardname());
+
+ return tq_bb_checkboard();
}
/*
char modelstr[MODELSTRLEN];
snprintf(modelstr, MODELSTRLEN, "TQ %s on %s", tqma6_get_boardname(),
- tqma6_bb_get_boardname());
+ tq_bb_get_boardname());
do_fixup_by_path_string(blob, "/", "model", modelstr);
fdt_fixup_memory(blob, (u64)PHYS_SDRAM, (u64)gd->ram_size);
/* bring in eMMC dsr settings */
do_fixup_by_path_u32(blob,
"/soc/aips-bus@02100000/usdhc@02198000",
"dsr", tqma6_emmc_dsr, 2);
- tqma6_bb_ft_board_setup(blob, bd);
+ tq_bb_ft_board_setup(blob, bd);
return 0;
}
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * Copyright (c) 2013-2014 TQ-Systems GmbH <u-boot@ew.tq-group.com>,
- * D-82229 Seefeld, Germany.
- * Author: Markus Niebel
- */
-
-#ifndef __TQMA6_BB__
-#define __TQMA6_BB__
-
-int tqma6_bb_board_mmc_getwp(struct mmc *mmc);
-int tqma6_bb_board_mmc_getcd(struct mmc *mmc);
-int tqma6_bb_board_mmc_init(struct bd_info *bis);
-
-int tqma6_bb_board_early_init_f(void);
-int tqma6_bb_board_init(void);
-int tqma6_bb_board_late_init(void);
-int tqma6_bb_checkboard(void);
-
-const char *tqma6_bb_get_boardname(void);
-/*
- * Device Tree Support
- */
-#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
-void tqma6_bb_ft_board_setup(void *blob, struct bd_info *bd);
-#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
-
-#endif
#include <mmc.h>
#include <netdev.h>
-#include "tqma6_bb.h"
+#include "../common/tq_bb.h"
#if defined(CONFIG_TQMA6Q)
return 0;
}
-int tqma6_bb_board_early_init_f(void)
-{
- return 0;
-}
-
-int tqma6_bb_board_init(void)
+int tq_bb_board_init(void)
{
mba6_setup_iomuxc_enet();
return 0;
}
-int tqma6_bb_board_late_init(void)
-{
- return 0;
-}
-
-const char *tqma6_bb_get_boardname(void)
+const char *tq_bb_get_boardname(void)
{
return "MBa6x";
}
-
-/*
- * Device Tree Support
- */
-#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
-void tqma6_bb_ft_board_setup(void *blob, struct bd_info *bd)
-{
- /* TBD */
-}
-#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
#include <mmc.h>
#include <netdev.h>
-#include "tqma6_bb.h"
+#include "../common/tq_bb.h"
/* UART */
#define UART4_PAD_CTRL ( \
.max_bus_width = 4,
};
-int tqma6_bb_board_mmc_getcd(struct mmc *mmc)
+int tq_bb_board_mmc_getcd(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
int ret = 0;
return ret;
}
-int tqma6_bb_board_mmc_getwp(struct mmc *mmc)
+int tq_bb_board_mmc_getwp(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
int ret = 0;
return ret;
}
-int tqma6_bb_board_mmc_init(struct bd_info *bis)
+int tq_bb_board_mmc_init(struct bd_info *bis)
{
int ret;
gpio_direction_output(GPIO_UART3_PWRON, 0);
}
-int tqma6_bb_board_early_init_f(void)
+int tq_bb_board_early_init_f(void)
{
setup_iomuxc_uart4();
return 0;
}
-int tqma6_bb_board_init(void)
+int tq_bb_board_init(void)
{
setup_iomuxc_enet();
return 0;
}
-int tqma6_bb_board_late_init(void)
-{
- return 0;
-}
-
-const char *tqma6_bb_get_boardname(void)
+const char *tq_bb_get_boardname(void)
{
return "WRU-IV";
}
return 0;
}
-
-/*
- * Device Tree Support
- */
-#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
-void tqma6_bb_ft_board_setup(void *blob, struct bd_info *bd)
-{
- /* TBD */
-}
-#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */