Adding OpenWrt support for Adtran Bluesocket BSAP-3040

here is u-boot environment

SPI boot...
Initializing....using SPD
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
Loading second stage boot loader .................................................................................................ddr self refresh double times(0xfe00_8114):0c300100ddr self refresh interval(0xfe00_8124):0c300100

U-Boot 2015.01.IAP8350.8351_v0.11_PVT_WithSN.MacTool_Trfc+SDKv1.9+geb3d4fc (Feb 07 2017 - 16:33:32)

CPU0:  T1023E, Version: 1.0, (0x85490010)
Core:  e5500, Version: 2.1, (0x80241021)
Single Source Clock Configuration
Clock Configuration:
       CPU0:1200 MHz, CPU1:1200 MHz,
       CCB:400  MHz,
       DDR:800  MHz (1600 MT/s data rate) (Asynchronous), IFC:100  MHz
       QE:200  MHz
       FMAN1: 600 MHz
       QMAN:  400 MHz
L1:    D-cache 32 KiB enabled
       I-cache 32 KiB enabled
Reset Configuration Word (RCW):
       00000000: 0810000c 00000000 00000000 00000000
       00000010: 4a800003 80000012 ec027000 21000000
       00000020: 00000000 00000000 00000000 0002c500
       00000030: 00000104 44020201 00000000 00000006
Board: BSAP3040/5, booting from SPI
SERDES Reference Clocks:
SD1_CLK1=156.25MHZ, SD1_CLK2=100.00MHZ
I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM Fixed DDR on board
Not enough bank(chip-select) for CS0+CS1 on controller 0, interleaving disabled!
1 GiB (DDR3, 32-bit, CL=11, ECC off)
L2:    256 KiB enabled
Corenet Platform Cache: 256 KiB enabled
Using SERDES1 Protocol: 149 (0x95)
MMC:   FSL_SDHC: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
EEPROM: Invalid ID (ff ff ff ff)
PCIe1: Root Complex, x1 gen2, regs @ 0xfe240000
  01:00.0     - 168c:0046 - Network controller
PCIe1: Bus 00 - 01
PCIe2: Root Complex, x1 gen2, regs @ 0xfe250000
  03:00.0     - 168c:0046 - Network controller
PCIe2: Bus 02 - 03
PCIe3: Root Complex, x1 gen1, regs @ 0xfe260000
  05:00.0     - 168c:0050 - Network controller
PCIe3: Bus 04 - 05
In:    serial
Out:   serial
Err:   serial
Net:   SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
Fman1: Uploading microcode version 108.4.2
FM1@DTSEC4, FM1@TGEC1 [PRIME]
Adtran bootloader version 1.0.6
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
BlueKey  stop autoboot:
BSAP3040-> printenv
autostart=no
baudrate=115200
boot_bank=B
bootargs=root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200
bootcmd=setenv bootargs root=/dev/mmcblk0p2 rootdelay=1 ro console=ttyS0,115200 maxcpus=1;sf probe 0;sf read $bootfileaddr 0xD40000 0xc00000;sf read $fdtaddr 0x01950000 0x010000;bootm $bootfileaddr - $fdtaddr
bootcnt=0
bootdelay=10
bootfile=uImage-t1023wlan.bin
bootfile1=boot/uImage.bin
bootfileaddr=0x1000000
consoledev=ttyS0
eth1addr=00:19:92:xxxxxx
eth2addr=00:19:92:xxxxxx
eth3addr=00:19:92:xxxxxx
ethact=FM1@TGEC1
ethaddr=00:19:92:xxxxxx
ethprime=FM1@TGEC1
fdtaddr=0xc00000
fdtfile=t1023wlan.dtb
fdtfile1=boot/uImage.dtb
fileaddr=c00000
filesize=74e9
fman_ucode=3f4e0928
fwversion_a=2.3-3040-1023.1-4.2.0-676381
fwversion_b=2.3-3040-1023.1-4.2.1-678053
hwconfig=fsl_ddr:ctlr_intlv=cacheline,bank_intlv=cs0_cs1
ipaddr=192.168.1.1
loadaddr=1000000
mac_addr=00:19:92:xxxxxx
mac_addr1=00:19:92:xxxxxx
mfg_state=132
netdev=eth0
netretry=no
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
ramdiskfile=fsl-image-core-t1023wlan.ext2.gz.u-boot
rootpath=/opt/nfsroot
serial_num=3040xxxxxxxxxx
serverip=192.168.1.10
ver_num=1.0.6

Environment size: 1424/65532 bytes
BSAP3040->