Commit graph

712 commits

Author SHA1 Message Date
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
2014-01-21 18:50:11 +00:00
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
2014-01-21 18:49:50 +00:00
Jonas Gorski
d513c07d2f brcm63xx: fix typo breaking build in r39325
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39326
2014-01-19 14:00:18 +00:00
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
2014-01-19 13:46:25 +00:00
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
2014-01-19 13:46:14 +00:00
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
2014-01-19 13:46:05 +00:00
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
2014-01-19 13:45:55 +00:00
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
2014-01-19 13:45:42 +00:00
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
2014-01-16 00:45:19 +00:00
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
2014-01-15 19:05:57 +00:00
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
2014-01-15 00:06:08 +00:00
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
2014-01-15 00:05:51 +00:00
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
2014-01-14 23:56:46 +00:00
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
2014-01-14 23:56:28 +00:00
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
2014-01-14 05:24:19 +00:00
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
2014-01-14 05:23:58 +00:00
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
2014-01-14 05:23:49 +00:00
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
2014-01-14 05:23:39 +00:00
Florian Fainelli
7951993efd brcm63xx: package the USB gadget module (bcm63xx_udc)
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39281
2014-01-14 05:23:20 +00:00
Florian Fainelli
8bdc92f5d6 brcm63xx: target supports USB gadget devices
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39280
2014-01-14 05:23:08 +00:00
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
2014-01-14 05:22:59 +00:00
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
2014-01-14 05:22:45 +00:00
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
2014-01-14 05:22:31 +00:00
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
2014-01-13 12:21:08 +00:00
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
2014-01-13 12:14:12 +00:00
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
2014-01-13 12:14:02 +00:00
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
2014-01-13 12:13:51 +00:00
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
2014-01-13 12:13:39 +00:00
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
2014-01-13 12:13:26 +00:00
Jonas Gorski
db36359f48 brcm63xx: remove non runtime detect and refresh affinity patches
Remove the non runtime detect code since its effectiveness is dubious
and almost never used.
Also update affinity patches to work on top of it.

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

SVN-Revision: 39268
2014-01-13 12:13:15 +00:00
Jonas Gorski
d8ac24b325 brcm63xx: update bmips patches with upstream submission
Update bmips cleanup patches with upstream submission and backport a few
bmips fixes.

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

SVN-Revision: 39267
2014-01-13 12:13:05 +00:00
Jonas Gorski
d9a20b6f46 brcm63xx: spi flash on legacy spi controller needs the workaround
Fixes generic SPI flash accesses on BCM6358/BCM6368. BCM6338 still needs
additional fixes for M25P80, so it remains broken for now.

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

SVN-Revision: 39266
2014-01-13 12:12:50 +00:00
Jonas Gorski
af7e570c3b brcm63xx: fix legacy spi tranfers >= 256 bytes
Fixes e.g. SPI flash access on BCM6358/BCM6368. Transfers < 256 bytes
are not affected.

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

SVN-Revision: 39265
2014-01-13 12:11:58 +00:00
Jonas Gorski
f08f0cafc2 brcm63xx: update HSSPI driver with upstream submission
Update the HSSPI driver with the upstream submitted one that has a
workaround for the auto cs down issue.

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

SVN-Revision: 39264
2014-01-13 12:11:45 +00:00
Gabor Juhos
0e2586a774 kernel: update 3.10 to 3.10.26
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39220
2014-01-11 16:06:37 +00:00
Hauke Mehrtens
952db22551 kernel: update kernel 3.10 to 3.10.24
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 39059
2013-12-15 19:16:30 +00:00
Gabor Juhos
f1ef0b92be kernel: update 3.10 to 3.10.21
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38972
2013-12-01 09:59:53 +00:00
Gabor Juhos
35656042f1 kernel: update 3.10 to 3.10.18
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38652
2013-11-05 08:25:45 +00:00
Gabor Juhos
b6b06000eb kernel: update 3.10 to 3.10.17
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38506
2013-10-23 12:51:05 +00:00
Hauke Mehrtens
81e2f00367 kernel: update kernel to 3.10.15
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38384
2013-10-13 19:28:29 +00:00
Gabor Juhos
9c8a5ef115 kernel: update 3.10 to 3.10.13
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38228
2013-09-27 07:19:21 +00:00
Hauke Mehrtens
c75a970337 kernel: b53: add Register Access Bridge Registers (SRAB) interface
The SRAB interface is used on BCM4707 and BCM5301X SoCs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38198
2013-09-25 21:44:28 +00:00
Gabor Juhos
554772a665 kernel: update 3.10 to 3.10.12
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38000
2013-09-15 16:00:41 +00:00
Jonas Gorski
f8cd14921d brcm63xx: drop linux 3.9 support
It is EOL since quite a while, so no need to keep it around.

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

SVN-Revision: 37911
2013-09-06 19:01:17 +00:00
Jonas Gorski
dc028776f0 brcm63xx: switch to linux 3.10
3.10 is stable enough, and 3.9 is EOL since a while.

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

SVN-Revision: 37910
2013-09-06 19:01:13 +00:00
Gabor Juhos
043edd8074 kernel: update 3.10 to 3.10.9
Also refresh 3.10 patches.

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

SVN-Revision: 37832
2013-08-23 17:31:04 +00:00
Gabor Juhos
6a5b4ec7dc kernel: update 3.9 to 3.9.11
Also refresh 3.9 patches.

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

SVN-Revision: 37501
2013-07-22 15:30:56 +00:00
Jonas Gorski
7ef37c8e3e brcm63xx: add linux 3.10 support
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 37481
2013-07-20 11:30:26 +00:00
Felix Fietkau
9a9d97b749 bcm63xx: update ralink wlan firmware hotplug script for new eeprom size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37337
2013-07-15 11:07:59 +00:00
Hauke Mehrtens
e574f75d16 kernel: update to kernel 3.9.10 and refresh patches
SVN-Revision: 37274
2013-07-13 22:43:10 +00:00