Commit ad6054f1fe128f797b6eb2964afca6674b584785

Authored by Koen Kooi
Committed by Tom Rini
1 parent a30691a538

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>

Showing 4 changed files with 20 additions and 3 deletions Side-by-side Diff

board/ti/am335x/board.c
... ... @@ -725,6 +725,8 @@
725 725  
726 726 if (board_is_bbg1())
727 727 name = "BBG1";
  728 + if (board_is_bben())
  729 + name = "BBEN";
728 730 set_board_info_env(name);
729 731  
730 732 /*
... ... @@ -870,7 +872,7 @@
870 872 (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
871 873  
872 874 #ifdef CONFIG_DRIVER_TI_CPSW
873   - if (board_is_bone() || board_is_bone_lt() ||
  875 + if (board_is_bone() || board_is_bone_lt() || board_is_bben() ||
874 876 board_is_idk()) {
875 877 writel(MII_MODE_ENABLE, &cdev->miisel);
876 878 cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
... ... @@ -906,7 +908,7 @@
906 908 #define AR8051_DEBUG_RGMII_CLK_DLY_REG 0x5
907 909 #define AR8051_RGMII_TX_CLK_DLY 0x100
908 910  
909   - if (board_is_evm_sk() || board_is_gp_evm()) {
  911 + if (board_is_evm_sk() || board_is_gp_evm() || board_is_bben()) {
910 912 const char *devname;
911 913 devname = miiphy_get_current_dev();
912 914  
board/ti/am335x/board.h
... ... @@ -43,9 +43,15 @@
43 43 return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4);
44 44 }
45 45  
  46 +static inline int board_is_bben(void)
  47 +{
  48 + return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "SE", 2);
  49 +}
  50 +
46 51 static inline int board_is_beaglebonex(void)
47 52 {
48   - return board_is_pb() || board_is_bone() || board_is_bone_lt() || board_is_bbg1();
  53 + return board_is_pb() || board_is_bone() || board_is_bone_lt() ||
  54 + board_is_bbg1() || board_is_bben();
49 55 }
50 56  
51 57 static inline int board_is_evm_sk(void)
board/ti/am335x/mux.c
... ... @@ -380,6 +380,13 @@
380 380 configure_module_pin_mux(rgmii1_pin_mux);
381 381 configure_module_pin_mux(mmc0_pin_mux_sk_evm);
382 382 } else if (board_is_bone_lt()) {
  383 + if (board_is_bben()) {
  384 + /* SanCloud Beaglebone LT Enhanced pinmux */
  385 + configure_module_pin_mux(rgmii1_pin_mux);
  386 + } else {
  387 + /* Beaglebone LT pinmux */
  388 + configure_module_pin_mux(mii1_pin_mux);
  389 + }
383 390 /* Beaglebone LT pinmux */
384 391 configure_module_pin_mux(mii1_pin_mux);
385 392 configure_module_pin_mux(mmc0_pin_mux);
include/configs/am335x_evm.h
... ... @@ -153,6 +153,8 @@
153 153 "setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
154 154 "if test $board_name = BBBL; then " \
155 155 "setenv fdtfile am335x-boneblue.dtb; fi; " \
  156 + "if test $board_name = BBEN; then " \
  157 + "setenv fdtfile am335x-sancloud-bbe.dtb; fi; " \
156 158 "if test $board_name = A33515BB; then " \
157 159 "setenv fdtfile am335x-evm.dtb; fi; " \
158 160 "if test $board_name = A335X_SK; then " \