Commit Graph

733 Commits (17f848538cb9d219533e485642514d4085766604)

Author SHA1 Message Date
Jonas Gorski dba8a58b46 brcm63xx: hack around jffs2 corruption with SMP
mempy_fromio seems to be randomly failing when the destination is
unaligned; work around it by forcing the name to be aligned in memory.

Should fix jffs2 and SMP for now, but needs to be some additional
looking into as it does not fix the source.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40396
10 years ago
Jonas Gorski 663083d930 brcm63xx: sync mips counters during bringup of cpus
Fixes gettimeofday returning different values depending on which cpu
it is called.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40387
10 years ago
Jonas Gorski b519908e84 brcm63xx: update development kernel to linux 3.14
Now that 3.13 will be EOL soon, switch to 3.14.

Known issues:
 * 74x164 is not available because upstream dropped non-DT support
 * jffs2 breaks with SMP

Unknown issues:
 * probably plenty

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 40380
10 years ago
Gabor Juhos 627baa28d3 kernel: update 3.10 to 3.10.34
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40291
10 years ago
Jonas Gorski 0d120f42da brcm63xx: add preliminary support for 3.13
Add support for 3.13 as a development kernel. Mostly untested, only net
booted. If flashed may brick your router or kill your cat.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39746
11 years ago
Gabor Juhos b5fdd769f0 brcm63xx: update LINUX_VERSION to 3.10.32
Missed from the previous comit.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39708
11 years ago
Gabor Juhos f677b1bc7e kernel: update 3.10 to 3.10.32
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39707
11 years ago
Jonas Gorski b8ed6534ca brcm63xx: fix RG100A/DB120 usb port number
Set usbh ports to 2 to fix #15007.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39681
11 years ago
Jonas Gorski 4a2f87bce0 brcm63xx: fix number of usb ports for HW556 variants
Don't only fix up the fallback board, but also all three variants.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39680
11 years ago
Jonas Gorski ece12908a8 brcm63xx: add initial support for BCM963268BU_P300 reference board
Only netboot tested, so no images or now.
GbE ports are only working in FE mode, and leds do not work.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39679
11 years ago
Jonas Gorski f6c4b1eb29 brcm63xx: add VW6339GU support
Completely untested except for booting from network; wan port
only works in 10/HD, lan1 only in 100/FD.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39678
11 years ago
Jonas Gorski 60edb75e47 brcm63xx: fix number of switch ports for BCM63168/63268
BCM63168 has 6 ports (3 FE PHY, 1 GE PHY, two RGMII) and BCM63268
has two additional RGMII ports, making it 8.
Fix this by checking the chip variant and applying an appropriate
limit.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39677
11 years ago
Jonas Gorski edbfb81b56 brcm63xx: F@ST2504n board support (image, base-files)
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4730/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39676
11 years ago
Jonas Gorski 84dc1f1209 brcm63xx: F@ST2504n board support
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4729/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39675
11 years ago
Jonas Gorski ce655b93cd brcm63xx: add support for Asmax AR 1004g router
Support for Asmax AR 1004g router

Signed-off-by: Adrian Feliks <mexit@o2.pl>
Patchwork: http://patchwork.openwrt.org/patch/4464/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39674
11 years ago
Jonas Gorski fa26229e8b brcm63xx: Add profile and build image for Sagemcom F@ST2704V2 ADSL router
This adds profile and build image for Sagemcom F@st2704, using b43
driver.
For WiFi to work properly BCMA fallback SPROM support patch must
be applied (http://git.io/z1Ki8A).

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4212/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39673
11 years ago
Jonas Gorski fe37b14fca brcm63xx: Add userspace support for Sagemcom F@ST2704V2 ADSL router
This adds userspace support for Sagemcom F@st 2704 router.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4215/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39672
11 years ago
Jonas Gorski f92b2a956b brcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL router
This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
router.
It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
modem equipped with 64 MiB RAM and 8 MiB flash.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4266/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39671
11 years ago
Florian Fainelli 87f8092629 brcm63xx: fix warning in Redboot code
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39404
11 years ago
Gabor Juhos a2543d72d8 kernel: update 3.10 to 3.10.28
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39399
11 years ago
Florian Fainelli a747611fe3 brcm63xx: enable support for BCM63268
Support for the BCM63268 is usable, enable it by default.

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

SVN-Revision: 39364
11 years ago
Florian Fainelli eaa3e9ec6e brcm63xx: add support for BCM963269BHR board
Add kernel support for the BCM963269BHR board, USB and Ethernet switch,
LEDs and buttons are working.

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

SVN-Revision: 39363
11 years ago
Florian Fainelli fed4b02a68 brcm63xx: improve BCM63268 support
Allow using the HSSPI controller since it works just fine, as well as
the integrated switch core, since that one works too.

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

SVN-Revision: 39362
11 years ago
Jonas Gorski d513c07d2f brcm63xx: fix typo breaking build in r39325
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39326
11 years ago
Jonas Gorski 66ec204935 brcm63xx: set usb host port number for some devices
Update a few devices with their actual port numbers, especially those
with two ports.

Should allow properly using the second port on the Neufboxen and HW553
and HW556.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39325
11 years ago
Jonas Gorski ef81c6a268 brcm63xx: allow setting the number of usb host ports for boards
Allow setting the number of available usb host ports for boards with
additional sanity checks to allow using the second port on devices
where it is available.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39324
11 years ago
Jonas Gorski 6b3e1c8de6 brcm63xx: add USB support for BCM63268
Add and enable USB support for the BCM63268 family of SoCs.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39323
11 years ago
Jonas Gorski 33f426c795 brcm63xx: BCM6318 needs to select _HAS_OHCI/EHCI too
USB will fail to work if compiling with BCM6318 only if BCM63XX_HAS_EHCI
and BCM63XX_HAS_OHCI are not selected.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39322
11 years ago
Jonas Gorski 52b7f55cb3 brcm63xx: prevent usb clock state inconsistency on BCM6318
Return the same clock for usbh and usbd on BCM6318 to prevent the clock
getting disabled despite being supposed to be enabled, e.g. by the
following sequence:

	clk_enable(usbh); <- usbh->usage = 1, enabled
	clk_enable(usbd); <- usbd->usage = 1, enabled (no effect)
	clk_disable(usbd); <- usbd->usage = 0,  -> disabled!

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39321
11 years ago
Florian Fainelli 0650ce9ec4 brcm63xx: do not add twice the same field to board
Changeset r39302 updated a board section and added twice .has_ehci0,
this is not necessary, so fix it.

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

SVN-Revision: 39304
11 years ago
Florian Fainelli bf4f1feb7a brcm63xx: add USB support to BCM6318
BCM6318 has a special initialization sequence which involves touching
PLL control registers in the USBH_PRIV register space, as well as
toggling a bit the Simulation control register.

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

SVN-Revision: 39302
11 years ago
Florian Fainelli 3114410a13 brcm63xx: fix BCM96318MVWG LEDs
Power LED is not active low, and ppp-fail is red, not green.

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

SVN-Revision: 39294
11 years ago
Florian Fainelli 1f7edcf637 brcm63xx: remove config-3.11
This was not supposed to be committed, remove it.

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

SVN-Revision: 39293
11 years ago
Florian Fainelli bd540554a4 brcm63xx: 96368MVWG supports USB gadget, enable it
Enable the use of the USB gadget device at the board level so we can use
bcm63xx_udc on this board.

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

SVN-Revision: 39292
11 years ago
Florian Fainelli 092a7105ec brcm63xx: replace gadget driver build fix with upstream submission
Also fixing a build warning due to a misplaced parenthesis in the
previous submission.

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

SVN-Revision: 39291
11 years ago
Florian Fainelli 01f465df05 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>

SVN-Revision: 39286
11 years ago
Florian Fainelli 6f48336dc4 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>

SVN-Revision: 39284
11 years ago
Florian Fainelli 93ab8adef2 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>

SVN-Revision: 39283
11 years ago
Florian Fainelli 0ecdc42f60 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>

SVN-Revision: 39282
11 years ago
Florian Fainelli 7951993efd brcm63xx: package the USB gadget module (bcm63xx_udc)
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39281
11 years ago
Florian Fainelli 8bdc92f5d6 brcm63xx: target supports USB gadget devices
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39280
11 years ago
Florian Fainelli fb8ae05760 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>

SVN-Revision: 39279
11 years ago
Florian Fainelli a6425f8437 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>

SVN-Revision: 39278
11 years ago
Florian Fainelli 49ae212eee 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>

SVN-Revision: 39277
11 years ago
Jonas Gorski e83c1ec61c brcm63xx: fix ohci frame number offset
BCM63XX's ohci controller does not need the frame number shift, but that
was guarded with a PPC symbol. Fix this by making the no-fix generally
available.

This is a regression from the previous conversion to ohci platform driver.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39274
11 years ago
Jonas Gorski 1315058bda brcm63xx: fix spi flash setup on (at least) some reference boards
CFE seems to leave the SPI flash mapping in an invalid state after
loading the kernel on some reference boards, so fix it up on boot.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39273
11 years ago
Jonas Gorski 4aa92df0d8 brcm63xx: add initial support for BCM6318
Add inital support for BCM6318, but keep it disabled for now until
most things are supported.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39272
11 years ago
Jonas Gorski 3bdcf040aa brcm63xx: add initial support for BCM63268
Add initial support for the BCM63268 family of SoCs, but keep it
disabled for now as most things don't work yet.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39271
11 years ago
Jonas Gorski ab8897045c brcm63xx: fix the pcie window size
The low PCIe window on BCM6328 and BCM6362 is actually only 1 MiB big,
not 16 MiB.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39270
11 years ago
Jonas Gorski 76164e1a36 brcm63xx: add support for chip variants
Some SoCs have variants which are mostly the same, but use a different
chip id (or not). Add code for detecting them and handling them as
their standard counterparts.

This adds support for e.g. BCM6369.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39269
11 years ago