Add Beaglebone Enhanced support

The "Beaglebone Enhanced" by Sancloud is based on the Beaglebone Black,
but with the following differences:

 * Gigabit capable PHY
 * Extra USB hub, optional i2c control
 * lps3331ap barometer connected over i2c
 * MPU6050 6 axis MEMS accelerometer/gyro connected over i2c
 * 1GiB DDR3 RAM
 * RTL8723 Wifi/Bluetooth connected over USB

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Koen Kooi 2018-07-18 10:13:59 +02:00 committed by Tom Rini
parent a30691a538
commit ad6054f1fe
4 changed files with 20 additions and 3 deletions

View File

@ -725,6 +725,8 @@ int board_late_init(void)
if (board_is_bbg1()) if (board_is_bbg1())
name = "BBG1"; name = "BBG1";
if (board_is_bben())
name = "BBEN";
set_board_info_env(name); set_board_info_env(name);
/* /*
@ -870,7 +872,7 @@ int board_eth_init(bd_t *bis)
(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)) (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
#ifdef CONFIG_DRIVER_TI_CPSW #ifdef CONFIG_DRIVER_TI_CPSW
if (board_is_bone() || board_is_bone_lt() || if (board_is_bone() || board_is_bone_lt() || board_is_bben() ||
board_is_idk()) { board_is_idk()) {
writel(MII_MODE_ENABLE, &cdev->miisel); writel(MII_MODE_ENABLE, &cdev->miisel);
cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if = cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
@ -906,7 +908,7 @@ int board_eth_init(bd_t *bis)
#define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5 #define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5
#define AR8051_RGMII_TX_CLK_DLY 0x100 #define AR8051_RGMII_TX_CLK_DLY 0x100
if (board_is_evm_sk() || board_is_gp_evm()) { if (board_is_evm_sk() || board_is_gp_evm() || board_is_bben()) {
const char *devname; const char *devname;
devname = miiphy_get_current_dev(); devname = miiphy_get_current_dev();

View File

@ -43,9 +43,15 @@ static inline int board_is_bbg1(void)
return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4); return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4);
} }
static inline int board_is_bben(void)
{
return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "SE", 2);
}
static inline int board_is_beaglebonex(void) static inline int board_is_beaglebonex(void)
{ {
return board_is_pb() || board_is_bone() || board_is_bone_lt() || board_is_bbg1(); return board_is_pb() || board_is_bone() || board_is_bone_lt() ||
board_is_bbg1() || board_is_bben();
} }
static inline int board_is_evm_sk(void) static inline int board_is_evm_sk(void)

View File

@ -380,6 +380,13 @@ void enable_board_pin_mux(void)
configure_module_pin_mux(rgmii1_pin_mux); configure_module_pin_mux(rgmii1_pin_mux);
configure_module_pin_mux(mmc0_pin_mux_sk_evm); configure_module_pin_mux(mmc0_pin_mux_sk_evm);
} else if (board_is_bone_lt()) { } else if (board_is_bone_lt()) {
if (board_is_bben()) {
/* SanCloud Beaglebone LT Enhanced pinmux */
configure_module_pin_mux(rgmii1_pin_mux);
} else {
/* Beaglebone LT pinmux */
configure_module_pin_mux(mii1_pin_mux);
}
/* Beaglebone LT pinmux */ /* Beaglebone LT pinmux */
configure_module_pin_mux(mii1_pin_mux); configure_module_pin_mux(mii1_pin_mux);
configure_module_pin_mux(mmc0_pin_mux); configure_module_pin_mux(mmc0_pin_mux);

View File

@ -153,6 +153,8 @@
"setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \ "setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
"if test $board_name = BBBL; then " \ "if test $board_name = BBBL; then " \
"setenv fdtfile am335x-boneblue.dtb; fi; " \ "setenv fdtfile am335x-boneblue.dtb; fi; " \
"if test $board_name = BBEN; then " \
"setenv fdtfile am335x-sancloud-bbe.dtb; fi; " \
"if test $board_name = A33515BB; then " \ "if test $board_name = A33515BB; then " \
"setenv fdtfile am335x-evm.dtb; fi; " \ "setenv fdtfile am335x-evm.dtb; fi; " \
"if test $board_name = A335X_SK; then " \ "if test $board_name = A335X_SK; then " \