-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: socfpga: initial support for Altera's SOCFPGA platform
Adding core definitions for Altera's SOCFPGA ARM platform. Mininum support for Altera's SOCFPGA Cyclone 5 hardware. Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Reviewed-by: Pavel Machek <pavel@denx.de> Reviewed-by: Rob Herring <rob.herring@calxeda.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
- Loading branch information
Dinh Nguyen
authored and
Arnd Bergmann
committed
Jul 19, 2012
1 parent
31a985f
commit 6631422
Showing
16 changed files
with
460 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
/* | ||
* Copyright (C) 2012 Altera <www.altera.com> | ||
* | ||
* 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. | ||
* | ||
* 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. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/include/ "skeleton.dtsi" | ||
|
||
/ { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
aliases { | ||
ethernet0 = &gmac0; | ||
serial0 = &uart0; | ||
serial1 = &uart1; | ||
}; | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cpu@0 { | ||
compatible = "arm,cortex-a9"; | ||
device_type = "cpu"; | ||
reg = <0>; | ||
next-level-cache = <&L2>; | ||
}; | ||
cpu@1 { | ||
compatible = "arm,cortex-a9"; | ||
device_type = "cpu"; | ||
reg = <1>; | ||
next-level-cache = <&L2>; | ||
}; | ||
}; | ||
|
||
intc: intc@fffed000 { | ||
compatible = "arm,cortex-a9-gic"; | ||
#interrupt-cells = <3>; | ||
interrupt-controller; | ||
reg = <0xfffed000 0x1000>, | ||
<0xfffec100 0x100>; | ||
}; | ||
|
||
soc { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "simple-bus"; | ||
device_type = "soc"; | ||
interrupt-parent = <&intc>; | ||
ranges; | ||
|
||
amba { | ||
compatible = "arm,amba-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges; | ||
|
||
pdma: pdma@ffe01000 { | ||
compatible = "arm,pl330", "arm,primecell"; | ||
reg = <0xffe01000 0x1000>; | ||
interrupts = <0 180 4>; | ||
}; | ||
}; | ||
|
||
gmac0: stmmac@ff700000 { | ||
compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; | ||
reg = <0xff700000 0x2000>; | ||
interrupts = <0 115 4>; | ||
interrupt-names = "macirq"; | ||
mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ | ||
phy-mode = "gmii"; | ||
}; | ||
|
||
L2: l2-cache@fffef000 { | ||
compatible = "arm,pl310-cache"; | ||
reg = <0xfffef000 0x1000>; | ||
interrupts = <0 38 0x04>; | ||
cache-unified; | ||
cache-level = <2>; | ||
}; | ||
|
||
/* Local timer */ | ||
timer@fffec600 { | ||
compatible = "arm,cortex-a9-twd-timer"; | ||
reg = <0xfffec600 0x100>; | ||
interrupts = <1 13 0xf04>; | ||
}; | ||
|
||
timer0: timer@ffc08000 { | ||
compatible = "snps,dw-apb-timer-sp"; | ||
interrupts = <0 167 4>; | ||
clock-frequency = <200000000>; | ||
reg = <0xffc08000 0x1000>; | ||
}; | ||
|
||
timer1: timer@ffc09000 { | ||
compatible = "snps,dw-apb-timer-sp"; | ||
interrupts = <0 168 4>; | ||
clock-frequency = <200000000>; | ||
reg = <0xffc09000 0x1000>; | ||
}; | ||
|
||
timer2: timer@ffd00000 { | ||
compatible = "snps,dw-apb-timer-osc"; | ||
interrupts = <0 169 4>; | ||
clock-frequency = <200000000>; | ||
reg = <0xffd00000 0x1000>; | ||
}; | ||
|
||
timer3: timer@ffd01000 { | ||
compatible = "snps,dw-apb-timer-osc"; | ||
interrupts = <0 170 4>; | ||
clock-frequency = <200000000>; | ||
reg = <0xffd01000 0x1000>; | ||
}; | ||
|
||
uart0: uart@ffc02000 { | ||
compatible = "snps,dw-apb-uart"; | ||
reg = <0xffc02000 0x1000>; | ||
clock-frequency = <7372800>; | ||
interrupts = <0 162 4>; | ||
reg-shift = <2>; | ||
reg-io-width = <4>; | ||
}; | ||
|
||
uart1: uart@ffc03000 { | ||
compatible = "snps,dw-apb-uart"; | ||
reg = <0xffc03000 0x1000>; | ||
clock-frequency = <7372800>; | ||
interrupts = <0 163 4>; | ||
reg-shift = <2>; | ||
reg-io-width = <4>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 2012 Altera Corporation <www.altera.com> | ||
* | ||
* 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. | ||
* | ||
* 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. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/dts-v1/; | ||
/include/ "socfpga.dtsi" | ||
|
||
/ { | ||
model = "Altera SOCFPGA Cyclone V"; | ||
compatible = "altr,socfpga-cyclone5"; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,57600"; | ||
}; | ||
|
||
memory { | ||
name = "memory"; | ||
device_type = "memory"; | ||
reg = <0x0 0x10000000>; /* 256MB */ | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
CONFIG_EXPERIMENTAL=y | ||
CONFIG_SYSVIPC=y | ||
CONFIG_IKCONFIG=y | ||
CONFIG_IKCONFIG_PROC=y | ||
CONFIG_LOG_BUF_SHIFT=14 | ||
CONFIG_CGROUPS=y | ||
CONFIG_CPUSETS=y | ||
CONFIG_NAMESPACES=y | ||
CONFIG_EMBEDDED=y | ||
CONFIG_PROFILING=y | ||
CONFIG_OPROFILE=y | ||
CONFIG_MODULES=y | ||
CONFIG_MODULE_UNLOAD=y | ||
# CONFIG_LBDAF is not set | ||
# CONFIG_BLK_DEV_BSG is not set | ||
# CONFIG_IOSCHED_DEADLINE is not set | ||
# CONFIG_IOSCHED_CFQ is not set | ||
CONFIG_ARCH_SOCFPGA=y | ||
CONFIG_MACH_SOCFPGA_CYCLONE5=y | ||
CONFIG_ARM_THUMBEE=y | ||
# CONFIG_CACHE_L2X0 is not set | ||
CONFIG_HIGH_RES_TIMERS=y | ||
CONFIG_VMSPLIT_2G=y | ||
CONFIG_NR_CPUS=2 | ||
CONFIG_AEABI=y | ||
CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
CONFIG_ZBOOT_ROM_BSS=0x0 | ||
CONFIG_CMDLINE="" | ||
CONFIG_VFP=y | ||
CONFIG_NEON=y | ||
CONFIG_NET=y | ||
CONFIG_PACKET=y | ||
CONFIG_UNIX=y | ||
CONFIG_NET_KEY=y | ||
CONFIG_NET_KEY_MIGRATE=y | ||
CONFIG_INET=y | ||
CONFIG_IP_MULTICAST=y | ||
CONFIG_IP_PNP=y | ||
CONFIG_IP_PNP_DHCP=y | ||
CONFIG_IP_PNP_BOOTP=y | ||
CONFIG_IP_PNP_RARP=y | ||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
CONFIG_DEVTMPFS=y | ||
CONFIG_PROC_DEVICETREE=y | ||
CONFIG_BLK_DEV_RAM=y | ||
CONFIG_BLK_DEV_RAM_COUNT=2 | ||
CONFIG_BLK_DEV_RAM_SIZE=8192 | ||
CONFIG_SCSI=y | ||
# CONFIG_SCSI_PROC_FS is not set | ||
CONFIG_BLK_DEV_SD=y | ||
# CONFIG_SCSI_LOWLEVEL is not set | ||
CONFIG_NETDEVICES=y | ||
CONFIG_STMMAC_ETH=y | ||
# CONFIG_STMMAC_PHY_ID_ZERO_WORKAROUND is not set | ||
CONFIG_INPUT_EVDEV=y | ||
# CONFIG_SERIO_SERPORT is not set | ||
CONFIG_SERIO_AMBAKMI=y | ||
CONFIG_LEGACY_PTY_COUNT=16 | ||
CONFIG_SERIAL_8250=y | ||
CONFIG_SERIAL_8250_CONSOLE=y | ||
CONFIG_SERIAL_8250_NR_UARTS=2 | ||
CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
CONFIG_SERIAL_8250_DW=y | ||
# CONFIG_RTC_HCTOSYS is not set | ||
CONFIG_EXT2_FS=y | ||
CONFIG_EXT2_FS_XATTR=y | ||
CONFIG_EXT2_FS_POSIX_ACL=y | ||
# CONFIG_DNOTIFY is not set | ||
# CONFIG_INOTIFY_USER is not set | ||
CONFIG_VFAT_FS=y | ||
CONFIG_NTFS_FS=y | ||
CONFIG_NTFS_RW=y | ||
CONFIG_TMPFS=y | ||
CONFIG_JFFS2_FS=y | ||
CONFIG_NLS_CODEPAGE_437=y | ||
CONFIG_NLS_ISO8859_1=y | ||
CONFIG_MAGIC_SYSRQ=y | ||
CONFIG_DETECT_HUNG_TASK=y | ||
# CONFIG_SCHED_DEBUG is not set | ||
CONFIG_DEBUG_INFO=y | ||
CONFIG_ENABLE_DEFAULT_TRACERS=y | ||
CONFIG_DEBUG_USER=y | ||
CONFIG_XZ_DEC=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Makefile for the linux kernel. | ||
# | ||
|
||
obj-y := socfpga.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
zreladdr-y := 0x00008000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (C) 1994-1999 Russell King | ||
* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
.macro addruart, rp, rv, tmp | ||
mov \rp, #DEBUG_LL_UART_OFFSET | ||
orr \rp, \rp, #0x00c00000 | ||
orr \rv, \rp, #0xfe000000 @ virtual base | ||
orr \rp, \rp, #0xff000000 @ physical base | ||
.endm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (C) 2003 ARM Limited | ||
* | ||
* 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. | ||
* | ||
* 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. | ||
* | ||
* 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 | ||
*/ | ||
|
||
#define CLOCK_TICK_RATE (50000000 / 16) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef __MACH_UNCOMPRESS_H | ||
#define __MACH_UNCOMPRESS_H | ||
|
||
#define putc(c) | ||
#define flush() | ||
#define arch_decomp_setup() | ||
#define arch_decomp_wdog() | ||
|
||
#endif |
Oops, something went wrong.