MIPS: BMIPS updates and BCM3384 platform support
Subsystems (6)
cover MIPS: BMIPS updates and BCM3384 platform support
This patch series adds support for the Linux BMIPS5000 application processor on BCM3384, a cable modem chipset. It incorporates the latest bugfixes and workarounds available for the BMIPS SMP and cache maintenance code.
The bootloader code[1] passes a device tree blob describing the memory setup, bootargs, peripheral configuration, clocks, etc. For this reason, very little needs to be hardcoded in the kernel.
Dependencies:
- bcm63xx_uart and of-serial changes, under review on the linux-serial list
- OHCI changes, pending inclusion on usb.git -next
[1] https://github.com/broadcom/aeolus
Jon Fraser (2):
MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code
MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPU
Kevin Cernekee (15):
MIPS: BMIPS: Fix ".previous without corresponding .section" warnings
MIPS: BMIPS: Align secondary boot sequence with latest firmware
releases
MIPS: BMIPS: Introduce helper function to change the reset vector
MIPS: BMIPS: Explicitly configure reset vectors prior to secondary
boot
MIPS: Allow MIPS_CPU_SCACHE to be used with different line sizes
MIPS: BMIPS: Select the appropriate L1_CACHE_SHIFT for 438x and 5000
CPUs
MIPS: BMIPS: Let each platform customize the CPU1 IRQ mask
MIPS: BMIPS: Add special cache handling in c-r4k.c
MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)
MIPS: Create a helper function for DT setup
Documentation: DT: Add entries for BCM3384 and its peripherals
Documentation: DT: Add "mti" vendor prefix
MIPS: bcm3384: Initial commit of bcm3384 platform support
MAINTAINERS: Add entry for BCM33xx cable chips
MAINTAINERS: Add entry for bcm63xx/bcm33xx UDC gadget driver
.../devicetree/bindings/mips/brcm/bcm3384-intc.txt | 37 ++++ .../devicetree/bindings/mips/brcm/bmips.txt | 8 + .../devicetree/bindings/mips/brcm/cm-dsl.txt | 11 ++ .../devicetree/bindings/mips/brcm/usb.txt | 11 ++ .../devicetree/bindings/vendor-prefixes.txt | 1 + MAINTAINERS | 14 ++ arch/mips/Kbuild.platforms | 1 + arch/mips/Kconfig | 30 +++- arch/mips/bcm3384/Makefile | 1 + arch/mips/bcm3384/Platform | 7 + arch/mips/bcm3384/dma.c | 81 +++++++++ arch/mips/bcm3384/irq.c | 193 +++++++++++++++++++++ arch/mips/bcm3384/setup.c | 97 +++++++++++ arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/bcm3384.dtsi | 109 ++++++++++++ arch/mips/boot/dts/bcm93384wvg.dts | 32 ++++ arch/mips/configs/bcm3384_defconfig | 78 +++++++++ arch/mips/include/asm/bmips.h | 1 + arch/mips/include/asm/cpu.h | 1 + arch/mips/include/asm/mach-bcm3384/dma-coherence.h | 48 +++++ arch/mips/include/asm/mach-bcm3384/war.h | 24 +++ arch/mips/include/asm/prom.h | 1 + arch/mips/kernel/bmips_vec.S | 3 - arch/mips/kernel/cpu-probe.c | 1 + arch/mips/kernel/prom.c | 18 ++ arch/mips/kernel/smp-bmips.c | 114 +++++++----- arch/mips/lantiq/prom.c | 11 +- arch/mips/mm/c-r4k.c | 43 +++++ arch/mips/ralink/of.c | 14 +- 29 files changed, 924 insertions(+), 67 deletions(-) create mode 100644 Documentation/devicetree/bindings/mips/brcm/bcm3384-intc.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/bmips.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/cm-dsl.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/usb.txt create mode 100644 arch/mips/bcm3384/Makefile create mode 100644 arch/mips/bcm3384/Platform create mode 100644 arch/mips/bcm3384/dma.c create mode 100644 arch/mips/bcm3384/irq.c create mode 100644 arch/mips/bcm3384/setup.c create mode 100644 arch/mips/boot/dts/bcm3384.dtsi create mode 100644 arch/mips/boot/dts/bcm93384wvg.dts create mode 100644 arch/mips/configs/bcm3384_defconfig create mode 100644 arch/mips/include/asm/mach-bcm3384/dma-coherence.h create mode 100644 arch/mips/include/asm/mach-bcm3384/war.h
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/17 MIPS: BMIPS: Fix ".previous without corresponding .section" warnings
In reply to a message not in the archiveCommit 078a55fc824c1 ("Delete __cpuinit/__CPUINIT usage from MIPS code") removed our __CPUINIT directives, so now the ".previous" directives are superfluous. Remove them.
--- arch/mips/kernel/bmips_vec.S | 3 --- 1 file changed, 3 deletions(-)
arch/mips/kernel/bmips_vec.S +0 -3
@@ -208,7 +208,6 @@ bmips_reset_nmi_vec_end: END(bmips_reset_nmi_vec) .set pop - .previous /*********************************************************************** * CPU1 warm restart vector (used for second and subsequent boots).
@@ -281,5 +280,3 @@ LEAF(bmips_enable_xks01) jr ra END(bmips_enable_xks01) - - .previous
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/17 MIPS: BMIPS: Align secondary boot sequence with latest firmware releases
In reply to a message not in the archiveOn some older BMIPS5200 (dual core / quad thread) platforms, the PROM code set up CPU2/CPU3 so they would be started through an NMI instead of through the ACTION register. But this was incompatible with some power management features that were later added, so the scheme was changed so that Linux is fully responsible for booting CPU2/CPU3.
--- arch/mips/kernel/smp-bmips.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
arch/mips/kernel/smp-bmips.c +1 -11
@@ -213,17 +213,7 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle)set_c0_brcm_cmt_ctrl (0x01 );break ;case CPU_BMIPS5000 : -if (cpu &0x01 ) -write_c0_brcm_action (ACTION_BOOT_THREAD (cpu)); -else { -/* -* core N thread 0 was already booted; just -* pulse the NMI line -*/ -bmips_write_zscm_reg (0x210 ,0xc0000000 ); -udelay (10 ); -bmips_write_zscm_reg (0x210 ,0x00 ); - } +write_c0_brcm_action (ACTION_BOOT_THREAD (cpu));break ; }cpumask_set_cpu (cpu, &bmips_booted_mask);
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/17 MIPS: BMIPS: Introduce helper function to change the reset vector
In reply to a message not in the archiveThis will need to be called from a few different places, and the logic is starting to get a bit hairy (with the need for IPIs, CPU bug workarounds, and hazards).
--- arch/mips/kernel/smp-bmips.c | 65 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 58 insertions(+), 7 deletions(-)
arch/mips/kernel/smp-bmips.c +58 -7
@@ -35,6 +35,7 @@#include <asm/bmips.h> #include <asm/traps.h> #include <asm/barrier.h> +#include <asm/cpu-features.h> static int __maybe_unused max_cpus =1 ;
@@ -43,6 +44,9 @@ int bmips_smp_enabled = 1;int bmips_cpu_offset;cpumask_t bmips_booted_mask; +#define RESET_FROM_KSEG0 0x80080800 +#define RESET_FROM_KSEG1 0xa0080800 +#ifdef CONFIG_SMP /* initial $sp, $gp - used by arch/mips/kernel/bmips_vec.S */
@@ -463,10 +467,61 @@ static inline void bmips_nmi_handler_setup(void) &bmips_smp_int_vec_end); } +struct reset_vec_info { +int cpu; +u32 val; +}; + +static void bmips_set_reset_vec_remote (void *vinfo) +{ +struct reset_vec_info *info = vinfo; +int shift = info->cpu &0x01 ?16 :0 ; +u32 mask = ~(0xffff << shift), val = info->val >>16 ; + +preempt_disable (); +if (smp_processor_id () >0 ) { +smp_call_function_single (0 , &bmips_set_reset_vec_remote, + info,1 ); + }else { +if (info->cpu &0x02 ) { +/* BMIPS5200 "should" use mask/shift, but it's buggy */ +bmips_write_zscm_reg (0xa0 , (val <<16 ) | val); +bmips_read_zscm_reg (0xa0 ); + }else { +write_c0_brcm_bootvec ((read_c0_brcm_bootvec () & mask) | + (val << shift)); + } + } +preempt_enable (); +} + +static void bmips_set_reset_vec (int cpu,u32 val) +{ +struct reset_vec_info info; + +if (current_cpu_type () ==CPU_BMIPS5000 ) { +/* this needs to run from CPU0 (which is always online) */ + info.cpu = cpu; + info.val = val; +bmips_set_reset_vec_remote (&info); + }else { +void __iomem *cbr =BMIPS_GET_CBR (); + +if (cpu ==0 ) +__raw_writel (val, cbr +BMIPS_RELO_VECTOR_CONTROL_0 ); +else { +if (current_cpu_type () !=CPU_BMIPS4380 ) +return ; +__raw_writel (val, cbr +BMIPS_RELO_VECTOR_CONTROL_1 ); + } + } +__sync (); +back_to_back_c0_hazard (); +} +void bmips_ebase_setup (void ) {unsigned long new_ebase = ebase; -void __iomem __maybe_unused *cbr;BUG_ON (ebase !=CKSEG0 );
@@ -492,9 +547,7 @@ void bmips_ebase_setup(void)* 0x8000_0400: normal vectors */ new_ebase =0x80000400 ; - cbr =BMIPS_GET_CBR (); -__raw_writel (0x80080800 , cbr +BMIPS_RELO_VECTOR_CONTROL_0 ); -__raw_writel (0xa0080800 , cbr +BMIPS_RELO_VECTOR_CONTROL_1 ); +bmips_set_reset_vec (0 ,RESET_FROM_KSEG0 );break ;case CPU_BMIPS5000 :/*
@@ -502,10 +555,8 @@ void bmips_ebase_setup(void)* 0x8000_1000: normal vectors */ new_ebase =0x80001000 ; -write_c0_brcm_bootvec (0xa0088008 ); +bmips_set_reset_vec (0 ,RESET_FROM_KSEG0 );write_c0_ebase (new_ebase); -if (max_cpus >2 ) -bmips_write_zscm_reg (0xa0 ,0xa008a008 );break ;default :return ;
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 4/17 MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code
In reply to a message not in the archiveFrom: Jon Fraser <jfraser-dY08KVG/lbpWk0Htik3J/[email protected]>
BMIPS3300 processors do not have the hardware to support SMP, but with a small tweak, the SMP ebase relocation code allows BMIPS3300-based platforms to reuse the S2/S3 power management code from BMIPS4380-based chips. Normally this is as simple as adding one line to prom_init():
board_ebase_setup = &bmips_ebase_setup;
--- arch/mips/kernel/smp-bmips.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/kernel/smp-bmips.c +1 -0
@@ -541,6 +541,7 @@ void bmips_ebase_setup(void) &bmips_smp_int_vec, 0x80);__sync ();return ; +case CPU_BMIPS3300 :case CPU_BMIPS4380 :/* * 0x8000_0000: reset/NMI (initially in kseg1)
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/17 MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPU
In reply to a message not in the archiveFrom: Jon Fraser <jfraser-dY08KVG/lbpWk0Htik3J/[email protected]>
CPU interrupts need to be disabled on a cpu being taken down. When a cpu is hot-plugged out of the system the following sequence occurs.
On the CPU where the hotplug sequence was initiated:
cpu_down
_cpu_down {
__cpu_notify(CPU_DOWN_PREPARE
__stop_machine(take_cpu_down
wait for cpu to run disable code.
__cpu_die
}On the CPU being disabled:
take_cpu_down
__cpu_disable {
mp_ops->cpu_disable
bmips_cpu_disable
clear_c0_status(IE_IRQ5) (added)
cpu_notify(CPU_DYING...
}Before the cpu_notifier is called with CPU_DYING, all interrupts on the dying cpu must be disabled. This guarantees that before tick_notify is called with the CPU_DYING event and sets the clock device pointer to NULL, there can not be any more clock interrupts.
When this wasn't done, an unfortunately-timed timer interrupt sometimes caused hangs immediately prior to system suspend:
Debug PM is not enabled. To enable partial suspend, rebuild kernel with CONFIG_PM_DEBUG
Pass 1 out of 1,PM: Syncing filesystems ... mode=none, tp1=done.
1, flags=5, cycle_tp=, sleep=
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: suspend of devices complete after 54.199 msecs
PM: late suspend of devices complete after 0.172 msecs
Disabling non-boot CPUs ...
SMP: CPU1 is offline
INFO: rcu_sched detected stalls on CPUs/tasks: { 3} (detected by 0, t=62537 jiffies)
Call Trace:
[<804baa78>] dump_stack+0x8/0x34
[<8008a2d8>] __rcu_pending+0x4b8/0x55c
[<8008adf4>] rcu_check_callbacks+0x78/0x180
[<80037830>] update_process_times+0x40/0x6c
[<80072fe4>] tick_sched_timer+0x74/0xe4
[<80050180>] __run_hrtimer.clone.30+0x64/0x140
[<80051150>] hrtimer_interrupt+0x19c/0x4bc
[<8000cdb8>] c0_compare_interrupt+0x50/0x88
[<80081b18>] handle_irq_event_percpu+0x5c/0x2f4
[<80086490>] handle_percpu_irq+0x8c/0xc0
[<800811b4>] generic_handle_irq+0x34/0x54
[<800067dc>] do_IRQ+0x18/0x2c
[<8000375c>] plat_irq_dispatch+0xd0/0x128
[<80004a04>] ret_from_irq+0x0/0x4
[<80004c40>] r4k_wait+0x20/0x40
[<80006b6c>] cpu_idle+0x98/0xf0
[<805d3988>] start_kernel+0x424/0x440--- arch/mips/kernel/smp-bmips.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/kernel/smp-bmips.c +1 -0
@@ -375,6 +375,7 @@ static int bmips_cpu_disable(void)set_cpu_online (cpu, false);cpu_clear (cpu, cpu_callin_map); +clear_c0_status (IE_IRQ5 );local_flush_tlb_all ();local_flush_icache_range (0 , ~0 );
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 6/17 MIPS: BMIPS: Explicitly configure reset vectors prior to secondary boot
In reply to a message not in the archiveThe secondary CPU's reset vector needs to be set to KSEG1 for a cold boot (release from reset), or KSEG0 for a warm restart. On a cold boot KSEG0 may be unavailable (BMIPS4380), and on a warm restart KSEG1 may be unavailable (XKS01 mode on 4380 or 5000).
--- arch/mips/kernel/smp-bmips.c | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-)
arch/mips/kernel/smp-bmips.c +8 -21
@@ -47,6 +47,8 @@ cpumask_t bmips_booted_mask;#define RESET_FROM_KSEG0 0x80080800#define RESET_FROM_KSEG1 0xa0080800 +static void bmips_set_reset_vec (int cpu,u32 val); +#ifdef CONFIG_SMP /* initial $sp, $gp - used by arch/mips/kernel/bmips_vec.S */
@@ -198,6 +200,9 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle)pr_info ("SMP: Booting CPU%d...\n" , cpu);if (cpumask_test_cpu (cpu, &bmips_booted_mask)) { +/* kseg1 might not exist if this CPU enabled XKS01 */ +bmips_set_reset_vec (cpu,RESET_FROM_KSEG0 ); +switch (current_cpu_type ()) {case CPU_BMIPS4350 :case CPU_BMIPS4380 :
@@ -207,8 +212,9 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle)bmips5000_send_ipi_single (cpu,0 );break ; } - } -else { + }else { +bmips_set_reset_vec (cpu,RESET_FROM_KSEG1 ); +switch (current_cpu_type ()) {case CPU_BMIPS4350 :case CPU_BMIPS4380 :
@@ -229,31 +235,12 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle)*/ static void bmips_init_secondary (void ) { -/* move NMI vector to kseg0, in case XKS01 is enabled */ - -void __iomem *cbr; -unsigned long old_vec; -unsigned long relo_vector; -int boot_cpu; -switch (current_cpu_type ()) {case CPU_BMIPS4350 :case CPU_BMIPS4380 : - cbr =BMIPS_GET_CBR (); - - boot_cpu = !!(read_c0_brcm_cmt_local () & (1 <<31 )); - relo_vector = boot_cpu ?BMIPS_RELO_VECTOR_CONTROL_0 : -BMIPS_RELO_VECTOR_CONTROL_1 ; - - old_vec =__raw_readl (cbr + relo_vector); -__raw_writel (old_vec & ~0x20000000 , cbr + relo_vector); -clear_c0_cause (smp_processor_id () ?C_SW1 :C_SW0 );break ;case CPU_BMIPS5000 : -write_c0_brcm_bootvec (read_c0_brcm_bootvec () & - (smp_processor_id () &0x01 ? ~0x20000000 : ~0x2000 )); -write_c0_brcm_action (ACTION_CLR_IPI (smp_processor_id (),0 ));break ; }
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 7/17 MIPS: Allow MIPS_CPU_SCACHE to be used with different line sizes
In reply to a message not in the archiveCONFIG_MIPS_CPU_SCACHE determines whether to build sc-mips.c. However, it is currently hardwired to use an L1_SHIFT of 6 (64 bytes). Move the L1_SHIFT selection into the CPU or SoC section so that other SoCs can select different values.
--- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/Kconfig +1 -1
@@ -326,6 +326,7 @@ config MIPS_MALTA select I8259 select MIPS_BONITO64 select MIPS_CPU_SCACHE + select MIPS_L1_CACHE_SHIFT_6 select PCI_GT64XXX_PCI0 select MIPS_MSC select SWAP_IO_SPACE
@@ -1908,7 +1909,6 @@ config IP22_CPU_SCACHE config MIPS_CPU_SCACHE bool select BOARD_SCACHE - select MIPS_L1_CACHE_SHIFT_6 config R5000_CPU_SCACHE bool
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 8/17 MIPS: BMIPS: Select the appropriate L1_CACHE_SHIFT for 438x and 5000 CPUs
In reply to a message not in the archiveBMIPS438x has a 64-byte D$ line size and BMIPS5000 has a 128-byte L2 line size. If L1_CACHE_SHIFT is undersized, DMA buffers will not be cacheline-aligned and terrible things will happen.
--- arch/mips/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/Kconfig +2 -0
@@ -1587,12 +1587,14 @@ config CPU_BMIPS4350 config CPU_BMIPS4380 bool + select MIPS_L1_CACHE_SHIFT_6 select SYS_SUPPORTS_SMP select SYS_SUPPORTS_HOTPLUG_CPU config CPU_BMIPS5000 bool select MIPS_CPU_SCACHE + select MIPS_L1_CACHE_SHIFT_7 select SYS_SUPPORTS_SMP select SYS_SUPPORTS_HOTPLUG_CPU
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 9/17 MIPS: BMIPS: Let each platform customize the CPU1 IRQ mask
In reply to a message not in the archiveOn some chips like bcm3384, "other stuff" gets wired up to CPU1's IE_IRQ1 input, generating spurious IRQs. In this case we want the platform code to be able to mask it off.
--- arch/mips/include/asm/bmips.h | 1 + arch/mips/kernel/smp-bmips.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-)
arch/mips/include/asm/bmips.h +1 -0
@@ -84,6 +84,7 @@ extern char bmips_smp_int_vec_end;extern int bmips_smp_enabled;extern int bmips_cpu_offset;extern cpumask_t bmips_booted_mask; +extern unsigned long bmips_tp1_irqs;extern void bmips_ebase_setup (void ); extern asmlinkage void plat_wired_tlb_setup(void);
arch/mips/kernel/smp-bmips.c +4 -2
@@ -43,6 +43,7 @@ static int __maybe_unused max_cpus = 1;int bmips_smp_enabled =1 ;int bmips_cpu_offset;cpumask_t bmips_booted_mask; +unsigned long bmips_tp1_irqs =IE_IRQ1 ;#define RESET_FROM_KSEG0 0x80080800#define RESET_FROM_KSEG1 0xa0080800
@@ -257,7 +258,7 @@ static void bmips_smp_finish(void)write_c0_compare (read_c0_count () + mips_hpt_frequency /HZ );irq_enable_hazard (); -set_c0_status (IE_SW0 |IE_SW1 |IE_IRQ1 |IE_IRQ5 |ST0_IE ); +set_c0_status (IE_SW0 |IE_SW1 | bmips_tp1_irqs |IE_IRQ5 |ST0_IE );irq_enable_hazard (); }
@@ -387,7 +388,8 @@ void __ref play_dead(void)* IRQ handlers; this clears ST0_IE and returns immediately. */ clear_c0_cause (CAUSEF_IV |C_SW0 |C_SW1 ); -change_c0_status (IE_IRQ5 |IE_IRQ1 |IE_SW0 |IE_SW1 |ST0_IE |ST0_BEV , +change_c0_status ( +IE_IRQ5 | bmips_tp1_irqs |IE_SW0 |IE_SW1 |ST0_IE |ST0_BEV ,IE_SW0 |IE_SW1 |ST0_IE |ST0_BEV );irq_disable_hazard ();
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 10/17 MIPS: BMIPS: Add special cache handling in c-r4k.c
In reply to a message not in the archiveBMIPS435x and BMIPS438x have a single shared L1 D$ and load/store unit, so it isn't necessary to raise IPIs to keep both CPUs coherent.
BMIPS5000 has VIPT L1 caches that handle aliases in hardware, and its I$ fills from D$. But a special sequence with 2 SYNCs and 32 NOPs is needed to ensure coherency.
--- arch/mips/mm/c-r4k.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/mips/mm/c-r4k.c +43 -0
@@ -917,6 +917,18 @@ static inline void alias_74k_erratum(struct cpuinfo_mips *c) } } +static void b5k_instruction_hazard (void ) +{ +__sync (); +__sync (); + __asm__ __volatile__( +" nop; nop; nop; nop; nop; nop; nop; nop\n" +" nop; nop; nop; nop; nop; nop; nop; nop\n" +" nop; nop; nop; nop; nop; nop; nop; nop\n" +" nop; nop; nop; nop; nop; nop; nop; nop\n" + : : :"memory" ); +} +static char *way_string[] = {NULL ,"direct mapped" ,"2-way" ,"3-way" ,"4-way" ,"5-way" ,"6-way" ,"7-way" ,"8-way" };
@@ -1683,6 +1695,37 @@ void r4k_cache_init(void)coherency_setup (); board_cache_error_setup = r4k_cache_error_setup; + +/* +* Per-CPU overrides +*/ +switch (current_cpu_type ()) { +case CPU_BMIPS4350 : +case CPU_BMIPS4380 : +/* No IPI is needed because all CPUs share the same D$ */ + flush_data_cache_page = r4k_blast_dcache_page; +break ; +case CPU_BMIPS5000 : +/* We lose our superpowers if L2 is disabled */ +if (c->scache.flags &MIPS_CACHE_NOT_PRESENT ) +break ; + +/* I$ fills from D$ just by emptying the write buffers */ + flush_cache_page = (void *)b5k_instruction_hazard; + flush_cache_range = (void *)b5k_instruction_hazard; + flush_cache_sigtramp = (void *)b5k_instruction_hazard; + local_flush_data_cache_page = (void *)b5k_instruction_hazard; + flush_data_cache_page = (void *)b5k_instruction_hazard; + flush_icache_range = (void *)b5k_instruction_hazard; + local_flush_icache_range = (void *)b5k_instruction_hazard; + +/* Cache aliases are handled in hardware; allow HIGHMEM */ + current_cpu_data.dcache.flags &= ~MIPS_CACHE_ALIASES ; + +/* Optimization: an L2 flush implicitly flushes the L1 */ + current_cpu_data.options |=MIPS_CPU_INCLUSIVE_CACHES ; +break ; + } } static int r4k_cache_pm_notifier(struct notifier_block *self, unsigned long cmd,
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 11/17 MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)
In reply to a message not in the archiveThis is a dual core (quad thread) BMIPS5000. It needs a little extra code to boot the second core (CPU2/CPU3), but for now we can treat it the same as a single core BMIPS5000.
--- arch/mips/include/asm/cpu.h | 1 + arch/mips/kernel/cpu-probe.c | 1 + 2 files changed, 2 insertions(+)
arch/mips/include/asm/cpu.h +1 -0
@@ -142,6 +142,7 @@#define PRID_IMP_BMIPS3300_BUG 0x0000#define PRID_IMP_BMIPS43XX 0xa000#define PRID_IMP_BMIPS5000 0x5a00 +#define PRID_IMP_BMIPS5200 0x5b00#define PRID_REV_BMIPS4380_LO 0x0040#define PRID_REV_BMIPS4380_HI 0x006f
arch/mips/kernel/cpu-probe.c +1 -0
@@ -1024,6 +1024,7 @@ static inline void cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu)break ; }case PRID_IMP_BMIPS5000 : +case PRID_IMP_BMIPS5200 : c->cputype =CPU_BMIPS5000 ; __cpu_name[cpu] ="Broadcom BMIPS5000" ;set_elf_platform (cpu,"bmips5000" );
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 12/17 MIPS: Create a helper function for DT setup
In reply to a message not in the archiveA couple of platforms register two buses and call of_platform_populate(). Move this into a common function to reduce duplication.
--- arch/mips/include/asm/prom.h | 1 + arch/mips/kernel/prom.c | 18 ++++++++++++++++++ arch/mips/lantiq/prom.c | 11 +---------- arch/mips/ralink/of.c | 14 ++------------ 4 files changed, 22 insertions(+), 22 deletions(-)
arch/mips/include/asm/prom.h +1 -0
@@ -22,6 +22,7 @@ extern void device_tree_init(void);struct boot_param_header ;extern void __dt_setup_arch (void *bph); +extern int __dt_register_buses (const char *bus0,const char *bus1);#define dt_setup_arch (sym) \ ({ \
arch/mips/kernel/prom.c +18 -0
@@ -16,6 +16,7 @@#include <linux/debugfs.h> #include <linux/of.h> #include <linux/of_fdt.h> +#include <linux/of_platform.h> #include <asm/page.h> #include <asm/prom.h>
@@ -54,4 +55,21 @@ void __init __dt_setup_arch(void *bph) mips_set_machine_name(of_flat_dt_get_machine_name()); } + +int __init __dt_register_buses (const char *bus0,const char *bus1) +{ +static struct of_device_id of_ids[3 ]; + +if (!of_have_populated_dt ()) +panic ("device tree not present" ); + +strlcpy (of_ids[0 ].compatible, bus0,sizeof (of_ids[0 ].compatible)); +strlcpy (of_ids[1 ].compatible, bus1,sizeof (of_ids[1 ].compatible)); + +if (of_platform_populate (NULL , of_ids,NULL ,NULL )) +panic ("failed to populate DT" ); + +return 0 ; +} +#endif
arch/mips/lantiq/prom.c +1 -10
@@ -97,16 +97,7 @@ void __init prom_init(void)int __init plat_of_setup (void ) { -static struct of_device_id of_ids[3 ]; - -if (!of_have_populated_dt ()) -panic ("device tree not present" ); - -strlcpy (of_ids[0 ].compatible, soc_info.compatible, -sizeof (of_ids[0 ].compatible)); -strncpy (of_ids[1 ].compatible,"simple-bus" , -sizeof (of_ids[1 ].compatible)); -return of_platform_populate (NULL , of_ids,NULL ,NULL ); +return __dt_register_buses (soc_info.compatible,"simple-bus" ); }arch_initcall (plat_of_setup);
arch/mips/ralink/of.c +2 -12
@@ -74,19 +74,9 @@ void __init plat_mem_setup(void)static int __init plat_of_setup (void ) { -static struct of_device_id of_ids[3 ]; -int len =sizeof (of_ids[0 ].compatible); +__dt_register_buses (soc_info.compatible,"palmbus" ); -if (!of_have_populated_dt ()) -panic ("device tree not present" ); - -strlcpy (of_ids[0 ].compatible, soc_info.compatible, len); -strlcpy (of_ids[1 ].compatible,"palmbus" , len); - -if (of_platform_populate (NULL , of_ids,NULL ,NULL )) -panic ("failed to populate DT" ); - -/* make sure ithat the reset controller is setup early */ +/* make sure that the reset controller is setup early */ ralink_rst_init ();return 0 ;
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 13/17 Documentation: DT: Add entries for BCM3384 and its peripherals
In reply to a message not in the archiveThis covers the new "brcm,*" devices added in the upcoming bcm3384 commit.
--- .../devicetree/bindings/mips/brcm/bcm3384-intc.txt | 37 ++++++++++++++++++++++ .../devicetree/bindings/mips/brcm/bmips.txt | 8 +++++ .../devicetree/bindings/mips/brcm/cm-dsl.txt | 11 +++++++ .../devicetree/bindings/mips/brcm/usb.txt | 11 +++++++ 4 files changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/brcm/bcm3384-intc.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/bmips.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/cm-dsl.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/usb.txt
Documentation/devicetree/bindings/mips/brcm/bcm3384-intc.txt new file +37 -0
@@ -0,0 +1,37 @@ +* Interrupt Controller + +Properties: +- compatible: "brcm,bcm3384-intc" + + Compatibility with BCM3384 and possibly other BCM33xx/BCM63xx SoCs. + +- reg: Address/length pairs for each mask/status register set. Length must + be 8. If multiple register sets are specified, the first set will + handle IRQ offsets 0..31, the second set 32..63, and so on. + +- interrupt-controller: This is an interrupt controller. + +- #interrupt-cells: Must be <1>. Just a simple IRQ offset; no level/edge + or polarity configuration is possible with this controller. + +- interrupt-parent: This controller is cascaded from a MIPS CPU HW IRQ, or + from another INTC. + +- interrupts: The IRQ on the parent controller. + +Example: + periph_intc: periph_intc@14e00038 { + compatible = "brcm,bcm3384-intc"; + + /* + * IRQs 0..31: mask reg 0x14e00038, status reg 0x14e0003c + * IRQs 32..63: mask reg 0x14e00340, status reg 0x14e00344 + */ + reg = <0x14e00038 0x8 0x14e00340 0x8>; + + interrupt-controller; + #interrupt-cells = <1>; + + interrupt-parent = <&cpu_intc>; + interrupts = <4>; + };
Documentation/devicetree/bindings/mips/brcm/bmips.txt new file +8 -0
@@ -0,0 +1,8 @@ +* Broadcom MIPS (BMIPS) CPUs + +Required properties: +- compatible: "brcm,bmips3300", "brcm,bmips4350", "brcm,bmips4380", + "brcm,bmips5000" + +- mips-hpt-frequency: This is common to all CPUs in the system so it lives + under the "cpus" node.
Documentation/devicetree/bindings/mips/brcm/cm-dsl.txt new file +11 -0
@@ -0,0 +1,11 @@ +* Broadcom cable/DSL platforms + +SoCs: + +Required properties: +- compatible: "brcm,bcm3384", "brcm,bcm33843" + +Boards: + +Required properties: +- compatible: "brcm,bcm93384wvg"
Documentation/devicetree/bindings/mips/brcm/usb.txt new file +11 -0
@@ -0,0 +1,11 @@ +* Broadcom USB controllers + +Required properties: +- compatible: "brcm,bcm3384-ohci", "brcm,bcm3384-ehci" + + These currently use the generic-ohci and generic-ehci drivers. On some + systems, special handling may be needed in the following cases: + + - Restoring state after systemwide power save modes + - Sharing PHYs with the USBD (UDC) hardware + - Figuring out which controllers are disabled on ASIC bondout variants
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 14/17 Documentation: DT: Add "mti" vendor prefix
In reply to a message not in the archiveWe have a bunch of platforms using "mti,cpu-interrupt-controller" but the "mti" prefix isn't documented. Fix this.
--- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -96,6 +96,7 @@ mitsubishi Mitsubishi Electric Corporation mosaixtech Mosaix Technologies, Inc. moxa Moxa mpl MPL AG +mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.) mundoreader Mundo Reader S.L. murata Murata Manufacturing Co., Ltd. mxicy Macronix International Co., Ltd.
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 15/17 MIPS: bcm3384: Initial commit of bcm3384 platform support
In reply to a message not in the archiveThis supports SMP Linux running on the BCM3384 Zephyr (BMIPS5000) application processor, with fully functional UART and USB 1.1/2.0. Device Tree is used to configure the following items:
- All peripherals
- Early console base address
- SMP or UP mode
- MIPS counter frequency
- Memory size / regions
- DMA offset
- Kernel command line
The DT-enabled bootloader and build instructions are posted at
https://github.com/Broadcom/aeolus
--- arch/mips/Kbuild.platforms | 1 + arch/mips/Kconfig | 26 +++ arch/mips/bcm3384/Makefile | 1 + arch/mips/bcm3384/Platform | 7 + arch/mips/bcm3384/dma.c | 81 +++++++++ arch/mips/bcm3384/irq.c | 193 +++++++++++++++++++++ arch/mips/bcm3384/setup.c | 97 +++++++++++ arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/bcm3384.dtsi | 109 ++++++++++++ arch/mips/boot/dts/bcm93384wvg.dts | 32 ++++ arch/mips/configs/bcm3384_defconfig | 78 +++++++++ arch/mips/include/asm/mach-bcm3384/dma-coherence.h | 48 +++++ arch/mips/include/asm/mach-bcm3384/war.h | 24 +++ 13 files changed, 698 insertions(+) create mode 100644 arch/mips/bcm3384/Makefile create mode 100644 arch/mips/bcm3384/Platform create mode 100644 arch/mips/bcm3384/dma.c create mode 100644 arch/mips/bcm3384/irq.c create mode 100644 arch/mips/bcm3384/setup.c create mode 100644 arch/mips/boot/dts/bcm3384.dtsi create mode 100644 arch/mips/boot/dts/bcm93384wvg.dts create mode 100644 arch/mips/configs/bcm3384_defconfig create mode 100644 arch/mips/include/asm/mach-bcm3384/dma-coherence.h create mode 100644 arch/mips/include/asm/mach-bcm3384/war.h
arch/mips/Kbuild.platforms +1 -0
@@ -3,6 +3,7 @@ platforms += alchemy platforms += ar7 platforms += ath79 +platforms += bcm3384 platforms += bcm47xx platforms += bcm63xx platforms += cavium-octeon
arch/mips/Kconfig +26 -0
@@ -115,6 +115,32 @@ config ATH79 help Support for the Atheros AR71XX/AR724X/AR913X SoCs. +config BCM3384 + bool "Broadcom BCM3384 based boards" + select BOOT_RAW + select NO_EXCEPT_FILL + select USE_OF + select CEVT_R4K + select CSRC_R4K + select SYNC_R4K + select COMMON_CLK + select DMA_NONCOHERENT + select IRQ_CPU + select SYS_SUPPORTS_32BIT_KERNEL + select SYS_SUPPORTS_BIG_ENDIAN + select SYS_SUPPORTS_HIGHMEM + select SYS_HAS_CPU_BMIPS5000 + select SWAP_IO_SPACE + select USB_EHCI_BIG_ENDIAN_DESC + select USB_EHCI_BIG_ENDIAN_MMIO + select USB_OHCI_BIG_ENDIAN_DESC + select USB_OHCI_BIG_ENDIAN_MMIO + help + Support for BCM3384 based boards. BCM3384/BCM33843 is a cable modem + chipset with a Linux application processor that is often used to + provide Samba services, a CUPS print server, and/or advanced routing + features. + config BCM47XX bool "Broadcom BCM47XX based boards" select ARCH_WANT_OPTIONAL_GPIOLIB
arch/mips/bcm3384/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += setup.o irq.o dma.o
arch/mips/bcm3384/Platform new file +7 -0
@@ -0,0 +1,7 @@ +# +# Broadcom BCM3384 boards +# +platform-$(CONFIG_BCM3384) += bcm3384/ +cflags-$(CONFIG_BCM3384) += \ + -I$(srctree)/arch/mips/include/asm/mach-bcm3384/ +load-$(CONFIG_BCM3384) := 0xffffffff80010000
arch/mips/bcm3384/dma.c new file +81 -0
81 lines not on this page · raw message
arch/mips/bcm3384/irq.c new file +193 -0
193 lines not on this page · raw message
arch/mips/bcm3384/setup.c new file +97 -0
97 lines not on this page · raw message
arch/mips/boot/dts/Makefile +1 -0
@@ -1,3 +1,4 @@ +dtb-$(CONFIG_BCM3384) += bcm93384wvg.dtb dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb dtb-$(CONFIG_DT_EASY50712) += easy50712.dtb dtb-$(CONFIG_DT_XLP_EVP) += xlp_evp.dtb
arch/mips/boot/dts/bcm3384.dtsi new file +109 -0
109 lines not on this page · raw message
arch/mips/boot/dts/bcm93384wvg.dts new file +32 -0
@@ -0,0 +1,32 @@ +/dts-v1/; + +/include/ "bcm3384.dtsi" + +/ { + compatible = "brcm,bcm93384wvg", "brcm,bcm3384"; + model = "Broadcom BCM93384WVG"; + + chosen { + bootargs = "console=ttyS0,115200"; + stdout-path = &uart0; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x04000000>; + dma-xor-mask = <0x08000000>; + dma-xor-limit = <0x0fffffff>; + }; +}; + +&uart0 { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ohci0 { + status = "okay"; +};
arch/mips/configs/bcm3384_defconfig new file +78 -0
78 lines not on this page · raw message
arch/mips/include/asm/mach-bcm3384/dma-coherence.h new file +48 -0
48 lines not on this page · raw message
arch/mips/include/asm/mach-bcm3384/war.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* +* Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf-6z/[email protected]> +*/ +#ifndef __ASM_MIPS_MACH_BCM3384_WAR_H +#define __ASM_MIPS_MACH_BCM3384_WAR_H + +#define R4600_V1_INDEX_ICACHEOP_WAR 0 +#define R4600_V1_HIT_CACHEOP_WAR 0 +#define R4600_V2_HIT_CACHEOP_WAR 0 +#define R5432_CP0_INTERRUPT_WAR 0 +#define BCM1250_M3_WAR 0 +#define SIBYTE_1956_WAR 0 +#define MIPS4K_ICACHE_REFILL_WAR 0 +#define MIPS_CACHE_SYNC_WAR 0 +#define TX49XX_ICACHE_INDEX_INV_WAR 0 +#define ICACHE_REFILLS_WORKAROUND_WAR 0 +#define R10000_LLSC_WAR 0 +#define MIPS34K_MISSED_ITLB_WAR 0 + +#endif /* __ASM_MIPS_MACH_BCM3384_WAR_H */
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 16/17 MAINTAINERS: Add entry for BCM33xx cable chips
In reply to a message not in the archiveAdd myself as a maintainer for the new BCM3384 board support code.
--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -2069,6 +2069,14 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi.git S: Maintained N: bcm2835 +BROADCOM BCM33XX MIPS ARCHITECTURE +M: Kevin Cernekee <[email protected]> +L: linux-mips-6z/[email protected] +S: Maintained +F: arch/mips/bcm3384/* +F: arch/mips/include/asm/mach-bcm3384/* +F: arch/mips/kernel/*bmips* + BROADCOM BCM5301X ARM ARCHITECTURE M: Hauke Mehrtens <hauke-5/[email protected]> L: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 17/17 MAINTAINERS: Add entry for bcm63xx/bcm33xx UDC gadget driver
In reply to a message not in the archiveThis hardware shows up on the newly-supported BCM3384 cable chip, as well as several old BCM63xx DSL chips.
--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -2093,6 +2093,12 @@ S: Maintained F: arch/arm/mach-bcm/bcm63xx.c F: arch/arm/include/debug/bcm63xx.S +BROADCOM BCM63XX/BCM33XX UDC DRIVER +M: Kevin Cernekee <[email protected]> +L: [email protected] +S: Maintained +F: drivers/usb/gadget/udc/bcm63xx_udc.* + BROADCOM BCM7XXX ARM ARCHITECTURE M: Marc Carino <[email protected]> M: Brian Norris <[email protected]>
Signature · 6 lines
2.1.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Florian Fainelli
Reviewed-byQuoted 8 lines · Kevin Cernekee
This patch series adds support for the Linux BMIPS5000 application processor on BCM3384, a cable modem chipset. It incorporates the latest bugfixes and workarounds available for the BMIPS SMP and cache maintenance code.
The bootloader code[1] passes a device tree blob describing the memory setup, bootargs, peripheral configuration, clocks, etc. For this reason, very little needs to be hardcoded in the kernel.
This really looks good to me, thanks!
Quoted 71 lines
Dependencies:
-
bcm63xx_uartand of-serial changes, under review on the linux-serial list- OHCI changes, pending inclusion on usb.git -next
[1] https://github.com/broadcom/aeolus
Jon Fraser (2):
MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code
MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPUKevin Cernekee (15):
MIPS: BMIPS: Fix ".previous without corresponding .section" warnings
MIPS: BMIPS: Align secondary boot sequence with latest firmware
releases
MIPS: BMIPS: Introduce helper function to change the reset vector
MIPS: BMIPS: Explicitly configure reset vectors prior to secondary
boot
MIPS: AllowMIPS_CPU_SCACHEto be used with different line sizes
MIPS: BMIPS: Select the appropriateL1_CACHE_SHIFTfor 438x and 5000
CPUs
MIPS: BMIPS: Let each platform customize the CPU1 IRQ mask
MIPS: BMIPS: Add special cache handling inc-r4k.c
MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)
MIPS: Create a helper function for DT setup
Documentation: DT: Add entries for BCM3384 and its peripherals
Documentation: DT: Add "mti" vendor prefix
MIPS: bcm3384: Initial commit of bcm3384 platform support
MAINTAINERS: Add entry for BCM33xx cable chips
MAINTAINERS: Add entry for bcm63xx/bcm33xx UDC gadget driver.../devicetree/bindings/mips/brcm/bcm3384-intc.txt | 37 ++++ .../devicetree/bindings/mips/brcm/bmips.txt | 8 + .../devicetree/bindings/mips/brcm/cm-dsl.txt | 11 ++ .../devicetree/bindings/mips/brcm/usb.txt | 11 ++ .../devicetree/bindings/vendor-prefixes.txt | 1 + MAINTAINERS | 14 ++ arch/mips/Kbuild.platforms | 1 + arch/mips/Kconfig | 30 +++- arch/mips/bcm3384/Makefile | 1 + arch/mips/bcm3384/Platform | 7 + arch/mips/bcm3384/dma.c | 81 +++++++++ arch/mips/bcm3384/irq.c | 193 +++++++++++++++++++++ arch/mips/bcm3384/setup.c | 97 +++++++++++ arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/bcm3384.dtsi | 109 ++++++++++++ arch/mips/boot/dts/bcm93384wvg.dts | 32 ++++ arch/mips/configs/bcm3384_defconfig | 78 +++++++++ arch/mips/include/asm/bmips.h | 1 + arch/mips/include/asm/cpu.h | 1 + arch/mips/include/asm/mach-bcm3384/dma-coherence.h | 48 +++++ arch/mips/include/asm/mach-bcm3384/war.h | 24 +++ arch/mips/include/asm/prom.h | 1 + arch/mips/kernel/bmips_vec.S | 3 - arch/mips/kernel/cpu-probe.c | 1 + arch/mips/kernel/prom.c | 18 ++ arch/mips/kernel/smp-bmips.c | 114 +++++++----- arch/mips/lantiq/prom.c | 11 +- arch/mips/mm/c-r4k.c | 43 +++++ arch/mips/ralink/of.c | 14 +- 29 files changed, 924 insertions(+), 67 deletions(-) create mode 100644 Documentation/devicetree/bindings/mips/brcm/bcm3384-intc.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/bmips.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/cm-dsl.txt create mode 100644 Documentation/devicetree/bindings/mips/brcm/usb.txt create mode 100644 arch/mips/bcm3384/Makefile create mode 100644 arch/mips/bcm3384/Platform
Quoted 9 lines
create mode 100644 arch/mips/bcm3384/dma.c create mode 100644 arch/mips/bcm3384/irq.c create mode 100644 arch/mips/bcm3384/setup.c create mode 100644 arch/mips/boot/dts/bcm3384.dtsi create mode 100644 arch/mips/boot/dts/bcm93384wvg.dts create mode 100644 arch/mips/configs/bcm3384_defconfig create mode 100644 arch/mips/include/asm/mach-bcm3384/dma-coherence.h create mode 100644 arch/mips/include/asm/mach-bcm3384/war.h
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html