ARM: CSR: Adding CSR SiRFprimaII platform
Subsystems (3)
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
Changelogs:
-v4:
v3 got "Reviewed-by: Arnd Bergmann <[email protected]>" stopping the 0xffffffff madness for IO_SPACE_LIMIT fix .map_io compiling issue in the 1st patch fix set_next_event in timer.c
rename GPU, USB, multimedia and SATA nodes in DTS delete redundant 0x in DTS
-v3:
full DT file
delete all static mapping table in common.c
rename common.c to prima2.c
delete board file board_dt.c
split DEBUG_LL and L2 cache to seperate patch
-v2:
1. clock: use dev_id instead of con_id
2. Kconfig: delete ISA_DMA
3. irq: implement int controller based on DT
move to GENERIC_IRQ_CHIP framework
4. timer: implement timer based on DT
5. entry-macro.S: use get_irqnr_preamble to load the base address only once per IRQ exception.
6. others:
use readl_relaxed instead of __raw_readl
adjust Kconfig order for PRIMA2
use clk_get_sys instead of clk_get for system level clock use BUG_ON(IS_ERR(clk)) instead of BUG_ON(IS_ERR_OR_NULL(clk)); fix typo for CLOCK_TICK_RATE
("sirf,xxx", "sirf,prima2-xxx") instead of ("sirf,xxx") in dts
Note:
For L2 cache, if Rob's patch is merged, the whole file can be deleted
Barry Song (1):
ARM: CSR: mapping early DEBUG_LL uart
Binghua Duan (1):
ARM: CSR: Adding CSR SiRFprimaII board support
Rongjun Ying (1):
ARM: CSR: initializing L2 cache
Documentation/devicetree/bindings/arm/sirf.txt | 3 + arch/arm/Kconfig | 14 + arch/arm/Makefile | 1 + arch/arm/boot/dts/prima2-cb.dts | 416 ++++++++++++++++++ arch/arm/mach-prima2/Makefile | 7 + arch/arm/mach-prima2/Makefile.boot | 3 + arch/arm/mach-prima2/clock.c | 509 +++++++++++++++++++++++ arch/arm/mach-prima2/common.h | 26 ++ arch/arm/mach-prima2/include/mach/clkdev.h | 15 + arch/arm/mach-prima2/include/mach/debug-macro.S | 29 ++ arch/arm/mach-prima2/include/mach/entry-macro.S | 29 ++ arch/arm/mach-prima2/include/mach/hardware.h | 15 + arch/arm/mach-prima2/include/mach/io.h | 16 + arch/arm/mach-prima2/include/mach/irqs.h | 17 + arch/arm/mach-prima2/include/mach/map.h | 16 + arch/arm/mach-prima2/include/mach/memory.h | 21 + arch/arm/mach-prima2/include/mach/system.h | 29 ++ arch/arm/mach-prima2/include/mach/timex.h | 14 + arch/arm/mach-prima2/include/mach/uart.h | 23 + arch/arm/mach-prima2/include/mach/uncompress.h | 40 ++ arch/arm/mach-prima2/include/mach/vmalloc.h | 14 + arch/arm/mach-prima2/irq.c | 71 ++++ arch/arm/mach-prima2/l2x0.c | 59 +++ arch/arm/mach-prima2/lluart.c | 25 ++ arch/arm/mach-prima2/prima2.c | 41 ++ arch/arm/mach-prima2/rstc.c | 69 +++ arch/arm/mach-prima2/timer.c | 217 ++++++++++ arch/arm/mm/Kconfig | 2 +- 28 files changed, 1740 insertions(+), 1 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/sirf.txt create mode 100644 arch/arm/boot/dts/prima2-cb.dts create mode 100644 arch/arm/mach-prima2/Makefile create mode 100644 arch/arm/mach-prima2/Makefile.boot create mode 100644 arch/arm/mach-prima2/clock.c create mode 100644 arch/arm/mach-prima2/common.h create mode 100644 arch/arm/mach-prima2/include/mach/clkdev.h create mode 100644 arch/arm/mach-prima2/include/mach/debug-macro.S create mode 100644 arch/arm/mach-prima2/include/mach/entry-macro.S create mode 100644 arch/arm/mach-prima2/include/mach/hardware.h create mode 100644 arch/arm/mach-prima2/include/mach/io.h create mode 100644 arch/arm/mach-prima2/include/mach/irqs.h create mode 100644 arch/arm/mach-prima2/include/mach/map.h create mode 100644 arch/arm/mach-prima2/include/mach/memory.h create mode 100644 arch/arm/mach-prima2/include/mach/system.h create mode 100644 arch/arm/mach-prima2/include/mach/timex.h create mode 100644 arch/arm/mach-prima2/include/mach/uart.h create mode 100644 arch/arm/mach-prima2/include/mach/uncompress.h create mode 100644 arch/arm/mach-prima2/include/mach/vmalloc.h create mode 100644 arch/arm/mach-prima2/irq.c create mode 100644 arch/arm/mach-prima2/l2x0.c create mode 100644 arch/arm/mach-prima2/lluart.c create mode 100644 arch/arm/mach-prima2/prima2.c create mode 100644 arch/arm/mach-prima2/rstc.c create mode 100644 arch/arm/mach-prima2/timer.c
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
PATCH v4 1/3 ARM: CSR: Adding CSR SiRFprimaII board support
From: Binghua Duan <[email protected]>
SiRFprimaII is the latest generation application processor from CSR?s Multifunction SoC product family. Designed around an ARM cortex A9 core, high-speed memory bus, advanced 3D accelerator and full-HD multi-format video decoder, SiRFprimaII is able to meet the needs of complicated applications for modern multifunction devices that require heavy concurrent applications and fluid user experience. Integrated with GPS baseband, analog and PMU, this new platform is designed to provide a cost effective solution for Automotive and Consumer markets.
This patch adds the basic support for this SoC and EVB board based on device tree. It is following the ZYNQ of Grant Likely in some degree.
--- Documentation/devicetree/bindings/arm/sirf.txt | 3 + arch/arm/Kconfig | 14 + arch/arm/Makefile | 1 + arch/arm/boot/dts/prima2-cb.dts | 416 ++++++++++++++++++ arch/arm/mach-prima2/Makefile | 5 + arch/arm/mach-prima2/Makefile.boot | 3 + arch/arm/mach-prima2/clock.c | 509 +++++++++++++++++++++++ arch/arm/mach-prima2/common.h | 20 + arch/arm/mach-prima2/include/mach/clkdev.h | 15 + arch/arm/mach-prima2/include/mach/debug-macro.S | 29 ++ arch/arm/mach-prima2/include/mach/entry-macro.S | 29 ++ arch/arm/mach-prima2/include/mach/hardware.h | 15 + arch/arm/mach-prima2/include/mach/io.h | 16 + arch/arm/mach-prima2/include/mach/irqs.h | 17 + arch/arm/mach-prima2/include/mach/map.h | 16 + arch/arm/mach-prima2/include/mach/memory.h | 21 + arch/arm/mach-prima2/include/mach/system.h | 29 ++ arch/arm/mach-prima2/include/mach/timex.h | 14 + arch/arm/mach-prima2/include/mach/uart.h | 23 + arch/arm/mach-prima2/include/mach/uncompress.h | 40 ++ arch/arm/mach-prima2/include/mach/vmalloc.h | 14 + arch/arm/mach-prima2/irq.c | 71 ++++ arch/arm/mach-prima2/prima2.c | 40 ++ arch/arm/mach-prima2/rstc.c | 69 +++ arch/arm/mach-prima2/timer.c | 217 ++++++++++ arch/arm/mm/Kconfig | 2 +- 26 files changed, 1647 insertions(+), 1 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/sirf.txt create mode 100644 arch/arm/boot/dts/prima2-cb.dts create mode 100644 arch/arm/mach-prima2/Makefile create mode 100644 arch/arm/mach-prima2/Makefile.boot create mode 100644 arch/arm/mach-prima2/clock.c create mode 100644 arch/arm/mach-prima2/common.h create mode 100644 arch/arm/mach-prima2/include/mach/clkdev.h create mode 100644 arch/arm/mach-prima2/include/mach/debug-macro.S create mode 100644 arch/arm/mach-prima2/include/mach/entry-macro.S create mode 100644 arch/arm/mach-prima2/include/mach/hardware.h create mode 100644 arch/arm/mach-prima2/include/mach/io.h create mode 100644 arch/arm/mach-prima2/include/mach/irqs.h create mode 100644 arch/arm/mach-prima2/include/mach/map.h create mode 100644 arch/arm/mach-prima2/include/mach/memory.h create mode 100644 arch/arm/mach-prima2/include/mach/system.h create mode 100644 arch/arm/mach-prima2/include/mach/timex.h create mode 100644 arch/arm/mach-prima2/include/mach/uart.h create mode 100644 arch/arm/mach-prima2/include/mach/uncompress.h create mode 100644 arch/arm/mach-prima2/include/mach/vmalloc.h create mode 100644 arch/arm/mach-prima2/irq.c create mode 100644 arch/arm/mach-prima2/prima2.c create mode 100644 arch/arm/mach-prima2/rstc.c create mode 100644 arch/arm/mach-prima2/timer.c
Documentation/devicetree/bindings/arm/sirf.txt new file +3 -0
@@ -0,0 +1,3 @@ +prima2 "cb" evalutation board +Required root node properties: + - compatible = "sirf,prima2-cb", "sirf,prima2";
arch/arm/Kconfig +14 -0
@@ -879,6 +879,20 @@ config ARCH_VT8500 select HAVE_PWM help Support for VIA/WonderMedia VT8500/WM85xx System-on-Chip. + +config ARCH_PRIMA2 + bool "CSR SiRFSoC PRIMA2 ARM Cortex A9 Platform" + select CPU_V7 + select GENERIC_TIME + select NO_IOPORT + select GENERIC_CLOCKEVENTS + select CLKDEV_LOOKUP + select GENERIC_IRQ_CHIP + select USE_OF + select ZONE_DMA + help + Support for CSR SiRFSoC ARM Cortex A9 Platform + endchoice #
arch/arm/Makefile +1 -0
@@ -169,6 +169,7 @@ machine-$(CONFIG_ARCH_OMAP3) := omap2 machine-$(CONFIG_ARCH_OMAP4) := omap2 machine-$(CONFIG_ARCH_ORION5X) := orion5x machine-$(CONFIG_ARCH_PNX4008) := pnx4008 +machine-$(CONFIG_ARCH_PRIMA2) := prima2 machine-$(CONFIG_ARCH_PXA) := pxa machine-$(CONFIG_ARCH_REALVIEW) := realview machine-$(CONFIG_ARCH_RPC) := rpc
arch/arm/boot/dts/prima2-cb.dts new file +416 -0
416 lines not on this page · raw message
arch/arm/mach-prima2/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +obj-y := timer.o +obj-y += irq.o +obj-y += clock.o +obj-y += rstc.o +obj-y += prima2.o
arch/arm/mach-prima2/Makefile.boot new file +3 -0
@@ -0,0 +1,3 @@ +zreladdr-y := 0x00008000 +params_phys-y := 0x00000100 +initrd_phys-y := 0x00800000
arch/arm/mach-prima2/clock.c new file +509 -0
509 lines not on this page · raw message
arch/arm/mach-prima2/common.h new file +20 -0
@@ -0,0 +1,20 @@ +/* +* This file contains common function prototypes to avoid externs in the c files. +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_PRIMA2_COMMON_H__ +#define __MACH_PRIMA2_COMMON_H__ + +#include <linux/init.h> +#include <asm/mach/time.h> + +extern struct sys_timer sirfsoc_timer; + +extern void __init sirfsoc_of_irq_init (void ); +extern void __init sirfsoc_of_clk_init (void ); + +#endif
arch/arm/mach-prima2/include/mach/clkdev.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* arch/arm/mach-prima2/include/mach/clkdev.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_CLKDEV_H +#define __MACH_CLKDEV_H + +#define __clk_get (clk) ({ 1; }) +#define __clk_put (clk) do { } while (0) + +#endif
arch/arm/mach-prima2/include/mach/debug-macro.S new file +29 -0
@@ -0,0 +1,29 @@ +/* + * arch/arm/mach-prima2/include/mach/debug-macro.S + * + * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. + * + * Licensed under GPLv2 or later. + */ + +#include <mach/hardware.h> +#include <mach/uart.h> + + .macro addruart, rp, rv + ldr \rp, =SIRFSOC_UART1_PA_BASE @ physical + ldr \rv, =SIRFSOC_UART1_VA_BASE @ virtual + .endm + + .macro senduart,rd,rx + str \rd, [\rx, #SIRFSOC_UART_TXFIFO_DATA] + .endm + + .macro busyuart,rd,rx + .endm + + .macro waituart,rd,rx +1001: ldr \rd, [\rx, #SIRFSOC_UART_TXFIFO_STATUS] + tst \rd, #SIRFSOC_UART1_TXFIFO_EMPTY + beq 1001b + .endm +
arch/arm/mach-prima2/include/mach/entry-macro.S new file +29 -0
@@ -0,0 +1,29 @@ +/* + * arch/arm/mach-prima2/include/mach/entry-macro.S + * + * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. + * + * Licensed under GPLv2 or later. + */ + +#include <mach/hardware.h> + +#define SIRFSOC_INT_ID 0x38 + + .macro get_irqnr_preamble, base, tmp + ldr \base, =sirfsoc_intc_base + ldr \base, [\base] + .endm + + .macro get_irqnr_and_base, irqnr, irqstat, base, tmp + ldr \irqnr, [\base, #SIRFSOC_INT_ID] @ Get the highest priority irq + cmp \irqnr, #0x40 @ the irq num can't be larger than 0x3f + movges \irqnr, #0 + .endm + + .macro disable_fiq + .endm + + .macro arch_ret_to_user, tmp1, tmp2 + .endm +
arch/arm/mach-prima2/include/mach/hardware.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* arch/arm/mach-prima2/include/mach/hardware.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_HARDWARE_H__ +#define __MACH_HARDWARE_H__ + +#include <asm/sizes.h> +#include <mach/map.h> + +#endif
arch/arm/mach-prima2/include/mach/io.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* arch/arm/mach-prima2/include/mach/io.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_PRIMA2_IO_H +#define __MACH_PRIMA2_IO_H + +#define IO_SPACE_LIMIT ((resource_size_t)0) + +#define __mem_pci (a) (a) + +#endif
arch/arm/mach-prima2/include/mach/irqs.h new file +17 -0
@@ -0,0 +1,17 @@ +/* +* arch/arm/mach-prima2/include/mach/irqs.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __ASM_ARCH_IRQS_H +#define __ASM_ARCH_IRQS_H + +#define SIRFSOC_INTENAL_IRQ_START 0 +#define SIRFSOC_INTENAL_IRQ_END 59 + +#define NR_IRQS 220 + +#endif
arch/arm/mach-prima2/include/mach/map.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* memory & I/O static mapping definitions for CSR SiRFprimaII +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_PRIMA2_MAP_H__ +#define __MACH_PRIMA2_MAP_H__ + +#include <mach/vmalloc.h> + +#define SIRFSOC_VA (x) (VMALLOC_END + ((x) & 0x00FFF000)) + +#endif
arch/arm/mach-prima2/include/mach/memory.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* arch/arm/mach-prima2/include/mach/memory.h +* +* Copyright (c) 2010 ? 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __ASM_ARCH_MEMORY_H +#define __ASM_ARCH_MEMORY_H + +#define PLAT_PHYS_OFFSET UL(0x00000000) + +/* +* Restrict DMA-able region to workaround silicon limitation. +* The limitation restricts buffers available for DMA to SD/MMC +* hardware to be below 256MB +*/ +#define ARM_DMA_ZONE_SIZE (SZ_256M) + +#endif
arch/arm/mach-prima2/include/mach/system.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* arch/arm/mach-prima2/include/mach/system.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_SYSTEM_H__ +#define __MACH_SYSTEM_H__ + +#include <linux/bitops.h> +#include <mach/hardware.h> + +#define SIRFSOC_SYS_RST_BIT BIT(31) + +extern void __iomem *sirfsoc_rstc_base; + +static inline void arch_idle (void ) +{ +cpu_do_idle (); +} + +static inline void arch_reset (char mode,const char *cmd) +{ +writel (SIRFSOC_SYS_RST_BIT , sirfsoc_rstc_base); +} + +#endif
arch/arm/mach-prima2/include/mach/timex.h new file +14 -0
@@ -0,0 +1,14 @@ +/* +* arch/arm/mach-prima2/include/mach/timex.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_TIMEX_H__ +#define __MACH_TIMEX_H__ + +#define CLOCK_TICK_RATE 1000000 + +#endif
arch/arm/mach-prima2/include/mach/uart.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* arch/arm/mach-prima2/include/mach/uart.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_PRIMA2_SIRFSOC_UART_H +#define __MACH_PRIMA2_SIRFSOC_UART_H + +/* UART-1: used as serial debug port */ +#define SIRFSOC_UART1_PA_BASE 0xb0060000 +#define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000) +#define SIRFSOC_UART1_SIZE SZ_4K + +#define SIRFSOC_UART_TXFIFO_STATUS 0x0114 +#define SIRFSOC_UART_TXFIFO_DATA 0x0118 + +#define SIRFSOC_UART1_TXFIFO_FULL (1 << 5) +#define SIRFSOC_UART1_TXFIFO_EMPTY (1 << 6) + +#endif
arch/arm/mach-prima2/include/mach/uncompress.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* arch/arm/mach-prima2/include/mach/uncompress.h +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __ASM_ARCH_UNCOMPRESS_H +#define __ASM_ARCH_UNCOMPRESS_H + +#include <linux/io.h> +#include <mach/hardware.h> +#include <mach/uart.h> + +void arch_decomp_setup (void ) +{ +} + +#define arch_decomp_wdog () + +static __inline__void putc (char c) +{ +/* +* during kernel decompression, all mappings are flat: +* virt_addr == phys_addr +*/ +while (__raw_readl (SIRFSOC_UART1_PA_BASE +SIRFSOC_UART_TXFIFO_STATUS ) + &SIRFSOC_UART1_TXFIFO_FULL ) +barrier (); + +__raw_writel (c,SIRFSOC_UART1_PA_BASE +SIRFSOC_UART_TXFIFO_DATA ); +} + +static inline void flush (void ) +{ +} + +#endif +
arch/arm/mach-prima2/include/mach/vmalloc.h new file +14 -0
@@ -0,0 +1,14 @@ +/* +* arch/arm/ach-prima2/include/mach/vmalloc.h +* +* Copyright (c) 2010 ? 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#ifndef __MACH_VMALLOC_H +#define __MACH_VMALLOC_H + +#define VMALLOC_END 0xFEC00000 + +#endif
arch/arm/mach-prima2/irq.c new file +71 -0
71 lines not on this page · raw message
arch/arm/mach-prima2/prima2.c new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Defines machines for CSR SiRFprimaII +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#include <linux/init.h> +#include <linux/kernel.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <linux/of.h> +#include <linux/of_platform.h> +#include "common.h" + +static struct of_device_id sirfsoc_of_bus_ids[]__initdata = { + { .compatible ="simple-bus" , }, + {}, +}; + +void __init sirfsoc_mach_init (void ) +{ +of_platform_bus_probe (NULL , sirfsoc_of_bus_ids,NULL ); +} + +static const char *prima2cb_dt_match[]__initdata = { +"sirf,prima2-cb" , +NULL +}; + +MACHINE_START (PRIMA2_EVB ,"prima2cb" ) +/* Maintainer: Barry Song <[email protected]> */ + .boot_params = 0x00000100, + .init_early = sirfsoc_of_clk_init, + .init_irq = sirfsoc_of_irq_init, + .timer = &sirfsoc_timer, + .init_machine = sirfsoc_mach_init, + .dt_compat = prima2cb_dt_match, +MACHINE_END
arch/arm/mach-prima2/rstc.c new file +69 -0
69 lines not on this page · raw message
arch/arm/mach-prima2/timer.c new file +217 -0
217 lines not on this page · raw message
arch/arm/mm/Kconfig +1 -1
@@ -821,7 +821,7 @@ config CACHE_L2X0 depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ REALVIEW_EB_A9MP || SOC_IMX35 || SOC_IMX31 || MACH_REALVIEW_PBX || \ ARCH_NOMADIK || ARCH_OMAP4 || ARCH_EXYNOS4 || ARCH_TEGRA || \ - ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE + ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE || ARCH_PRIMA2 default y select OUTER_CACHE select OUTER_CACHE_SYNC
Signature · 6 lines
1.7.1 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our [email protected]/blog
PATCH v4 2/3 ARM: CSR: mapping early DEBUG_LL uart
In reply to Barry Song--- arch/arm/mach-prima2/Makefile | 1 + arch/arm/mach-prima2/common.h | 6 ++++++ arch/arm/mach-prima2/lluart.c | 25 +++++++++++++++++++++++++ arch/arm/mach-prima2/prima2.c | 1 + 4 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-prima2/lluart.c
arch/arm/mach-prima2/Makefile +1 -0
@@ -3,3 +3,4 @@ obj-y += irq.o obj-y += clock.o obj-y += rstc.o obj-y += prima2.o +obj-$(CONFIG_DEBUG_LL) += lluart.o
arch/arm/mach-prima2/common.h +6 -0
@@ -17,4 +17,10 @@ extern struct sys_timer sirfsoc_timer;extern void __init sirfsoc_of_irq_init (void );extern void __init sirfsoc_of_clk_init (void ); +#ifndef CONFIG_DEBUG_LL +static inline void sirfsoc_map_lluart (void ) {} +#else +extern void __init sirfsoc_map_lluart (void ); +#endif +#endif
arch/arm/mach-prima2/lluart.c new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Static memory mapping for DEBUG_LL +* +* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. +* +* Licensed under GPLv2 or later. +*/ + +#include <linux/kernel.h> +#include <asm/page.h> +#include <asm/mach/map.h> +#include <mach/map.h> +#include <mach/uart.h> + +void __init sirfsoc_map_lluart (void ) +{ +struct map_desc sirfsoc_lluart_map = { + .virtual =SIRFSOC_UART1_VA_BASE , + .pfn =__phys_to_pfn (SIRFSOC_UART1_PA_BASE ), + .length =SIRFSOC_UART1_SIZE , + .type =MT_DEVICE , + }; + +iotable_init (&sirfsoc_lluart_map,1 ); +}
arch/arm/mach-prima2/prima2.c +1 -0
@@ -33,6 +33,7 @@ MACHINE_START(PRIMA2_EVB, "prima2cb")/* Maintainer: Barry Song <[email protected]> */ .boot_params = 0x00000100, .init_early = sirfsoc_of_clk_init, + .map_io = sirfsoc_map_lluart, .init_irq = sirfsoc_of_irq_init, .timer = &sirfsoc_timer, .init_machine = sirfsoc_mach_init,
Signature · 6 lines
1.7.1 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
PATCH v4 3/3 ARM: CSR: initializing L2 cache
In reply to Barry SongFrom: Rongjun Ying <[email protected]>
--- arch/arm/mach-prima2/Makefile | 1 + arch/arm/mach-prima2/l2x0.c | 59 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-prima2/l2x0.c
arch/arm/mach-prima2/Makefile +1 -0
@@ -4,3 +4,4 @@ obj-y += clock.o obj-y += rstc.o obj-y += prima2.o obj-$(CONFIG_DEBUG_LL) += lluart.o +obj-$(CONFIG_CACHE_L2X0) += l2x0.o
arch/arm/mach-prima2/l2x0.c new file +59 -0
59 lines not on this page · raw message
Signature · 6 lines
1.7.1 Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
In reply to Barry SongQuoted 8 lines · Barry Song
Changelogs:
-v4:
v3 got "Reviewed-by: Arnd Bergmann <[email protected]>" stopping the0xffffffffmadness forIO_SPACE_LIMITfix .map_io compiling issue in the 1st patch fixset_next_eventintimer.c
rename GPU, USB, multimedia and SATA nodes in DTS delete redundant 0x in DTS
Note that when you get a 'Reviewed-by', 'Acked-by' or 'Tested-by' reply to one of your mails, you should add that in the patch changelog below your own 'Signed-off-by' in order to document it for the future. This ususally still holds true when you make further changes, just not when rewriting major parts of the patch.
For the Signed-off-by list, that should normally include only the people that have handled the specific patch, it doesn't imply authorship. Having seven people listed as Signed-off-by seems a bit strange in this context, but there is no clear rule against it. I would probably use 'Acked-by' or plain 'Cc' in the changelog for some of the people, depending in what way they were involved.
At the least, you should have 'Signed-off-by' the person that wrote most of the code, followed by the person that sends the patch at the bottom of the list (as you did correctly).
Arnd
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
2011/7/7 Arnd Bergmann <[email protected]>:
Quoted 10 lines · Barry Song
Quoted 8 lines
Changelogs:
-v4:
v3 got "Reviewed-by: Arnd Bergmann <[email protected]>" stopping the0xffffffffmadness forIO_SPACE_LIMITfix .map_io compiling issue in the 1st patch fixset_next_eventintimer.c
rename GPU, USB, multimedia and SATA nodes in DTS delete redundant 0x in DTS
Quoted 5 lines
Note that when you get a 'Reviewed-by', 'Acked-by' or 'Tested-by' reply to one of your mails, you should add that in the patch changelog below your own 'Signed-off-by' in order to document it for the future. This ususally still holds true when you make further changes, just not when rewriting major parts of the patch.
i am sure i know reviewed-by/acked-by/tested-by should be added to the end. what make me confused here is you are also the maintainer who will merge these changes into arm-soc and finally make them pulled by linus. generically,you will get the last signed-off-by too. if i list "reviewed-by you", you might need to replace it by signed-off-by finally.
anyway, i'm really not sure whether i am understanding right about that :-)
Quoted 7 lines
For the Signed-off-by list, that should normally include only the people that have handled the specific patch, it doesn't imply authorship. Having seven people listed as Signed-off-by seems a bit strange in this context, but there is no clear rule against it. I would probably use 'Acked-by' or plain 'Cc' in the changelog for some of the people, depending in what way they were involved.
yes. i understand signed-off-by should only be given to people who make the essential code changes in the special patch and people who send or merge the special patch, but not the original author of the original source files. for the 1st patch which is the basic board support, in the long history of coding sirfprimaii, all the listed people have contributed codes. so i get the names of all of them shown. anyway, it is really too long....
Quoted 12 lines
At the least, you should have 'Signed-off-by' the person that wrote most of the code, followed by the person that sends the patch at the bottom of the list (as you did correctly).
? ? ? ?Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
Quoted 6 lines · Barry Song
Quoted 5 lines
Note that when you get a 'Reviewed-by', 'Acked-by' or 'Tested-by' reply to one of your mails, you should add that in the patch changelog below your own 'Signed-off-by' in order to document it for the future. This ususally still holds true when you make further changes, just not when rewriting major parts of the patch.
Quoted 7 lines
i am sure i know reviewed-by/acked-by/tested-by should be added to the end. what make me confused here is you are also the maintainer who will merge these changes into arm-soc and finally make them pulled by linus. generically,you will get the last signed-off-by too. if i list "reviewed-by you", you might need to replace it by signed-off-by finally.
anyway, i'm really not sure whether i am understanding right about that :-)
The point is mostly that I tend to pull in patches from git, so I don't add an explicit Signed-off-by to each patch. Also, the meaning of Reviewed-by is stronger than just pulling a git tree, it means that I looked at the code in much detail and am happy with the end result.
Simply pulling the patches can mean either that, or that I trust you enough that I didn't bother looking (and/or don't care about the quality).
Quoted 7 lines
Quoted 6 lines
For the Signed-off-by list, that should normally include only the people that have handled the specific patch, it doesn't imply authorship. Having seven people listed as Signed-off-by seems a bit strange in this context, but there is no clear rule against it. I would probably use 'Acked-by' or plain 'Cc' in the changelog for some of the people, depending in what way they were involved.
Quoted 8 lines
yes. i understand signed-off-by should only be given to people who make the essential code changes in the special patch and people who send or merge the special patch, but not the original author of the original source files. for the 1st patch which is the basic board support, in the long history of coding sirfprimaii, all the listed people have contributed codes. so i get the names of all of them shown. anyway, it is really too long....
Not a problem. I basically wanted to make sure you know the rules, and it seemed odd. It's probably ok to leave the list as it is.
Arnd
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
2011/7/7 Arnd Bergmann <[email protected]>:
Quoted 15 lines · Barry Song
Quoted 6 lines
Quoted 5 lines
Note that when you get a 'Reviewed-by', 'Acked-by' or 'Tested-by' reply to one of your mails, you should add that in the patch changelog below your own 'Signed-off-by' in order to document it for the future. This ususally still holds true when you make further changes, just not when rewriting major parts of the patch.
Quoted 7 lines
i am sure i know reviewed-by/acked-by/tested-by should be added to the end. what make me confused here is you are also the maintainer who will merge these changes into arm-soc and finally make them pulled by linus. generically,you will get the last signed-off-by too. if i list "reviewed-by you", you might need to replace it by signed-off-by finally.
anyway, i'm really not sure whether i am understanding right about that :-)
Quoted 4 lines
The point is mostly that I tend to pull in patches from git, so I don't add an explicit Signed-off-by to each patch. Also, the meaning of Reviewed-by is stronger than just pulling a git tree, it means that I looked at the code in much detail and am happy with the end result.
ok, i see, thank!
i will add your reviewed-by to change log in the tree which i will use to send pull request to you. we are building the opensource.csr.com website. and i will place CSR's kernel there and build a for-arnd branch. you can easily pull the for-arnd branch.
Quoted 25 lines
Simply pulling the patches can mean either that, or that I trust you enough that I didn't bother looking (and/or don't care about the quality).
Quoted 7 lines
Quoted 6 lines
For the Signed-off-by list, that should normally include only the people that have handled the specific patch, it doesn't imply authorship. Having seven people listed as Signed-off-by seems a bit strange in this context, but there is no clear rule against it. I would probably use 'Acked-by' or plain 'Cc' in the changelog for some of the people, depending in what way they were involved.
Quoted 8 lines
yes. i understand signed-off-by should only be given to people who make the essential code changes in the special patch and people who send or merge the special patch, but not the original author of the original source files. for the 1st patch which is the basic board support, in the long history of coding sirfprimaii, all the listed people have contributed codes. so i get the names of all of them shown. anyway, it is really too long....
Not a problem. I basically wanted to make sure you know the rules, and it seemed odd. It's probably ok to leave the list as it is.
? ? ? ?Arnd
v4 cover ARM: CSR: Adding CSR SiRFprimaII platform
Quoted 4 lines · Barry Song
i will add your reviewed-by to change log in the tree which i will use to send pull request to you. we are building the opensource.csr.com website. and i will place CSR's kernel there and build a for-arnd branch. you can easily pull the for-arnd branch.
Ok, sounds good.
If the web site takes too much time, I can also just take the patches. Right now there are only three of them anyway, so that's no problem.
Arnd