Files
config
docs
include
package
scripts
target
imagebuilder
linux
adm5120
adm8668
ar7
ar71xx
arm64
at91
ath25
au1000
bcm53xx
brcm2708
brcm47xx
brcm63xx
base-files
dts
generic
image
patches-3.18
001-spi-spi-gpio-Add-dt-support-for-a-single-device-with.patch
030-MIPS-Always-use-IRQ-domains-for-CPU-IRQs.patch
031-MIPS-Rename-mips_cpu_intc_init-mips_cpu_irq_of_init.patch
032-MIPS-Provide-a-generic-plat_irq_dispatch.patch
100-MIPS-BCM63XX-add-USB-host-clock-enable-delay.patch
101-MIPS-BCM63XX-add-USB-device-clock-enable-delay-to-cl.patch
102-MIPS-BCM63XX-move-code-touching-the-USB-private-regi.patch
103-MIPS-BCM63XX-add-OHCI-EHCI-configuration-bits-to-com.patch
104-MIPS-BCM63XX-introduce-BCM63XX_OHCI-configuration-sy.patch
105-MIPS-BCM63XX-add-support-for-the-on-chip-OHCI-contro.patch
106-MIPS-BCM63XX-register-OHCI-controller-if-board-enabl.patch
107-MIPS-BCM63XX-introduce-BCM63XX_EHCI-configuration-sy.patch
108-MIPS-BCM63XX-add-support-for-the-on-chip-EHCI-contro.patch
109-MIPS-BCM63XX-register-EHCI-controller-if-board-enabl.patch
110-MIPS-BCM63XX-EHCI-controller-does-not-support-overcu.patch
201-SPI-Allow-specifying-the-parsers-for-SPI-flash.patch
202-MTD-DEVICES-m25p80-use-parsers-if-provided-in-flash-.patch
203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch
204-USB-OHCI-allow-other-arches-to-use-the-BE-frame-numb.patch
206-USB-EHCI-allow-limiting-ports-for-ehci-platform.patch
207-MIPS-BCM63XX-move-device-registration-code-into-its-.patch
208-MIPS-BCM63XX-pass-a-mac-addresss-allocator-to-board-.patch
300-reset_buttons.patch
301-led_count.patch
302-extended-platform-devices.patch
303-spi-board-info.patch
309-cfe_version_mod.patch
310-cfe_simplify_detection.patch
311-bcm63xxpart_use_cfedetection.patch
320-irqchip-add-support-for-bcm6345-style-periphery-irq-.patch
321-irqchip-add-support-for-bcm6345-style-external-inter.patch
322-MIPS-BCM63XX-switch-to-IRQ_DOMAIN.patch
323-MIPS-BCM63XX-wire-up-BCM6358-s-external-interrupts-4.patch
330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch
331-MIPS-BCM63XX-define-variant-id-field.patch
332-MIPS-BCM63XX-detect-BCM6328-variants.patch
333-MIPS-BCM63XX-detect-BCM6362-variants.patch
334-MIPS-BCM63XX-detect-BCM6368-variants.patch
335-MIPS-BCM63XX-fix-PCIe-memory-window-size.patch
336-MIPS-BCM63XX-dynamically-set-the-pcie-memory-windows.patch
337-MIPS-BCM63XX-widen-cpuid-field.patch
338-MIPS-BCM63XX-increase-number-of-IRQs.patch
339-MIPS-BCM63XX-add-support-for-BCM63268.patch
340-MIPS-BCM63XX-add-pcie-support-for-BCM63268.patch
341-MIPS-BCM63XX-add-support-for-BCM6318.patch
342-MIPS-BCM63XX-split-PCIe-reset-signals.patch
343-MIPS-BCM63XX-add-PCIe-support-for-BCM6318.patch
344-MIPS-BCM63XX-detect-flash-type-early-and-store-the-r.patch
345-MIPS-BCM63XX-fixup-mapped-SPI-flash-access-on-boot.patch
346-MIPS-BCM63XX-USB-ENETSW-6318-clocks.patch
347-MIPS-BCM6318-USB-support.patch
348-MIPS-BCM63XX-fix-BCM63268-USB-clock.patch
349-MIPS-BCM63XX-add-BCM63268-USB-support.patch
350-MIPS-BCM63XX-support-settings-num-usbh-ports.patch
351-set-board-usbh-ports.patch
354-MIPS-BCM63XX-allow-building-support-for-more-than-on.patch
355-MIPS-BCM63XX-allow-board-implementations-to-force-fl.patch
356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch
358-MIPS-BCM63XX-make-fallback-sprom-optional.patch
359-MIPS-BCM63XX-allow-different-types-of-sprom.patch
360-MIPS-BCM63XX-add-support-for-raw-sproms.patch
361-MIPS-BCM63XX-add-raw-fallback-sproms-for-most-common.patch
362-MIPS-BCM63XX-also-register-a-fallback-sprom-for-bcma.patch
363-MIPS-BCM63XX-add-BCMA-based-sprom-templates.patch
364-MIPS-BCM63XX-allow-board-files-to-provide-sprom-fixu.patch
365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch
366-MIPS-add-support-for-vmlinux.bin-appended-DTB.patch
367-MIPS-BCM63XX-add-support-for-loading-DTB.patch
368-MIPS-BCM63XX-add-support-for-matching-the-board_info.patch
369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
371_add_of_node_available_by_alias.patch
372_dont_register_pflash_when_available_in_dtb.patch
373-MIPS-BCM63XX-register-interrupt-controllers-through-.patch
374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
375-MIPS-BCM63XX-switch-to-new-gpio-driver.patch
376-net-bcm63xx_enet-use-named-gpio-for-ephy-reset-gpio.patch
377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch
378-MIPS-BCM63XX-do-not-register-gpio-controller-if-pres.patch
379-MIPS-BCM63XX-provide-a-gpio-lookup-for-the-pcmcia-re.patch
380-pcmcia-bcm63xx_pmcia-use-the-new-named-gpio.patch
400-bcm963xx_flashmap.patch
401-bcm963xx_real_rootfs_length.patch
402_bcm63xx_enet_vlan_incoming_fixed.patch
403-6358-enet1-external-mii-clk.patch
404-NET-bcm63xx_enet-move-phy_-dis-connect-into-probe-re.patch
408-bcm63xx_enet-enable-rgmii-clock-on-external-ports.patch
411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch
412-MTD-physmap-allow-passing-pp_data.patch
413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
414-MTD-m25p80-allow-passing-pp_data.patch
415-MIPS-BCM63XX-export-the-attached-flash-type.patch
416-BCM63XX-add-a-fixup-for-ath9k-devices.patch
417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
420-BCM63XX-add-endian-check-for-ath9k.patch
421-BCM63XX-add-led-pin-for-ath9k.patch
422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
423-bcm63xx_enet_add_b53_support.patch
424-bcm63xx_enet_no_request_mem_region.patch
425-bcm63xxpart_parse_paritions_from_dt.patch
426-bcm63xx_enet-fix-napi-poll-return-value.patch
427-boards_probe_switch.patch
499-allow_better_context_for_board_patches.patch
500-board-D4PW.patch
501-board-NB4.patch
502-board-96338W2_E7T.patch
503-board-CPVA642.patch
504-board_dsl_274xb_rev_c.patch
505-board_spw500v.patch
506-board_gw6200_gw6000.patch
507-board-MAGIC.patch
508-board_hw553.patch
509-board_rta1320_16m.patch
510-board_spw303v.patch
511-board_V2500V.patch
512-board_BTV2110.patch
513-MIPS-BCM63XX-add-inventel-Livebox-support.patch
514-board_ct536_ct5621.patch
515-board_DWV-S0_fixes.patch
516-board_96348A-122.patch
517-RTA1205W_16_uart_fixes.patch
519_board_CPVA502plus.patch
520-bcm63xx-add-support-for-96368MVWG-board.patch
521-bcm63xx-add-support-for-96368MVNgr-board.patch
522-MIPS-BCM63XX-add-96328avng-reference-board.patch
523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
524-board_dsl_274xb_rev_f.patch
525-board_96348w3.patch
526-board_CT6373-1.patch
527-board_dva-g3810bn-tl-1.patch
528-board_nb6.patch
529-board_fast2604.patch
530-board_A4001N1.patch
531-board_AR-5387un.patch
532-board_AR-5381u.patch
533-board_rta770bw.patch
534-board_hw556.patch
535-board_rta770w.patch
536-board_fast2704.patch
537-board_fast2504n.patch
550-MIPS-BCM63XX-remove-leds-and-buttons.patch
555-board_96318ref.patch
556-board_96318ref_p300.patch
557-board_bcm963269bhr.patch
558-board_AR1004G.patch
559-board_vw6339gu.patch
560-board_963268gu_p300.patch
561-board_WAP-5813n.patch
562-board_VR-3025u.patch
563-board_VR-3025un.patch
564-board_P870HW-51a_v2.patch
565-board_hw520.patch
566-board_A4001N.patch
567-board_dsl-2751b_e1.patch
568-board_DGND3700v1_3800B.patch
569-board_homehub2a.patch
570-board_HG655b.patch
800-wl_exports.patch
801-ssb_export_fallback_sprom.patch
802-rtl8367r_fix_RGMII_support.patch
803-jffs2-work-around-unaligned-accesses-failing-on-bcm6.patch
804-bcm63xx_enet_63268_rgmii_ports.patch
profiles
smp
Makefile
base-files.mk
config-3.18
modules.mk
cns3xxx
gemini
generic
imx6
ixp4xx
kirkwood
lantiq
malta
mcs814x
mpc85xx
mvebu
mxs
netlogic
octeon
omap
oxnas
ppc44x
ramips
rb532
realview
sunxi
uml
x86
xburst
Makefile
sdk
toolchain
Config.in
Makefile
toolchain
tools
.gitattributes
.gitignore
BSDmakefile
Config.in
LICENSE
Makefile
README
feeds.conf.default
rules.mk
Jonas Gorski a179ed7841 CC: brcm63xx: unbreak board_probe_switch again
Also move it to an earlier place so new boards added are less likely
to confuse quilt.

Fixes .

Backport of r46148.

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

SVN-Revision: 46153
2015-07-01 00:32:01 +00:00

113 lines
2.6 KiB
Diff

--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -12,6 +12,8 @@
#include <linux/string.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
+#include <linux/platform_device.h>
+#include <linux/rtl8367.h>
#include <asm/addrspace.h>
#include <bcm63xx_board.h>
#include <bcm63xx_cpu.h>
@@ -31,6 +33,9 @@
#define BCM963XX_KEYS_POLL_INTERVAL 20
#define BCM963XX_KEYS_DEBOUNCE_INTERVAL (BCM963XX_KEYS_POLL_INTERVAL * 3)
+#define NB6_GPIO_RTL8367_SDA 18
+#define NB6_GPIO_RTL8367_SCK 20
+
/*
* known 3368 boards
*/
@@ -1318,6 +1323,69 @@ static struct board_info __initdata boar
};
#endif /* CONFIG_BCM63XX_CPU_6358 */
+#ifdef CONFIG_BCM63XX_CPU_6362
+static struct rtl8367_extif_config nb6_rtl8367_extif0_cfg = {
+ .mode = RTL8367_EXTIF_MODE_RGMII,
+ .txdelay = 1,
+ .rxdelay = 5,
+ .ability = {
+ .force_mode = 1,
+ .txpause = 1,
+ .rxpause = 1,
+ .link = 1,
+ .duplex = 1,
+ .speed = RTL8367_PORT_SPEED_1000,
+ },
+};
+
+static struct rtl8367_platform_data nb6_rtl8367_data = {
+ .gpio_sda = NB6_GPIO_RTL8367_SDA,
+ .gpio_sck = NB6_GPIO_RTL8367_SCK,
+ .extif0_cfg = &nb6_rtl8367_extif0_cfg,
+};
+
+static struct platform_device nb6_rtl8367_device = {
+ .name = RTL8367_DRIVER_NAME,
+ .id = -1,
+ .dev = {
+ .platform_data = &nb6_rtl8367_data,
+ }
+};
+
+static struct platform_device * __initdata nb6_devices[] = {
+ &nb6_rtl8367_device,
+};
+
+static struct board_info __initdata board_nb6 = {
+ .name = "NB6",
+ .expected_cpu_id = 0x6362,
+
+ .has_uart0 = 1,
+
+ .has_ohci0 = 1,
+ .has_ehci0 = 1,
+ .num_usbh_ports = 2,
+
+ .has_enetsw = 1,
+
+ .enetsw = {
+ .used_ports = {
+ [4] = {
+ .used = 1,
+ .phy_id = 0xff,
+ .bypass_link = 1,
+ .force_speed = 1000,
+ .force_duplex_full = 1,
+ .name = "RGMII",
+ },
+ },
+ },
+
+ .devs = nb6_devices,
+ .num_devs = ARRAY_SIZE(nb6_devices),
+};
+#endif /* CONFIG_BCM63XX_CPU_6362 */
+
/*
* known 6368 boards
*/
@@ -1469,6 +1537,10 @@ static const struct board_info __initcon
&board_DVAG3810BN,
#endif
+#ifdef CONFIG_BCM63XX_CPU_6362
+ &board_nb6,
+#endif
+
#ifdef CONFIG_BCM63XX_CPU_6368
&board_96368mvwg,
&board_96368mvngr,
@@ -1537,6 +1609,9 @@ static struct of_device_id const bcm963x
{ .compatible = "t-com,spw303v", .data = &board_spw303v, },
{ .compatible = "telsey,cpva642", .data = &board_CPVA642, },
#endif
+#ifdef CONFIG_BCM63XX_CPU_6362
+ { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
+#endif
#ifdef CONFIG_BCM63XX_CPU_6368
{ .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
{ .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },