brcm63xx: fix build failure on varid

varid might both unused and unitialized when building for e.g: bcm6318,
fix these two warnings turned into errors.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39277 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: allow HSSPI registration on 6318

A missing condition check in dev-hsspi.c prevented the controller from
being registered on 6318 where it is fully functional.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39278 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: fix USB gadget build failure after 6345 Ethernet

While adding support for BCM6345 Ethernet, some changes in the macros
ENETDMA{C,S} where introduced which now make the bcm63xx USB gadget
driver fail to build. Fix this.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39279 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: target supports USB gadget devices

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39280 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: package the USB gadget module (bcm63xx_udc)

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39281 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: improve BCM6318 support

Provide clock toggling for the USB host and slave controller as well as
for the Ethernet Switch. The bcm63xx_enetsw driver is changed not to use
request_mem_region() as the Roboswitch register overlaps with the
Roboswitch IUDMA channels, hence making the driver return -EBUSY. A
future fix might be to use variable size RSET_ENETSW sizes depending on
the chip we are targetting.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39282 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: add basic support for the BCM96318REF board

Add basic support for the BCM96318REF board which is comprised of:
- HS-SPI flash support
- Ethernet switch support
- USB slave device support

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39283 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: enable 6318 support

BCM6318 support is usable enough to be enabled by default, turn it on.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39284 3c298f89-4303-0410-b956-a3cf2f4a3e73
busybox: enable the devmem applet

The devmem applet allows poking at HW registers and as such is a
valuable tool to have to avoid recompiling kernels or resorting to
external HW adapters to modify HW behavior.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39285 3c298f89-4303-0410-b956-a3cf2f4a3e73
brcm63xx: add support for the BCM96318REF_P300 board

Very similar to the BCM96318REF board except for the name and the
SDRAM/DDR configuration which is totally transparent for us.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39286 3c298f89-4303-0410-b956-a3cf2f4a3e73