summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDalon Westergreen <dwesterg@gmail.com>2015-11-11 21:00:23 -0800
committerDalon Westergreen <dwesterg@gmail.com>2015-11-11 21:00:23 -0800
commit4f24424167aa4d382e2cff17a6fcdcf0680b89d2 (patch)
treedd202cb2e51d0814ac496823bd68656ca5dcdf70
parentb3460975c6d4926725129c3fc534ad26a0396e6a (diff)
downloadmeta-altera-4f24424167aa4d382e2cff17a6fcdcf0680b89d2.tar.gz
Update linux-altera kernel recipes
-rw-r--r--conf/machine/arria5.conf7
-rw-r--r--conf/machine/cyclone5.conf7
-rw-r--r--recipes-kernel/linux/config/socfpga-base/bsp/arria10-standard.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/bsp/arria5-standard.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/bsp/cyclone5-standard.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/bsp/include/cyclone5_arria5_arria10.scc8
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/blk.cfg5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/fs.cfg31
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/leds.cfg6
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/mtd.cfg6
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/net.cfg34
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/rtc.cfg6
-rw-r--r--recipes-kernel/linux/config/socfpga-base/cfg/usb.cfg7
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.cfg40
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.cfg3
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/board-common.cfg27
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/board-common.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-arm.cfg13
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.cfg111
-rw-r--r--recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.scc5
-rw-r--r--recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.cfg128
-rw-r--r--recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.scc10
-rw-r--r--recipes-kernel/linux/linux-altera-configs.inc5
-rw-r--r--recipes-kernel/linux/linux-altera-latest.inc5
-rw-r--r--recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb10
-rw-r--r--recipes-kernel/linux/linux-altera-ltsi.inc5
-rw-r--r--recipes-kernel/linux/linux-altera-ltsi_3.10.bb8
-rw-r--r--recipes-kernel/linux/linux-altera.inc116
-rw-r--r--recipes-kernel/linux/linux-altera_3.15.bb6
-rw-r--r--recipes-kernel/linux/linux-altera_4.0.bb2
-rw-r--r--recipes-kernel/linux/linux-altera_4.1.bb2
-rw-r--r--recipes-kernel/linux/linux-altera_4.2.bb2
34 files changed, 517 insertions, 128 deletions
diff --git a/conf/machine/arria5.conf b/conf/machine/arria5.conf
index e94d3df..b92b84a 100644
--- a/conf/machine/arria5.conf
+++ b/conf/machine/arria5.conf
@@ -9,3 +9,10 @@ UBOOT_MACHINE = "socfpga_arria5"
9 9
10KMACHINE = "arria5" 10KMACHINE = "arria5"
11 11
12if [ "${KERNEL_PROVIDER}" == "linux-altera-ltsi" ]; then
13 KERNEL_DEVICETREE ?= "socfpga_arria5.dtb"
14elif [ "${KERNEL_PROVIDER}" == "linux-altera-ltsi-rt" ]; then
15 KERNEL_DEVICETREE ?= "socfpga_arria5.dtb"
16else
17 KERNEL_DEVICETREE ?= "socfpga_arria5_socdk.dtb"
18fi
diff --git a/conf/machine/cyclone5.conf b/conf/machine/cyclone5.conf
index d8f419a..0e9620a 100644
--- a/conf/machine/cyclone5.conf
+++ b/conf/machine/cyclone5.conf
@@ -9,4 +9,11 @@ UBOOT_MACHINE = "socfpga_cyclone5"
9 9
10KMACHINE = "cyclone5" 10KMACHINE = "cyclone5"
11 11
12if [ "${KERNEL_PROVIDER}" == "linux-altera-ltsi" ]; then
13 KERNEL_DEVICETREE ?= "socfpga_cyclone5.dtb"
14elif [ "${KERNEL_PROVIDER}" == "linux-altera-ltsi-rt" ]; then
15 KERNEL_DEVICETREE ?= "socfpga_cyclone5.dtb"
16else
17 KERNEL_DEVICETREE ?= "socfpga_cyclone5_socdk.dtb socfpga_cyclone5_sockit.dtb socfpga_cyclone5_socrates.dtb"
18fi
12 19
diff --git a/recipes-kernel/linux/config/socfpga-base/bsp/arria10-standard.scc b/recipes-kernel/linux/config/socfpga-base/bsp/arria10-standard.scc
new file mode 100644
index 0000000..f768b01
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/bsp/arria10-standard.scc
@@ -0,0 +1,5 @@
1define KMACHINE arria10
2define KTYPE standard
3define KARCH arm
4
5include bsp/include/cyclone5_arria5_arria10.scc
diff --git a/recipes-kernel/linux/config/socfpga-base/bsp/arria5-standard.scc b/recipes-kernel/linux/config/socfpga-base/bsp/arria5-standard.scc
new file mode 100644
index 0000000..f263369
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/bsp/arria5-standard.scc
@@ -0,0 +1,5 @@
1define KMACHINE arria5
2define KTYPE standard
3define KARCH arm
4
5include bsp/include/cyclone5_arria5_arria10.scc
diff --git a/recipes-kernel/linux/config/socfpga-base/bsp/cyclone5-standard.scc b/recipes-kernel/linux/config/socfpga-base/bsp/cyclone5-standard.scc
new file mode 100644
index 0000000..e9f98eb
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/bsp/cyclone5-standard.scc
@@ -0,0 +1,5 @@
1define KMACHINE cyclone5
2define KTYPE standard
3define KARCH arm
4
5include bsp/include/cyclone5_arria5_arria10.scc
diff --git a/recipes-kernel/linux/config/socfpga-base/bsp/include/cyclone5_arria5_arria10.scc b/recipes-kernel/linux/config/socfpga-base/bsp/include/cyclone5_arria5_arria10.scc
new file mode 100644
index 0000000..5f37d3c
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/bsp/include/cyclone5_arria5_arria10.scc
@@ -0,0 +1,8 @@
1include ktypes/standard/standard.scc
2
3include features/altera/cyclone5_arria5-ip.scc
4include features/altera/arria10-ip.scc
5include features/altera/altera-ip.scc
6include features/altera/board-common.scc
7kconfig hardware features/altera/cyclone5_arria5-arm.cfg
8
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/blk.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/blk.cfg
new file mode 100644
index 0000000..d7f07a7
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/blk.cfg
@@ -0,0 +1,5 @@
1CONFIG_BLK_DEV_SD=y
2CONFIG_BLK_DEV_INITRD=y
3CONFIG_BLK_DEV_LOOP=y
4CONFIG_BLK_DEV_RAM=y
5CONFIG_BLK_DEV_RAM_SIZE=16384
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/fs.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/fs.cfg
new file mode 100644
index 0000000..feb8761
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/fs.cfg
@@ -0,0 +1,31 @@
1
2CONFIG_VFAT_FS=y
3CONFIG_FAT_FS=y
4CONFIG_FAT_DEFAULT_CODEPAGE=437
5CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
6
7CONFIG_NTFS_FS=y
8CONFIG_NTFS_RW=y
9
10
11CONFIG_EXT2_FS=y
12CONFIG_EXT2_FS_XATTR=y
13CONFIG_EXT2_FS_POSIX_ACL=y
14CONFIG_JFFS2_FS=y
15CONFIG_JFFS2_SUMMARY=y
16
17CONFIG_EXT3_FS=y
18CONFIG_EXT4_FS=y
19
20CONFIG_NFS_FS=y
21CONFIG_ROOT_NFS=y
22CONFIG_NFS_V4=y
23CONFIG_NFS_USE_KERNEL_DNS=y
24CONFIG_SUNRPC_GSS=y
25
26CONFIG_TMPFS=y
27
28CONFIG_DEVTMPFS=y
29CONFIG_DEVTMPFS_MOUNT=y
30CONFIG_CONFIGFS_FS=y
31
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/leds.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/leds.cfg
new file mode 100644
index 0000000..93d1f7e
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/leds.cfg
@@ -0,0 +1,6 @@
1CONFIG_NEW_LEDS=y
2CONFIG_LEDS_CLASS=y
3CONFIG_LEDS_GPIO=y
4CONFIG_LEDS_TRIGGERS=y
5CONFIG_LEDS_TRIGGER_TIMER=y
6CONFIG_LEDS_TRIGGER_CPU=y
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/mtd.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/mtd.cfg
new file mode 100644
index 0000000..05e6f2a
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/mtd.cfg
@@ -0,0 +1,6 @@
1CONFIG_MTD=y
2CONFIG_MTD_CMDLINE_PARTS=y
3CONFIG_MTD_BLOCK=y
4CONFIG_MTD_PHYSMAP=y
5CONFIG_MTD_PHYSMAP_OF=y
6CONFIG_MTD_NAND=y
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/net.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/net.cfg
new file mode 100644
index 0000000..8d27c8d
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/net.cfg
@@ -0,0 +1,34 @@
1CONFIG_NET=y
2CONFIG_PACKET=y
3CONFIG_UNIX=y
4CONFIG_INET=y
5CONFIG_IP_MULTICAST=y
6CONFIG_IP_PNP=y
7CONFIG_IP_PNP_DHCP=y
8CONFIG_IP_PNP_BOOTP=y
9CONFIG_IP_PNP_RARP=y
10CONFIG_NET_IPIP=m
11CONFIG_VLAN_8021Q=m
12CONFIG_XFRM_ALGO=y
13CONFIG_XFRM_MIGRATE=y
14CONFIG_NET_KEY=y
15CONFIG_NET_KEY_MIGRATE=y
16CONFIG_NET_IP_TUNNEL=y
17CONFIG_INET_TUNNEL=y
18
19CONFIG_IPV6=y
20CONFIG_INET6_XFRM_MODE_TRANSPORT=y
21CONFIG_INET6_XFRM_MODE_TUNNEL=y
22CONFIG_INET6_XFRM_MODE_BEET=y
23CONFIG_IPV6_SIT=y
24
25CONFIG_NETWORK_PHY_TIMESTAMPING=y
26
27CONFIG_STP=y
28CONFIG_GARP=y
29CONFIG_VLAN_8021Q=y
30CONFIG_VLAN_8021Q_GVRP=y
31CONFIG_LLC=y
32CONFIG_DNS_RESOLVER=y
33
34CONFIG_NETDEVICES=y
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/rtc.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/rtc.cfg
new file mode 100644
index 0000000..9e11f40
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/rtc.cfg
@@ -0,0 +1,6 @@
1CONFIG_RTC_CLASS=y
2CONFIG_RTC_SYSTOHC=y
3CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
4CONFIG_RTC_INTF_SYSFS=y
5CONFIG_RTC_INTF_PROC=y
6CONFIG_RTC_INTF_DEV=y
diff --git a/recipes-kernel/linux/config/socfpga-base/cfg/usb.cfg b/recipes-kernel/linux/config/socfpga-base/cfg/usb.cfg
new file mode 100644
index 0000000..112a280
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/cfg/usb.cfg
@@ -0,0 +1,7 @@
1CONFIG_USB_STORAGE=y
2CONFIG_USB_GADGET=y
3CONFIG_USB_GADGET_VBUS_DRAW=2
4CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
5CONFIG_USB_LIBCOMPOSITE=m
6CONFIG_USB_MASS_STORAGE=m
7CONFIG_USB_ZERO=m
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.cfg b/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.cfg
new file mode 100644
index 0000000..c16f049
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.cfg
@@ -0,0 +1,40 @@
1
2# Serial/UART
3CONFIG_SERIAL_ALTERA_JTAGUART=m
4CONFIG_SERIAL_ALTERA_UART=m
5CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4
6CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200
7
8# Watchdog
9CONFIG_WATCHDOG=y
10
11# Ethernet
12CONFIG_ALTERA_TSE=m
13
14# GPIO
15CONFIG_GPIOLIB=y
16CONFIG_OF_GPIO=y
17CONFIG_GPIO_SYSFS=y
18CONFIG_GPIO_ALTERA=m
19
20# SPI
21CONFIG_SPI=y
22CONFIG_SPI_ALTERA=m
23CONFIG_SPI_BITBANG=m
24
25# Video
26CONFIG_FB=y
27CONFIG_FB_CFB_FILLRECT=m
28CONFIG_FB_CFB_COPYAREA=m
29CONFIG_FB_CFB_IMAGEBLIT=m
30CONFIG_FB_ALTERA_VIP=m
31
32# Mailbox
33CONFIG_MAILBOX=y
34CONFIG_ALTERA_MBOX=m
35
36# Misc
37CONFIG_ALTERA_HWMUTEX=m
38CONFIG_ALTERA_SYSID=m
39CONFIG_ALTERA_ILC=m
40
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.scc b/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.scc
new file mode 100644
index 0000000..42ae19c
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/altera-ip.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Altera Soft IP Core Drivers/Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware altera-ip.cfg
5
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.cfg b/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.cfg
new file mode 100644
index 0000000..5f9fecb
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.cfg
@@ -0,0 +1,3 @@
1CONFIG_FPGA_MGR_SOCFPGA_A10=y
2CONFIG_GPIO_A10SYCON=y
3CONFIG_SENSORS_A10SYCON=y
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.scc b/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.scc
new file mode 100644
index 0000000..0e82bfa
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/arria10-ip.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Altera 20nm SoC IP Core Drivers/Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware arria10-ip.cfg
5
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.cfg b/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.cfg
new file mode 100644
index 0000000..c5a989d
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.cfg
@@ -0,0 +1,27 @@
1# Ethernet PHYs
2CONFIG_PHYLIB=y
3CONFIG_MARVELL_PHY=y
4CONFIG_MICREL_PHY=y
5
6# EEPROM
7CONFIG_EEPROM_AT24=y
8
9# MTD
10CONFIG_MTD=y
11CONFIG_MTD_OF_PARTS=y
12
13# RTC drivers
14CONFIG_RTC_DRV_DS1307=y
15
16CONFIG_NEWHAVEN_LCD=y
17
18CONFIG_PMBUS=y
19CONFIG_SENSORS_LTC2978=y
20
21CONFIG_MTD_M25P80=y
22CONFIG_M25PXX_USE_FAST_READ=y
23
24CONFIG_SENSORS_MAX1619=y
25
26CONFIG_I2C_CHARDEV=y
27CONFIG_SPI_SPIDEV=y
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.scc b/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.scc
new file mode 100644
index 0000000..15d070c
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/board-common.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Evaluation Board Common Drivers"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware board-common.cfg
5
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-arm.cfg b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-arm.cfg
new file mode 100644
index 0000000..50ddab8
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-arm.cfg
@@ -0,0 +1,13 @@
1# ARM
2CONFIG_ARCH_SOCFPGA=y
3CONFIG_ARM_THUMBEE=y
4CONFIG_SWP_EMULATE=y
5CONFIG_ARM_CPU_TOPOLOGY=y
6
7CONFIG_VFP=y
8CONFIG_VFPv3=y
9CONFIG_NEON=y
10
11CONFIG_AEABI=y
12CONFIG_OABI_COMPAT=y
13
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.cfg b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.cfg
new file mode 100644
index 0000000..e7ee368
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.cfg
@@ -0,0 +1,111 @@
1# FPGA BRIDGE - done
2CONFIG_FPGA_BRIDGE=y
3CONFIG_ALTERA_SOCFPGA_BRIDGE=y
4
5# FPGA MANAGER - done
6CONFIG_FPGA=y
7CONFIG_FPGA_MGR_ALTERA=y
8
9
10# UART - done
11CONFIG_SERIAL_8250=y
12CONFIG_SERIAL_8250_CONSOLE=y
13CONFIG_SERIAL_8250_NR_UARTS=2
14CONFIG_SERIAL_8250_RUNTIME_UARTS=2
15CONFIG_SERIAL_8250_DW=y
16CONFIG_SERIAL_CORE=y
17CONFIG_SERIAL_CORE_CONSOLE=y
18CONFIG_CONSOLE_POLL=y
19
20# SPI
21CONFIG_SPI=y
22CONFIG_SPI_CADENCE_QSPI=y
23CONFIG_SPI_DESIGNWARE=y
24CONFIG_SPI_DW_MMIO=y
25
26# SRAM
27CONFIG_SRAM=y
28
29# DMA - done
30# CONFIG_DMADEVICES=y
31# CONFIG_PL330_DMA=y
32
33# PL310 - done
34CONFIG_OUTER_CACHE=y
35CONFIG_OUTER_CACHE_SYNC=y
36CONFIG_CACHE_L2X0=y
37CONFIG_CACHE_PL310=y
38
39# Watchdog - done
40CONFIG_WATCHDOG=y
41CONFIG_DW_WATCHDOG=y
42
43# Ethernet - done
44CONFIG_NET_VENDOR_STMICRO=y
45CONFIG_STMMAC_ETH=y
46CONFIG_STMMAC_PLATFORM=y
47CONFIG_STMMAC_DEBUG_FS=y
48CONFIG_STMMAC_RING=y
49CONFIG_FIXED_PHY=y
50
51# GPIO - done
52CONFIG_GPIO_SYSFS=y
53CONFIG_GPIOLIB=y
54CONFIG_OF_GPIO=y
55CONFIG_GPIO_GENERIC=y
56CONFIG_GPIO_DWAPB=y
57
58# I2C - done
59CONFIG_I2C=y
60CONFIG_I2C_DESIGNWARE_CORE=y
61CONFIG_I2C_DESIGNWARE_PLATFORM=y
62
63# CAN - done
64CONFIG_CAN=y
65CONFIG_CAN_C_CAN=y
66CONFIG_CAN_C_CAN_PLATFORM=y
67
68# MMC/SD - done
69CONFIG_MMC=y
70CONFIG_MMC_DW=y
71CONFIG_MMC_DW_IDMAC=y
72CONFIG_MMC_DW_PLTFM=y
73CONFIG_MMC_DW_SOCFPGA=y
74
75# NAND - done
76CONFIG_MTD_NAND=y
77CONFIG_MTD_NAND_ECC=y
78CONFIG_MTD_NAND_DENALI=y
79CONFIG_MTD_NAND_DENALI_DT=y
80CONFIG_MTD_NAND_IDS=y
81
82# USB (+otg) - done
83CONFIG_USB_SUPPORT=y
84CONFIG_USB_COMMON=y
85CONFIG_USB_ARCH_HAS_HCD=y
86CONFIG_USB=y
87CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
88CONFIG_USB_DEFAULT_PERSIST=y
89CONFIG_USB_DWC2_PLATFORM=y
90CONFIG_USB_DWC2=y
91CONFIG_USB_DWC2_DUAL_ROLE=y
92CONFIG_USB_PHY=y
93CONFIG_NOP_USB_XCEIV=y
94
95
96# Timer
97
98# SERIAL
99CONFIG_SERIAL=y
100CONFIG_SERIAL_CONSOLE=y
101CONFIG_SERIAL_8250=y
102CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
103CONFIG_SERIAL_8250_CONSOLE=y
104CONFIG_SERIAL_8250_DMA=y
105CONFIG_SERIAL_8250_NR_UARTS=2
106CONFIG_SERIAL_8250_RUNTIME_UARTS=2
107
108# CAN - done
109CONFIG_CAN=y
110CONFIG_CAN_C_CAN=y
111CONFIG_CAN_C_CAN_PLATFORM=y
diff --git a/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.scc b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.scc
new file mode 100644
index 0000000..ce889cc
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/features/altera/cyclone5_arria5-ip.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Altera 28nm SoC IP Core Drivers/Support"
2define KFEATURE_COMPATIBILITY board
3
4kconfig hardware cyclone5_arria5-ip.cfg
5
diff --git a/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.cfg b/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.cfg
new file mode 100644
index 0000000..6fd3094
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.cfg
@@ -0,0 +1,128 @@
1CONFIG_PRINTK=y
2CONFIG_EARLY_PRINTK=y
3CONFIG_LOG_BUF_SHIFT=14
4
5CONFIG_SYSVIPC=y
6CONFIG_SYSCTL_SYSCALL=y
7
8CONFIG_FHANDLE=y
9
10CONFIG_PREEMPT_NONE=y
11
12CONFIG_AUDIT=y
13
14CONFIG_IKCONFIG=y
15CONFIG_IKCONFIG_PROC=y
16
17CONFIG_EMBEDDED=y
18CONFIG_HIGH_RES_TIMERS=y
19CONFIG_PERF_EVENTS=y
20CONFIG_SLAB=y
21CONFIG_SWAP=y
22CONFIG_TIMER_STATS=y
23CONFIG_RCU_CPU_STALL_TIMEOUT=60
24
25CONFIG_CPUSETS=y
26CONFIG_PROC_PID_CPUSET=y
27
28CONFIG_NAMESPACES=y
29CONFIG_UTS_NS=y
30CONFIG_IPC_NS=y
31CONFIG_PID_NS=y
32CONFIG_NET_NS=y
33
34CONFIG_MODULES=y
35CONFIG_MODULE_UNLOAD=y
36
37CONFIG_CGROUPS=y
38
39CONFIG_SLUB_DEBUG=y
40CONFIG_SLUB=y
41CONFIG_PROFILING=y
42CONFIG_TRACEPOINTS=y
43CONFIG_OPROFILE=y
44
45CONFIG_DEFAULT_NOOP=y
46CONFIG_DEFAULT_IOSCHED="noop"
47
48CONFIG_MDIO_BITBANG=y
49
50CONFIG_CAN_DEBUG_DEVICES=y
51
52CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
53
54CONFIG_CONNECTOR=y
55
56CONFIG_MEMORY=y
57
58CONFIG_RD_XZ=y
59
60CONFIG_NLS=y
61CONFIG_NLS_CODEPAGE_437=y
62CONFIG_NLS_ASCII=y
63CONFIG_NLS_ISO8859_1=y
64
65CONFIG_INPUT=y
66CONFIG_INPUT_SPARSEKMAP=y
67CONFIG_INPUT_EVDEV=y
68
69CONFIG_CLKSRC_OF=y
70CONFIG_COMMON_CLK_DEBUG=y
71
72CONFIG_SMP=y
73CONFIG_SMP_ON_UP=y
74
75CONFIG_VMSPLIT_2G=y
76
77CONFIG_LOCAL_TIMERS=y
78CONFIG_SCHED_HRTICK=y
79
80CONFIG_PM_SLEEP_SMP=y
81
82CONFIG_PROC_DEVICETREE=y
83
84CONFIG_SCSI=y
85CONFIG_SCSI_DMA=y
86
87CONFIG_SERIO_AMBAKMI=y
88
89CONFIG_LEGACY_PTYS=y
90CONFIG_LEGACY_PTY_COUNT=16
91
92CONFIG_GENERIC_PHY=y
93
94CONFIG_MAGIC_SYSRQ=y
95
96CONFIG_DETECT_HUNG_TASK=y
97CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
98CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
99
100CONFIG_STACKTRACE=y
101
102CONFIG_DEBUG_INFO=y
103CONFIG_FRAME_POINTER=y
104
105CONFIG_RCU_CPU_STALL_TIMEOUT=21
106CONFIG_NOP_TRACER=y
107CONFIG_TRACE_CLOCK=y
108CONFIG_RING_BUFFER=y
109CONFIG_EVENT_TRACING=y
110CONFIG_CONTEXT_SWITCH_TRACER=y
111CONFIG_RING_BUFFER_ALLOW_SWAP=y
112CONFIG_TRACING=y
113CONFIG_GENERIC_TRACER=y
114
115CONFIG_FUNCTION_TRACER=y
116CONFIG_FUNCTION_GRAPH_TRACER=y
117
118CONFIG_DYNAMIC_FTRACE=y
119CONFIG_FTRACE_MCOUNT_RECORD=y
120
121CONFIG_OLD_MCOUNT=y
122CONFIG_DEBUG_USER=y
123
124CONFIG_BINARY_PRINTF=y
125
126
127
128
diff --git a/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.scc b/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.scc
new file mode 100644
index 0000000..0414a30
--- /dev/null
+++ b/recipes-kernel/linux/config/socfpga-base/ktypes/standard/standard.scc
@@ -0,0 +1,10 @@
1# Standard linux-xlnx base configuration
2
3kconf non-hardware standard.cfg
4kconf non-hardware cfg/blk.cfg
5kconf non-hardware cfg/fs.cfg
6kconf non-hardware cfg/leds.cfg
7kconf non-hardware cfg/mtd.cfg
8kconf non-hardware cfg/net.cfg
9kconf non-hardware cfg/rtc.cfg
10kconf non-hardware cfg/usb.cfg
diff --git a/recipes-kernel/linux/linux-altera-configs.inc b/recipes-kernel/linux/linux-altera-configs.inc
new file mode 100644
index 0000000..5354773
--- /dev/null
+++ b/recipes-kernel/linux/linux-altera-configs.inc
@@ -0,0 +1,5 @@
1
2FILESEXTRAPATHS_prepend := "${THISDIR}/config:"
3SRC_URI_append += " \
4 file://socfpga-base;type=kmeta;destsuffix=socfpga-base \
5 "
diff --git a/recipes-kernel/linux/linux-altera-latest.inc b/recipes-kernel/linux/linux-altera-latest.inc
deleted file mode 100644
index ae76d5e..0000000
--- a/recipes-kernel/linux/linux-altera-latest.inc
+++ /dev/null
@@ -1,5 +0,0 @@
1KERNEL_BRANCH ?= "socfpga-${PV}"
2
3require recipes-kernel/linux/linux-altera.inc
4
5
diff --git a/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb b/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb
index 48128a2..379d0ec 100644
--- a/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb
+++ b/recipes-kernel/linux/linux-altera-ltsi-rt_3.10.bb
@@ -1,7 +1,3 @@
1DTB_SUBDIR="dts/" 1include linux-altera.inc
2 2LINUX_VERSION = "3.10"
3KERNEL_BRANCH ?= "socfpga-${PV}-ltsi-rt" 3LINUX_VERSION_SUFFIX = "-ltsi-rt"
4
5require recipes-kernel/linux/linux-altera.inc
6COMPATIBLE_MACHINE = "(arria5|cyclone5)"
7
diff --git a/recipes-kernel/linux/linux-altera-ltsi.inc b/recipes-kernel/linux/linux-altera-ltsi.inc
deleted file mode 100644
index 196cc54..0000000
--- a/recipes-kernel/linux/linux-altera-ltsi.inc
+++ /dev/null
@@ -1,5 +0,0 @@
1KERNEL_BRANCH ?= "socfpga-${PV}-ltsi"
2
3require recipes-kernel/linux/linux-altera.inc
4
5
diff --git a/recipes-kernel/linux/linux-altera-ltsi_3.10.bb b/recipes-kernel/linux/linux-altera-ltsi_3.10.bb
index 3749338..ad1bdc0 100644
--- a/recipes-kernel/linux/linux-altera-ltsi_3.10.bb
+++ b/recipes-kernel/linux/linux-altera-ltsi_3.10.bb
@@ -1,5 +1,3 @@
1DTB_SUBDIR="dts/" 1include linux-altera.inc
2 2LINUX_VERSION = "3.10"
3require recipes-kernel/linux/linux-altera-ltsi.inc 3LINUX_VERSION_SUFFIX = "-ltsi"
4COMPATIBLE_MACHINE = "(arria5|cyclone5)"
5
diff --git a/recipes-kernel/linux/linux-altera.inc b/recipes-kernel/linux/linux-altera.inc
index 0cddc82..3320c82 100644
--- a/recipes-kernel/linux/linux-altera.inc
+++ b/recipes-kernel/linux/linux-altera.inc
@@ -1,112 +1,28 @@
1PR = "r1"
2
3KERNEL_REPO ?= "git://git.rocketboards.org/linux-socfpga.git"
4KERNEL_PROT ?= "http"
5KERNEL_DEFCONFIG ?= "socfpga_defconfig"
6KERNEL_TAG ?= "${AUTOREV}"
7
8SRC_URI = "${KERNEL_REPO};protocol=${KERNEL_PROT};branch=${KERNEL_BRANCH}"
9
10SRCREV_pn-${PN} = "${KERNEL_TAG}"
11
12inherit kernel
13SECTION = "kernel"
14DESCRIPTION = "Altera Linux kernel" 1DESCRIPTION = "Altera Linux kernel"
15LICENSE = "GPLv2" 2LICENSE = "GPLv2"
16 3
17LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 4LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
18 5
19S = "${WORKDIR}/git" 6KERNEL_REPO ?= "git://github.com/altera-opensource/linux-socfpga.git"
20 7KERNEL_PROT ?= "https"
21MACHINE_DEFCONFIG = "${KERNEL_DEFCONFIG}"
22
23do_configure() {
24 export INITRAMFS_IMAGE_FILE="${INITRAMFS_IMAGE}-${MACHINE}.cpio"
25
26 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
27 export CROSS_COMPILE="${TARGET_PREFIX}"
28 export ARCH=${ARCH}
29
30 oe_runmake -C ${S} O=${B} ${MACHINE_DEFCONFIG} CONFIG_BLK_DEV_INITRD=y
31
32 pushd ${B}
33 cp .config .config.ori
34
35 grep CONFIG_BLK_DEV_INITRD .config || echo "CONFIG_BLK_DEV_INITRD=y" >> .config
36 grep CONFIG_INITRAMFS_SOURCE .config || echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> .config
37 grep CONFIG_INITRAMFS_ROOT_UID .config || echo "CONFIG_INITRAMFS_ROOT_UID=0" >> .config
38 grep CONFIG_INITRAMFS_ROOT_GID .config || echo "CONFIG_INITRAMFS_ROOT_GID=0" >> .config
39 grep CONFIG_INITRAMFS_COMPRESSION_NONE .config || echo "CONFIG_INITRAMFS_COMPRESSION_NONE=y" >> .config
40
41 if [ ! -z ${INITRAMFS_IMAGE} ] && [ -e ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_FILE} ]; then
42 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_FILE} .
43 echo "Found valid initramfs ${INITRAMFS_IMAGE_FILE}"
44 sed -i "s|^.*CONFIG_BLK_DEV_INITRD[ =].*$|CONFIG_BLK_DEV_INITRD=y|g" .config
45 sed -i "s|^.*CONFIG_INITRAMFS_SOURCE[ =].*$|CONFIG_INITRAMFS_SOURCE=\"${INITRAMFS_IMAGE_FILE}\"|g" .config
46 sed -i "s|^.*CONFIG_INITRAMFS_ROOT_UID[ =].*$|CONFIG_INITRAMFS_ROOT_UID=0|g" .config
47 sed -i "s|^.*CONFIG_INITRAMFS_ROOT_GID[ =].*$|CONFIG_INITRAMFS_ROOT_GID=0|g" .config
48 sed -i "s|^.*CONFIG_INITRAMFS_COMPRESSION_NONE[ =].*$|CONFIG_INITRAMFS_COMPRESSION_NONE=y|g" .config
49 oe_runmake -C ${S} O=${B} oldconfig
50 else
51 rm -f *.cpio
52 echo "Initramfs disabled or can't find valid initramfs ${INITRAMFS_IMAGE_FILE}"
53 sed -i "s|^CONFIG_BLK_DEV_INITRD=.*$|# CONFIG_BLK_DEV_INITRD is not set|g" .config
54 sed -i "s|^CONFIG_INITRAMFS_SOURCE=\".*\"$|# CONFIG_INITRAMFS_SOURCE is not set|g" .config
55 sed -i "s|^CONFIG_INITRAMFS_ROOT_UID=.*$|# CONFIG_INITRAMFS_ROOT_UID is not set|g" .config
56 sed -i "s|^CONFIG_INITRAMFS_ROOT_GID=.*$|# CONFIG_INITRAMFS_ROOT_GID is not set|g" .config
57 sed -i "s|^CONFIG_INITRAMFS_COMPRESSION_NONE=.*$|# CONFIG_INITRAMFS_COMPRESSION_NONE is not set|g" .config
58 oe_runmake -C ${S} O=${B} oldconfig
59 fi
60 popd
61}
62
63kernel_do_compile() {
64 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
65 oe_runmake -C ${S} O=${B} __headers CC="${KERNEL_CC}" LD="${KERNEL_LD}"
66 oe_runmake -C ${S} O=${B} ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" LOADADDR=0x8000
67 if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
68 gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
69 fi
70}
71
72do_compile_dtb() {
73 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
74 sync
75 oe_runmake -C ${S} O=${B} ARCH=${ARCH} CROSS_COMPILE="${TARGET_PREFIX}" dtbs ||
76 oe_runmake -C ${S} O=${B} ARCH=${ARCH} CROSS_COMPILE="${TARGET_PREFIX}" dtbs
77}
78 8
79addtask compile_dtb after do_compile before do_build 9# Kernel CONFIG_LOCALVERSION
10LINUX_VERSION_EXTENSION ?= "-altera"
80 11
81KERNEL_DEVICETREE ?= "socfpga_vt socfpga_cyclone5 socfpga_arria5" 12# Build branch name
13LINUX_VERSION_PREFIX ?= "socfpga-"
14LINUX_VERSION_SUFFIX ?= ""
15LINUX_VERSION ?= "4.0"
82 16
83do_deploy_dtb() { 17SRCREV ?= "${AUTOREV}"
84 install -d ${DEPLOY_DIR_IMAGE} 18SRCREV_machine ?= "${AUTOREV}"
85 cd ${DEPLOY_DIR_IMAGE} 19PV = "${LINUX_VERSION}"
86 if test -n "${KERNEL_DEVICETREE}"; then 20PV_append = "+git${SRCPV}"
87 for DTB_FILE in ${KERNEL_DEVICETREE}; do
88 DTB_SYMLINK_NAME="${DTB_FILE}.dtb"
89 DEVICE_TREE_OUTPUT="${B}/arch/${ARCH}/boot/${DTB_SUBDIR}${DTB_FILE}.dtb"
90 DTB_NAME="${DTB_FILE}-${DATETIME}.dtb"
91 if [ ! -f ${DEVICE_TREE_OUTPUT} ]; then
92 echo "Warning: ${DEVICE_TREE_OUTPUT} is not available!"
93 continue
94 fi
95 install -m 0644 ${DEVICE_TREE_OUTPUT} ${DTB_NAME}
96 rm -f ${DTB_SYMLINK_NAME}
97 ln -sf ${DTB_NAME} ${DTB_SYMLINK_NAME}
98 done
99 fi
100}
101 21
102addtask deploy_dtb after do_compile_dtb before do_build
103 22
104VMLINUX_NAME ?= "vmlinux-${PV}-${PR}-${MACHINE}-${DATETIME}" 23KBRANCH ?= "${LINUX_VERSION_PREFIX}${LINUX_VERSION}${LINUX_VERSION_SUFFIX}"
105 24
106kernel_do_deploy_append() { 25SRC_URI = "${KERNEL_REPO};protocol=${KERNEL_PROT};branch=${KBRANCH}"
107 install -m 0644 ${B}/vmlinux ${DEPLOYDIR}/${VMLINUX_NAME}
108 cd ${DEPLOYDIR} &&
109 rm -f vmlinux &&
110 ln -sf ${VMLINUX_NAME} vmlinux
111}
112 26
27require recipes-kernel/linux/linux-yocto.inc
28require linux-altera-configs.inc
diff --git a/recipes-kernel/linux/linux-altera_3.15.bb b/recipes-kernel/linux/linux-altera_3.15.bb
deleted file mode 100644
index 0062378..0000000
--- a/recipes-kernel/linux/linux-altera_3.15.bb
+++ /dev/null
@@ -1,6 +0,0 @@
1DTB_SUBDIR="dts/"
2
3KERNEL_DEVICETREE = "socfpga_cyclone5_socdk socfpga_arria5_socdk socfpga_vt"
4
5require recipes-kernel/linux/linux-altera-latest.inc
6COMPATIBLE_MACHINE = "(arria5|cyclone5)"
diff --git a/recipes-kernel/linux/linux-altera_4.0.bb b/recipes-kernel/linux/linux-altera_4.0.bb
new file mode 100644
index 0000000..d0a85ef
--- /dev/null
+++ b/recipes-kernel/linux/linux-altera_4.0.bb
@@ -0,0 +1,2 @@
1include linux-altera.inc
2LINUX_VERSION = "4.0"
diff --git a/recipes-kernel/linux/linux-altera_4.1.bb b/recipes-kernel/linux/linux-altera_4.1.bb
new file mode 100644
index 0000000..521e846
--- /dev/null
+++ b/recipes-kernel/linux/linux-altera_4.1.bb
@@ -0,0 +1,2 @@
1include linux-altera.inc
2LINUX_VERSION = "4.1"
diff --git a/recipes-kernel/linux/linux-altera_4.2.bb b/recipes-kernel/linux/linux-altera_4.2.bb
new file mode 100644
index 0000000..e23abac
--- /dev/null
+++ b/recipes-kernel/linux/linux-altera_4.2.bb
@@ -0,0 +1,2 @@
1include linux-altera.inc
2LINUX_VERSION = "4.2"