ARM: Xilinx: Adding Xilinx board support
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/4 ARM: Xilinx: Adding Xilinx board support
The 1st board support is minimal to get a system up and running on the Xilinx platform.
---
V2 Changes
Updates based on Russell King's comments
minor cleanups
cleaned up physical/virtual addresses in early i/o table
Updated based on Jamie Iles's comment
added clk_get_rate() function
now using platform_add_devices() from platform code
arch/arm/mach-xilinx/Kconfig | 14 +++++ arch/arm/mach-xilinx/Makefile | 6 ++ arch/arm/mach-xilinx/Makefile.boot | 3 + arch/arm/mach-xilinx/board_ep107.c | 82 ++++++++++++++++++++++++++ arch/arm/mach-xilinx/common.c | 113 ++++++++++++++++++++++++++++++++++++ arch/arm/mach-xilinx/common.h | 30 ++++++++++ 6 files changed, 248 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-xilinx/Kconfig create mode 100644 arch/arm/mach-xilinx/Makefile create mode 100644 arch/arm/mach-xilinx/Makefile.boot create mode 100644 arch/arm/mach-xilinx/board_ep107.c create mode 100644 arch/arm/mach-xilinx/common.c create mode 100644 arch/arm/mach-xilinx/common.h
arch/arm/mach-xilinx/Kconfig new file +14 -0
@@ -0,0 +1,14 @@ +if ARCH_XILINX + +choice + prompt "Board Selection" + default XILINX_EP107 + +config XILINX_EP107 + bool "Xilinx EP107 Board" + help + Select if you are using a Xilinx EP107 board. + +endchoice + +endif
arch/arm/mach-xilinx/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# +# Makefile for the linux kernel. +# + +# Common support +obj-y := common.o board_ep107.o
arch/arm/mach-xilinx/Makefile.boot new file +3 -0
@@ -0,0 +1,3 @@ + zreladdr-y := 0x00008000 +params_phys-y := 0x00000100 +initrd_phys-y := 0x00800000
arch/arm/mach-xilinx/board_ep107.c new file +82 -0
82 lines not on this page · raw message
arch/arm/mach-xilinx/common.c new file +113 -0
113 lines not on this page · raw message
arch/arm/mach-xilinx/common.h new file +30 -0
@@ -0,0 +1,30 @@ +/* arch/arm/mach-xilinx/common.h +* +* This file contains common function prototypes to avoid externs +* in the c files. +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_XILINX_COMMON_H__ +#define __MACH_XILINX_COMMON_H__ + +#include <linux/init.h> +#include <linux/platform_device.h> + +void __init system_init (void ); +void __init irq_init (void ); +void __init map_io (void ); + +extern struct sys_timer xttcpss_sys_timer; + +#endif
Signature · 5 lines
1.6.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
Quoted 11 lines · John Linn
+/*
arch/arm/mach-xilinx/board_ep107.c
+ *
+ * This file contains code specific to the Xilinx EP107 board.
+ *
+ * Copyright (C) 2011 Xilinx
+ *
+ * based on /arch/arm/mach-realview/core.c
+ *
+ * Copyright (C) 1999 - 2003 ARM Limited
+ * Copyright (C) 2000 Deep Blue Solutions Ltd
+ *
Quoted 8 lines
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You probably don't want to include this paragraph - their address keeps changing, so will require files to be constantly updated.
arch/arm/mach-xilinx/board_ep107.c line 27
Quoted 8 lines
+ */
arch/arm/mach-xilinx/board_ep107.c new file +7
-0+ +#include <linux/platform_device.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <mach/xilinx_soc.h> +#include <mach/irqs.h> +#include <linux/clkdev.h>
Please group linux/ includes together, then asm/ includes, lastly mach/ includes.
Quoted 2 lines
arch/arm/mach-xilinx/common.c new file +1
-0@@ -0,0 +1,113 @@ +/* arch/arm/mach-xilinx/common.c
...
arch/arm/mach-xilinx/common.c line 54
Quoted 6 lines
arch/arm/mach-xilinx/common.c new file +6
-0+/** +* system_init - System specific initialization, intended to be called from +* board specific initialization. +* +**/ +void __init system_init (void )
Is there a better name for this - maybe prefixing it with xilinx_ ?
Quoted 4 lines
arch/arm/mach-xilinx/common.c new file +4
-0+{ +#ifdef CONFIG_CACHE_L2X0 +/* +* 64KB way size, 8-way associativity, parity disabled
arch/arm/mach-xilinx/common.c line 68
Quoted 10 lines
arch/arm/mach-xilinx/common.c new file +10
-0+*/ +l2x0_init (PL310_L2CC_BASE ,0x02060000 ,0xF0F0FFFF ); +#endif +} + +/** +* irq_init - Interrupt controller initialization for the GIC. +* +**/ +void __init irq_init (void )
Ditto.
arch/arm/mach-xilinx/common.c line 110
Quoted 5 lines
arch/arm/mach-xilinx/common.c new file +5
-0+/** +* map_io - Create memory mappings needed for early I/O. +* +**/ +void __init map_io (void )
Ditto.
Quoted 5 lines
-----Original Message-----
From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
Sent: Saturday, February 12, 2011 5:13 AM
To: John Linn
Cc: linux-arm-kernel at lists.infradead.org;
linux-kernel at vger.kernel.org; catalin.marinas at arm.com;
Quoted 16 lines
glikely at secretlab.ca
Subject: Re: [PATCH V2 1/4] ARM: Xilinx: Adding Xilinx board supportQuoted 12 lines · John Linn
+/*
arch/arm/mach-xilinx/board_ep107.c
+ *
+ * This file contains code specific to the Xilinx EP107 board.
+ *
+ * Copyright (C) 2011 Xilinx
+ *
+ * based on /arch/arm/mach-realview/core.c
+ *
+ * Copyright (C) 1999 - 2003 ARM Limited
+ * Copyright (C) 2000 Deep Blue Solutions Ltd
+ *
+ * This program is free software; you can redistribute it and/or
modify
Quoted 1 line
Quoted 1 line
+ * it under the terms of the GNU General Public License as
published by
Quoted 1 line
Quoted 1 line
+ * the Free Software Foundation; either version 2 of the License,
or
Quoted 3 lines
Quoted 3 lines
+ * (at your option) any later version.
+ *
+ * You should have received a copy of the GNU General Public
License
Quoted 2 lines
Quoted 2 lines
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
Quoted 2 lines
You probably don't want to include this paragraph - their address
keeps
Quoted 1 line
changing, so will require files to be constantly updated.
Makes sense. Easy to fix.
Quoted 11 lines
arch/arm/mach-xilinx/board_ep107.c line 27
Quoted 9 lines
+ */
arch/arm/mach-xilinx/board_ep107.c new file +7
-0+ +#include <linux/platform_device.h> +#include <asm/mach-types.h> +#include <asm/mach/arch.h> +#include <mach/xilinx_soc.h> +#include <mach/irqs.h> +#include <linux/clkdev.h> Please group linux/ includes together, then asm/ includes, lastly
mach/
Quoted 7 lines
includes.
Quoted 2 lines
arch/arm/mach-xilinx/common.c new file +1
-0@@ -0,0 +1,113 @@ +/* arch/arm/mach-xilinx/common.c ...
Quoted 2 lines
+/**
+ *system_init- System specific initialization, intended to be
called from
Quoted 6 lines
Quoted 4 lines
+ * board specific initialization.
+ *
+ **/
+void__initsystem_init(void)Is there a better name for this - maybe prefixing it with
xilinx_?
Sure, that's easy.
Quoted 17 lines
Quoted 5 lines
arch/arm/mach-xilinx/common.c new file +4
-0+{ +#ifdef CONFIG_CACHE_L2X0 +/* +* 64KB way size, 8-way associativity, parity disabled arch/arm/mach-xilinx/common.c line 68
Quoted 10 lines
arch/arm/mach-xilinx/common.c new file +10
-0+*/ +l2x0_init (PL310_L2CC_BASE ,0x02060000 ,0xF0F0FFFF ); +#endif +} + +/** +* irq_init - Interrupt controller initialization for the GIC. +* +**/ +void __init irq_init (void )Ditto.
Same thing, easy.
Quoted 8 lines
arch/arm/mach-xilinx/common.c line 110
Quoted 6 lines
arch/arm/mach-xilinx/common.c new file +5
-0+/** +* map_io - Create memory mappings needed for early I/O. +* +**/ +void __init map_io (void )Ditto.
Yep.
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 2/4 ARM: Xilinx: Adding timer support to the platform
The timer driver supports the Xilinx PS Timer Counter IP.
---
V2 Changes
The timer code was changed quite a bit based on review inputs. It got much smaller and cleaner I think.
Updates based on Russell King's comments
minor cleanups for documentation comments removed the name from the timer structure removed interrupt for clock source
moved to using clock functions provided in the kernel
for calculating shift/mult values
removed PM code as generic handles it
Updated based on Jamie Iles's comment
cleaned up ENABLE_MASK which was confusing now using platform_add_devices() from platform code moved base_addr to void __iomem pointer removed stop of the event timer in one shot mode
arch/arm/mach-xilinx/Makefile | 2 +- arch/arm/mach-xilinx/timer.c | 301 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 302 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-xilinx/timer.c
arch/arm/mach-xilinx/Makefile +1 -1
@@ -3,4 +3,4 @@ # # Common support -obj-y := common.o board_ep107.o +obj-y := common.o board_ep107.o timer.o
arch/arm/mach-xilinx/timer.c new file +301 -0
301 lines not on this page · raw message
Signature · 5 lines
1.6.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 3/4 ARM: Xilinx: base header files and assembly macros
These are the minimum needed to build the kernel for the new platform.
---
V2 Changes
Updates based on Russell King's comments
moved to using entry-macro-gic.S
moved stuff from hardware.h to xilinx_soc.h added IOMEM() in io.h to help with typing Minor updates to IO_SPACE_LIMIT and __io() Updated addresses to be clear with seperate virtual
and physical addresses
arch/arm/mach-xilinx/include/mach/clkdev.h | 33 ++++++++++++++++ arch/arm/mach-xilinx/include/mach/debug-macro.S | 36 ++++++++++++++++++ arch/arm/mach-xilinx/include/mach/entry-macro.S | 29 ++++++++++++++ arch/arm/mach-xilinx/include/mach/hardware.h | 18 +++++++++ arch/arm/mach-xilinx/include/mach/io.h | 33 ++++++++++++++++ arch/arm/mach-xilinx/include/mach/irqs.h | 28 ++++++++++++++ arch/arm/mach-xilinx/include/mach/memory.h | 23 +++++++++++ arch/arm/mach-xilinx/include/mach/system.h | 28 ++++++++++++++ arch/arm/mach-xilinx/include/mach/timex.h | 24 ++++++++++++ arch/arm/mach-xilinx/include/mach/uart.h | 30 +++++++++++++++ arch/arm/mach-xilinx/include/mach/uncompress.h | 46 +++++++++++++++++++++++ arch/arm/mach-xilinx/include/mach/vmalloc.h | 20 ++++++++++ arch/arm/mach-xilinx/include/mach/xilinx_soc.h | 46 +++++++++++++++++++++++ 13 files changed, 394 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-xilinx/include/mach/clkdev.h create mode 100644 arch/arm/mach-xilinx/include/mach/debug-macro.S create mode 100644 arch/arm/mach-xilinx/include/mach/entry-macro.S create mode 100644 arch/arm/mach-xilinx/include/mach/hardware.h create mode 100644 arch/arm/mach-xilinx/include/mach/io.h create mode 100644 arch/arm/mach-xilinx/include/mach/irqs.h create mode 100644 arch/arm/mach-xilinx/include/mach/memory.h create mode 100644 arch/arm/mach-xilinx/include/mach/system.h create mode 100644 arch/arm/mach-xilinx/include/mach/timex.h create mode 100644 arch/arm/mach-xilinx/include/mach/uart.h create mode 100644 arch/arm/mach-xilinx/include/mach/uncompress.h create mode 100644 arch/arm/mach-xilinx/include/mach/vmalloc.h create mode 100644 arch/arm/mach-xilinx/include/mach/xilinx_soc.h
arch/arm/mach-xilinx/include/mach/clkdev.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* arch/arm/mach-xilinx/include/mach/clkdev.h +* +* Copyright (C) 2011 Xilinx, Inc. +* +* This software is licensed under the terms of the GNU General Public +* License version 2, as published by the Free Software Foundation, and +* may be copied, distributed, and modified under those terms. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +#ifndef __MACH_CLKDEV_H__ +#define __MACH_CLKDEV_H__ + +struct clk { +unsigned long rate; +}; + +static inline int __clk_get (struct clk *clk) +{ +return 1 ; +} + +static inline void __clk_put (struct clk *clk) +{ +} + +#endif
arch/arm/mach-xilinx/include/mach/debug-macro.S new file +36 -0
@@ -0,0 +1,36 @@ +/* arch/arm/mach-xilinx/include/mach/debug-macro.S + * + * Debugging macro include header + * + * Copyright (C) 2011 Xilinx + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include <mach/xilinx_soc.h> +#include <mach/uart.h> + + .macro addruart, rp, rv + ldr \rp, =LL_UART_PADDR @ physical + ldr \rv, =LL_UART_VADDR @ virtual + .endm + + .macro senduart,rd,rx + str \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA + .endm + + .macro waituart,rd,rx + .endm + + .macro busyuart,rd,rx +1002: ldr \rd, [\rx, #UART_SR_OFFSET] @ get status register + tst \rd, #UART_SR_TXFULL @ + bne 1002b @ wait if FIFO is full + .endm
arch/arm/mach-xilinx/include/mach/entry-macro.S new file +29 -0
@@ -0,0 +1,29 @@ +/* + * arch/arm/mach-xilinx/include/mach/entry-macro.S + * + * Low-level IRQ helper macros + * + * Copyright (C) 2011 Xilinx + * + * based on arch/plat-mxc/include/mach/entry-macro.S + * + * Copyright (C) 2007 Lennert Buytenhek <[email protected]> + * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#include <mach/hardware.h> +#include <asm/hardware/entry-macro-gic.S> + + .macro disable_fiq + .endm + + .macro arch_ret_to_user, tmp1, tmp2 + .endm
arch/arm/mach-xilinx/include/mach/hardware.h new file +18 -0
@@ -0,0 +1,18 @@ +/* arch/arm/mach-xilinx/include/mach/hardware.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_HARDWARE_H__ +#define __MACH_HARDWARE_H__ + +#endif
arch/arm/mach-xilinx/include/mach/io.h new file +33 -0
@@ -0,0 +1,33 @@ +/* arch/arm/mach-xilinx/include/mach/io.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_IO_H__ +#define __MACH_IO_H__ + +/* Allow IO space to be anywhere in the memory */ + +#define IO_SPACE_LIMIT 0xffff + +/* IO address mapping macros, nothing special at this time but required */ + +#ifdef __ASSEMBLER__ +#define IOMEM (x) (x) +#else +#define IOMEM (x) ((void __force __iomem *)(x)) +#endif + +#define __io (a) __typesafe_io(a) +#define __mem_pci (a) (a) + +#endif
arch/arm/mach-xilinx/include/mach/irqs.h new file +28 -0
@@ -0,0 +1,28 @@ +/* arch/arm/mach-xilinx/include/mach/irqs.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +#ifndef __MACH_IRQS_H +#define __MACH_IRQS_H + +#define ARCH_NR_GPIOS 118 +#define NR_IRQS (128 + ARCH_NR_GPIOS) + +/* +* GIC Interrupts +*/ + +#define IRQ_GIC_SPI_START 32 +#define IRQ_TIMERCOUNTER0 42 +#define IRQ_UART0 59 + +#endif
arch/arm/mach-xilinx/include/mach/memory.h new file +23 -0
@@ -0,0 +1,23 @@ +/* arch/arm/mach-xilinx/include/mach/memory.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_MEMORY_H__ +#define __MACH_MEMORY_H__ + +#include <mach/hardware.h> + +#define PHYS_OFFSET 0x0 +#define MEM_SIZE SZ_256M + +#endif
arch/arm/mach-xilinx/include/mach/system.h new file +28 -0
@@ -0,0 +1,28 @@ +/* arch/arm/mach-xilinx/include/mach/system.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_SYSTEM_H__ +#define __MACH_SYSTEM_H__ + +static inline void arch_idle (void ) +{ +cpu_do_idle (); +} + +static inline void arch_reset (char mode,const char *cmd) +{ +/* Add architecture specific reset processing here */ +} + +#endif
arch/arm/mach-xilinx/include/mach/timex.h new file +24 -0
@@ -0,0 +1,24 @@ +/* arch/arm/mach-xilinx/include/mach/timex.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_TIMEX_H__ +#define __MACH_TIMEX_H__ + +#include <mach/hardware.h> + +#define PERIPHERAL_CLOCK_RATE 2500000 + +#define CLOCK_TICK_RATE (PERIPHERAL_CLOCK_RATE / 32) + +#endif
arch/arm/mach-xilinx/include/mach/uart.h new file +30 -0
@@ -0,0 +1,30 @@ +/* arch/arm/mach-xilinx/include/mach/uart.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +#ifndef __MACH_UART_H__ +#define __MACH_UART_H__ + +#define UART_CR_OFFSET 0x00/* Control Register [8:0] */ +#define UART_SR_OFFSET 0x2C/* Channel Status [11:0] */ +#define UART_FIFO_OFFSET 0x30/* FIFO [15:0] or [7:0] */ + +#define UART_SR_TXFULL 0x00000010/* TX FIFO full */ +#define UART_SR_TXEMPTY 0x00000008/* TX FIFO empty */ + +#define UART_FIFO_WRITE (base, value) \ + (*(volatile unsigned int *)((base) + UART_FIFO_OFFSET) = (value)) + +#define UART_STATUS (base) \ + (*(volatile unsigned int *)((base) + UART_SR_OFFSET)) + +#endif
arch/arm/mach-xilinx/include/mach/uncompress.h new file +46 -0
46 lines not on this page · raw message
arch/arm/mach-xilinx/include/mach/vmalloc.h new file +20 -0
@@ -0,0 +1,20 @@ +/* arch/arm/mach-xilinx/include/mach/vmalloc.h +* +* Copyright (C) 2011 Xilinx +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef __MACH_VMALLOC_H__ +#define __MACH_VMALLOC_H__ + +#define VMALLOC_END 0xE0000000 + +#endif
arch/arm/mach-xilinx/include/mach/xilinx_soc.h new file +46 -0
46 lines not on this page · raw message
Signature · 5 lines
1.6.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
Re: [PATCH V2 3/4] ARM: Xilinx: base header files and assembly macros
arch/arm/mach-xilinx/include/mach/vmalloc.h line 18
Quoted 4 lines · John Linn
arch/arm/mach-xilinx/include/mach/vmalloc.h new file +4
-0+#ifndef __MACH_VMALLOC_H__ +#define __MACH_VMALLOC_H__ + +#define VMALLOC_END 0xE0000000
Should have a UL suffix on this.
RE: [PATCH V2 3/4] ARM: Xilinx: base header files and assemblymacros
Quoted 5 lines
-----Original Message-----
From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
Sent: Saturday, February 12, 2011 5:16 AM
To: John Linn
Cc: linux-arm-kernel at lists.infradead.org;
linux-kernel at vger.kernel.org; catalin.marinas at arm.com;
Quoted 2 lines
glikely at secretlab.ca
Subject: Re: [PATCH V2 3/4] ARM: Xilinx: base header files and
assemblymacros
Quoted 8 lines · John Linn
arch/arm/mach-xilinx/include/mach/vmalloc.h line 18
Quoted 4 lines
arch/arm/mach-xilinx/include/mach/vmalloc.h new file +4
-0+#ifndef __MACH_VMALLOC_H__ +#define __MACH_VMALLOC_H__ + +#define VMALLOC_END 0xE0000000Should have a UL suffix on this.
OK, easy to fix.
Thanks for another review Russell, appreciate your time and help.
-- John
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 4/4 ARM: Xilinx: Adding Xilinx platform infrastructure support
Minimum infrastructure to add the Xilinx machine and allow it to be selected in the build.
---
V2 Changes
Updates based on Russell King's comments
Cleanup of the Kconfig
Moved this patch to be last in the patch series
arch/arm/Kconfig | 13 +++++++++++++ arch/arm/Makefile | 1 + arch/arm/mm/Kconfig | 2 +- 3 files changed, 15 insertions(+), 1 deletions(-)
arch/arm/Kconfig +13 -0
@@ -875,6 +875,17 @@ config PLAT_SPEAR help Support for ST's SPEAr platform (SPEAr3xx, SPEAr6xx and SPEAr13xx). +config ARCH_XILINX + bool "Xilinx ARM Cortex A9 Based FPGA" + select CPU_V7 + select GENERIC_TIME + select GENERIC_CLOCKEVENTS + select CLKDEV_LOOKUP + select ARM_GIC + select ARM_AMBA + help + Support for Xilinx ARM Cortex A9 Based FPGA + endchoice #
@@ -1009,6 +1020,8 @@ source "arch/arm/mach-vexpress/Kconfig" source "arch/arm/mach-w90x900/Kconfig" +source "arch/arm/mach-xilinx/Kconfig" + # Definitions to make life easier config ARCH_ACORN bool
arch/arm/Makefile +1 -0
@@ -197,6 +197,7 @@ machine-$(CONFIG_MACH_SPEAR300) := spear3xx machine-$(CONFIG_MACH_SPEAR310) := spear3xx machine-$(CONFIG_MACH_SPEAR320) := spear3xx machine-$(CONFIG_MACH_SPEAR600) := spear6xx +machine-$(CONFIG_ARCH_XILINX) := xilinx # Platform directory name. This list is sorted alphanumerically # by CONFIG_* macro name.
arch/arm/mm/Kconfig +1 -1
@@ -813,7 +813,7 @@ config CACHE_L2X0 depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \ ARCH_NOMADIK || ARCH_OMAP4 || ARCH_S5PV310 || ARCH_TEGRA || \ - ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE + ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE || ARCH_XILINX default y select OUTER_CACHE select OUTER_CACHE_SYNC
Signature · 5 lines
1.6.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.