Skip to contentSkip to conversation

Update kernel for ts72xx

PATCH New Petr Štetiar 1 participant 4 messages Oct 3, 2010

lore
Share & tools
lore
#0 lore raw

cover Update kernel for ts72xx

Hi,

this patchset should update ts72xx kernel support in OE. Please apply. Thanks.

-- ynezz

Petr Štetiar (3):
linux-2.6.34: upgrade to latest stablepatch 2.6.34.7 linux-2.6.34: add support for ts72xx and make it default kernel linux-2.6.27: don't use as default kernel for ts72xx

 .../linux-2.6.34/ts72xx/0001-ts72xx_base.patch     |  445 +++
 .../ts72xx/0002-ts72xx_force_machine-id.patch      |   45 +
 .../linux-2.6.34/ts72xx/0003-ep93xx_cpuinfo.patch  |   32 +
 .../linux-2.6.34/ts72xx/0004-ep93xx_eth.patch      |  551 ++++
 .../ts72xx/0005-ep93xx-m2m-DMA-support.patch       |  882 ++++++
 .../linux-2.6.34/ts72xx/0006-ts72xx_rs485.patch    |  218 ++
 .../linux-2.6.34/ts72xx/0007-ts72xx_ts_ser1.patch  |  259 ++
 .../ts72xx/0008-ts72xx_ts_eth100.patch             |  273 ++
 .../linux-2.6.34/ts72xx/0009-ts72xx_pata.patch     |  432 +++
 .../linux-2.6.34/ts72xx/0010-ts72xx_gpio_i2c.patch |   58 +
 .../ts72xx/0011-ts72xx_dio_keypad.patch            |  306 ++
 .../linux-2.6.34/ts72xx/0012-ts72xx_sbcinfo.patch  |  263 ++
 .../linux-2.6.34/ts72xx/0013-ts72xx_max197.patch   |  347 ++
 .../ts72xx/0014-ts7200_nor_flash.patch             |  176 ++
 .../linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch   | 3293 ++++++++++++++++++++
 .../ts72xx/0016-ts72xx_nand_flash.patch            |  270 ++
 .../linux-2.6.34/ts72xx/0017-ep93xx_spi.patch      | 1312 ++++++++
 .../ts72xx/0018-ts72xx_spi_tmp124.patch            |  298 ++
 recipes/linux/linux-2.6.34/ts72xx/defconfig        | 1679 ++++++++++
 recipes/linux/linux_2.6.27.bb                      |    2 +-
 recipes/linux/linux_2.6.34.bb                      |   28 +-
 21 files changed, 11166 insertions(+), 3 deletions(-)
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0001-ts72xx_base.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0002-ts72xx_force_machine-id.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0003-ep93xx_cpuinfo.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0004-ep93xx_eth.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0005-ep93xx-m2m-DMA-support.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0006-ts72xx_rs485.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0007-ts72xx_ts_ser1.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0008-ts72xx_ts_eth100.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0009-ts72xx_pata.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0010-ts72xx_gpio_i2c.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0011-ts72xx_dio_keypad.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0012-ts72xx_sbcinfo.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0013-ts72xx_max197.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0014-ts7200_nor_flash.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0016-ts72xx_nand_flash.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0017-ep93xx_spi.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0018-ts72xx_spi_tmp124.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/defconfig
#1 lore raw

PATCH 1/3 linux-2.6.34: upgrade to latest stablepatch 2.6.34.7

---
 recipes/linux/linux_2.6.34.bb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
recipes/linux/linux_2.6.34.bb +4 -2
index b3c850f..469f23b 100644
@@ -1,6 +1,6 @@
 require linux.inc
 
-PR = "r1"
+PR = "r2"
 
 module_autoload_ohci-hcd_omap5912osk = "ohci-hcd"
 
@@ -17,11 +17,13 @@ DEFAULT_PREFERENCE_omap5912osk = "1"
 DEFAULT_PREFERENCE_tqm8540 = "1"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/${P}.tar.bz2;name=kernel \
+           ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.7.bz2;apply=yes;name=stablepatch \
            file://ARM-Add-support-for-LZMA-compressed-kernel-images.patch;status=pending \
-           file://use-noclone-attribute-for-naked.patch;status=pending \
            file://defconfig"
 
 SRC_URI_append_c7x0 = " file://fix-corgi-card-detection.patch;status=pending "
 
 SRC_URI[kernel.md5sum] = "10eebcb0178fb4540e2165bfd7efc7ad"
 SRC_URI[kernel.sha256sum] = "fa395fec7de633df1cb85b6248b8f35af98380ed128a8bc465fb48bc4d252633"
+SRC_URI[stablepatch.md5sum] = "a88e4b5a9fcb23c2229301ac4dae1f1a"
+SRC_URI[stablepatch.sha256sum] = "b146904ea07cc87a3fbcbd4eab51d331d56718431539e6aa29c24b072e6b7832"
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/3 linux-2.6.34: add support for ts72xx and make it default kernel

In reply to Petr Štetiar
---
 .../linux-2.6.34/ts72xx/0001-ts72xx_base.patch     |  445 +++
 .../ts72xx/0002-ts72xx_force_machine-id.patch      |   45 +
 .../linux-2.6.34/ts72xx/0003-ep93xx_cpuinfo.patch  |   32 +
 .../linux-2.6.34/ts72xx/0004-ep93xx_eth.patch      |  551 ++++
 .../ts72xx/0005-ep93xx-m2m-DMA-support.patch       |  882 ++++++
 .../linux-2.6.34/ts72xx/0006-ts72xx_rs485.patch    |  218 ++
 .../linux-2.6.34/ts72xx/0007-ts72xx_ts_ser1.patch  |  259 ++
 .../ts72xx/0008-ts72xx_ts_eth100.patch             |  273 ++
 .../linux-2.6.34/ts72xx/0009-ts72xx_pata.patch     |  432 +++
 .../linux-2.6.34/ts72xx/0010-ts72xx_gpio_i2c.patch |   58 +
 .../ts72xx/0011-ts72xx_dio_keypad.patch            |  306 ++
 .../linux-2.6.34/ts72xx/0012-ts72xx_sbcinfo.patch  |  263 ++
 .../linux-2.6.34/ts72xx/0013-ts72xx_max197.patch   |  347 ++
 .../ts72xx/0014-ts7200_nor_flash.patch             |  176 ++
 .../linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch   | 3293 ++++++++++++++++++++
 .../ts72xx/0016-ts72xx_nand_flash.patch            |  270 ++
 .../linux-2.6.34/ts72xx/0017-ep93xx_spi.patch      | 1312 ++++++++
 .../ts72xx/0018-ts72xx_spi_tmp124.patch            |  298 ++
 recipes/linux/linux-2.6.34/ts72xx/defconfig        | 1679 ++++++++++
 recipes/linux/linux_2.6.34.bb                      |   24 +-
 20 files changed, 11162 insertions(+), 1 deletions(-)
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0001-ts72xx_base.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0002-ts72xx_force_machine-id.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0003-ep93xx_cpuinfo.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0004-ep93xx_eth.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0005-ep93xx-m2m-DMA-support.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0006-ts72xx_rs485.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0007-ts72xx_ts_ser1.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0008-ts72xx_ts_eth100.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0009-ts72xx_pata.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0010-ts72xx_gpio_i2c.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0011-ts72xx_dio_keypad.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0012-ts72xx_sbcinfo.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0013-ts72xx_max197.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0014-ts7200_nor_flash.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0016-ts72xx_nand_flash.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0017-ep93xx_spi.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/0018-ts72xx_spi_tmp124.patch
 create mode 100644 recipes/linux/linux-2.6.34/ts72xx/defconfig
recipes/linux/linux-2.6.34/ts72xx/0001-ts72xx_base.patch new file +445 -0
new file mode 100644
index 0000000..247601b
@@ -0,0 +1,445 @@
+From 9a60df856b54ba2f09dc0bbe4229627372f0a122 Mon Sep 17 00:00:00 2001
+From: Matthieu Crapet <[email protected]>
+Date: Thu, 10 Jun 2010 10:43:24 +0200
+Subject: [PATCH 01/18] ts72xx_base
+
+- patch: allow to force nF bit in control reg
+- register pwm1
+---
+ arch/arm/Kconfig                                |    1 +
+ arch/arm/mach-ep93xx/Kconfig                    |    9 ++
+ arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h |    8 ++
+ arch/arm/mach-ep93xx/include/mach/memory.h      |   28 +++++
+ arch/arm/mach-ep93xx/include/mach/ts72xx.h      |  147 ++++++++++++++++++++---
+ arch/arm/mach-ep93xx/ts72xx.c                   |   40 ++++++-
+ arch/arm/mm/proc-arm920.S                       |    5 +-
+ 7 files changed, 218 insertions(+), 20 deletions(-)
+
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index 92622eb..ab19836 100644
+--- a/arch/arm/Kconfig
++++ b/arch/arm/Kconfig
+@@ -321,6 +321,7 @@ config ARCH_EP93XX
+ 	select CPU_ARM920T
+ 	select ARM_AMBA
+ 	select ARM_VIC
++	select ARCH_SPARSEMEM_ENABLE
+ 	select GENERIC_GPIO
+ 	select HAVE_CLK
+ 	select COMMON_CLKDEV
+diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig
+index 3a08b18..b6be37e 100644
+--- a/arch/arm/mach-ep93xx/Kconfig
++++ b/arch/arm/mach-ep93xx/Kconfig
+@@ -7,6 +7,15 @@ config CRUNCH
+ 	help
+ 	  Enable kernel support for MaverickCrunch.
+ 
++config CR1_NFBIT
++	bool "Turn on nF bit in ControlRegister 1"
++	help
++	  Say 'Y' here to force the nF bit on.  Usually this is set
++	  by the bootrom.  If it is not set, then the CPU core will
++	  run from HCLK instead of FCLK, and performance will suffer.
++	  If you see BogoMIPS of about 1/4 of your CPU clock, try
++	  turning this on; your performance should double.
++
+ comment "EP93xx Platforms"
+ 
+ choice
+diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
+index 93e2ecc..f100f7f 100644
+--- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
++++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
+@@ -83,6 +83,7 @@
+ 
+ #define EP93XX_BOOT_ROM_BASE		EP93XX_AHB_IOMEM(0x00090000)
+ 
++#define EP93XX_IDE_PHYS_BASE		EP93XX_AHB_PHYS(0x000a0000)
+ #define EP93XX_IDE_BASE			EP93XX_AHB_IOMEM(0x000a0000)
+ 
+ #define EP93XX_VIC1_BASE		EP93XX_AHB_IOMEM(0x000b0000)
+@@ -96,16 +97,22 @@
+ #define EP93XX_I2S_BASE			EP93XX_APB_IOMEM(0x00020000)
+ 
+ #define EP93XX_SECURITY_BASE		EP93XX_APB_IOMEM(0x00030000)
++#define EP93XX_SECURITY_REG(x)		(EP93XX_SECURITY_BASE + (x))
++#define EP93XX_SECURITY_UNIQID		EP93XX_SECURITY_REG(0x2440)
+ 
+ #define EP93XX_GPIO_BASE		EP93XX_APB_IOMEM(0x00040000)
+ #define EP93XX_GPIO_REG(x)		(EP93XX_GPIO_BASE + (x))
+ #define EP93XX_GPIO_F_INT_STATUS	EP93XX_GPIO_REG(0x5c)
++#define EP93XX_GPIO_F_INT_DEBOUNCE	EP93XX_GPIO_REG(0x64)
+ #define EP93XX_GPIO_A_INT_STATUS	EP93XX_GPIO_REG(0xa0)
++#define EP93XX_GPIO_A_INT_DEBOUNCE	EP93XX_GPIO_REG(0xa8)
+ #define EP93XX_GPIO_B_INT_STATUS	EP93XX_GPIO_REG(0xbc)
++#define EP93XX_GPIO_B_INT_DEBOUNCE	EP93XX_GPIO_REG(0xc4)
+ #define EP93XX_GPIO_EEDRIVE		EP93XX_GPIO_REG(0xc8)
+ 
+ #define EP93XX_AAC_BASE			EP93XX_APB_IOMEM(0x00080000)
+ 
++#define EP93XX_SPI_PHYS_BASE		(EP93XX_APB_PHYS_BASE + 0x000a0000)
+ #define EP93XX_SPI_BASE			EP93XX_APB_IOMEM(0x000a0000)
+ 
+ #define EP93XX_IRDA_BASE		EP93XX_APB_IOMEM(0x000b0000)
+@@ -209,6 +216,7 @@
+ #define EP93XX_SYSCON_SYSCFG_LEECLK	(1<<3)
+ #define EP93XX_SYSCON_SYSCFG_LCSN2	(1<<1)
+ #define EP93XX_SYSCON_SYSCFG_LCSN1	(1<<0)
++#define EP93XX_SYSCON_CHIPID		EP93XX_SYSCON_REG(0x94)
+ #define EP93XX_SYSCON_SWLOCK		EP93XX_SYSCON_REG(0xc0)
+ 
+ #define EP93XX_WATCHDOG_BASE		EP93XX_APB_IOMEM(0x00140000)
+diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h
+index 554064e..78eaacf 100644
+--- a/arch/arm/mach-ep93xx/include/mach/memory.h
++++ b/arch/arm/mach-ep93xx/include/mach/memory.h
+@@ -19,4 +19,32 @@
+ #error "Kconfig bug: No EP93xx PHYS_OFFSET set"
+ #endif
+ 
++/*
++ * Non-linear mapping like so:
++ * phys       => virt
++ * 0x00000000 => 0xc0000000
++ * 0x01000000 => 0xc1000000
++ * 0x04000000 => 0xc4000000
++ * 0x05000000 => 0xc5000000
++ * 0xe0000000 => 0xc8000000
++ * 0xe1000000 => 0xc9000000
++ * 0xe4000000 => 0xcc000000
++ * 0xe5000000 => 0xcd000000
++ *
++ * As suggested here: http://marc.info/?l=linux-arm&m=122754446724900&w=2
++ *
++ * Note that static inline functions won't work here because
++ * arch/arm/include/asm/memory.h uses "#ifndef __virt_to_phys" to check whether to
++ * use generic functions or not.
++ */
++
++#define __phys_to_virt(p)   \
++            (((p) & 0x07ffffff) | (((p) & 0xe0000000) ? 0x08000000 : 0) | PAGE_OFFSET)
++
++#define __virt_to_phys(v)   \
++            (((v) & 0x07ffffff) | (((v) & 0x08000000) ? 0xe0000000 : 0 ))
++
++#define SECTION_SIZE_BITS 24
++#define MAX_PHYSMEM_BITS 32
++
+ #endif
+diff --git a/arch/arm/mach-ep93xx/include/mach/ts72xx.h b/arch/arm/mach-ep93xx/include/mach/ts72xx.h
+index 93107d8..83ed0e6 100644
+--- a/arch/arm/mach-ep93xx/include/mach/ts72xx.h
++++ b/arch/arm/mach-ep93xx/include/mach/ts72xx.h
+@@ -8,38 +8,40 @@
+  * virt		phys		size
+  * febff000	22000000	4K	model number register
+  * febfe000	22400000	4K	options register
+- * febfd000	22800000	4K	options register #2
++ * febfd000	22800000	4K	options register #2 (JP6 and TS-9420 flags)
+  * febfc000	[67]0000000	4K	NAND data register
+  * febfb000	[67]0400000	4K	NAND control register
+  * febfa000	[67]0800000	4K	NAND busy register
+  * febf9000	10800000	4K	TS-5620 RTC index register
+  * febf8000	11700000	4K	TS-5620 RTC data register
++ * febf7000	23400000	4K	PLD version (3 bits)
++ * febf6000	22c00000	4K	RS-485 control register
++ * febf5000	23000000	4K	RS-485 mode register
+  */
+ 
+ #define TS72XX_MODEL_PHYS_BASE		0x22000000
+ #define TS72XX_MODEL_VIRT_BASE		0xfebff000
+ #define TS72XX_MODEL_SIZE		0x00001000
+ 
+-#define TS72XX_MODEL_TS7200		0x00
+-#define TS72XX_MODEL_TS7250		0x01
+-#define TS72XX_MODEL_TS7260		0x02
++#define TS7XXX_MODEL_TS7200		0x00
++#define TS7XXX_MODEL_TS7250		0x01
++#define TS7XXX_MODEL_TS7260		0x02
++#define TS7XXX_MODEL_TS7300		0x03
++#define TS7XXX_MODEL_TS7400		0x04
++#define TS7XXX_MODEL_MASK		0x07
+ 
+ 
+ #define TS72XX_OPTIONS_PHYS_BASE	0x22400000
+ #define TS72XX_OPTIONS_VIRT_BASE	0xfebfe000
+ #define TS72XX_OPTIONS_SIZE		0x00001000
+-
+-#define TS72XX_OPTIONS_COM2_RS485	0x02
+-#define TS72XX_OPTIONS_MAX197		0x01
+-
++#define 	TS72XX_OPTIONS_COM2_RS485	0x02
++#define 	TS72XX_OPTIONS_MAX197		0x01
+ 
+ #define TS72XX_OPTIONS2_PHYS_BASE	0x22800000
+ #define TS72XX_OPTIONS2_VIRT_BASE	0xfebfd000
+ #define TS72XX_OPTIONS2_SIZE		0x00001000
+-
+-#define TS72XX_OPTIONS2_TS9420		0x04
+-#define TS72XX_OPTIONS2_TS9420_BOOT	0x02
+-
++#define 	TS72XX_OPTIONS2_TS9420		0x04
++#define 	TS72XX_OPTIONS2_TS9420_BOOT	0x02
+ 
+ #define TS72XX_NAND1_DATA_PHYS_BASE	0x60000000
+ #define TS72XX_NAND2_DATA_PHYS_BASE	0x70000000
+@@ -50,12 +52,13 @@
+ #define TS72XX_NAND2_CONTROL_PHYS_BASE	0x70400000
+ #define TS72XX_NAND_CONTROL_VIRT_BASE	0xfebfb000
+ #define TS72XX_NAND_CONTROL_SIZE	0x00001000
++#define TS72XX_NAND_CONTROL_OFFSET	0x00400000
+ 
+ #define TS72XX_NAND1_BUSY_PHYS_BASE	0x60800000
+ #define TS72XX_NAND2_BUSY_PHYS_BASE	0x70800000
+ #define TS72XX_NAND_BUSY_VIRT_BASE	0xfebfa000
+ #define TS72XX_NAND_BUSY_SIZE		0x00001000
+-
++#define TS72XX_NAND_BUSY_OFFSET		0x00800000
+ 
+ #define TS72XX_RTC_INDEX_VIRT_BASE	0xfebf9000
+ #define TS72XX_RTC_INDEX_PHYS_BASE	0x10800000
+@@ -68,32 +71,140 @@
+ #define TS72XX_WDT_CONTROL_PHYS_BASE	0x23800000
+ #define TS72XX_WDT_FEED_PHYS_BASE	0x23c00000
+ 
++#define TS72XX_PLD_VERSION_VIRT_BASE	0xfebf7000
++#define TS72XX_PLD_VERSION_PHYS_BASE	0x23400000
++#define TS72XX_PLD_VERSION_SIZE		0x00001000
++
++#define TS72XX_JUMPERS_MAX197_PHYS_BASE	0x10800000 // jumpers/max197 busy bit/COM1 dcd register (8-bit, read only)
++#define TS72XX_MAX197_SAMPLE_PHYS_BASE	0x10f00000 // max197 sample/control register (16-bit read/8-bit write)
++
++/*
++ * RS485 option
++ */
++#define TS72XX_RS485_CONTROL_VIRT_BASE	0xfebf6000
++#define TS72XX_RS485_CONTROL_PHYS_BASE	0x22c00000
++#define TS72XX_RS485_CONTROL_SIZE	0x00001000
++
++#define TS72XX_RS485_MODE_VIRT_BASE	0xfebf5000
++#define TS72XX_RS485_MODE_PHYS_BASE	0x23000000
++#define TS72XX_RS485_MODE_SIZE		0x00001000
++
++#define TS72XX_RS485_AUTO485FD		1
++#define TS72XX_RS485_AUTO485HD		2
++#define TS72XX_RS485_MODE_RS232		0x00
++#define TS72XX_RS485_MODE_FD		0x01
++#define TS72XX_RS485_MODE_9600_HD	0x04
++#define TS72XX_RS485_MODE_19200_HD	0x05
++#define TS72XX_RS485_MODE_57600_HD	0x06
++#define TS72XX_RS485_MODE_115200_HD	0x07
++
++/*
++ * PC/104 8-bit & 16-bit bus
++ *
++ * virt		phys		size
++ * febf0000	11e00000	4K	PC/104 8-bit I/O
++ * febef000	21e00000	4K	PC/104 16-bit I/O
++ * fea00000	11a00000	1MB	PC/104 8-bit memory
++ * fe900000	21a00000	1MB	PC/104 16-bit memory
++ */
++#define TS72XX_PC104_8BIT_IO_VIRT_BASE	0xfebf0000
++#define TS72XX_PC104_8BIT_IO_PHYS_BASE	0x11e00000
++#define TS72XX_PC104_8BIT_IO_SIZE	0x00001000
++#define TS72XX_PC104_8BIT_MEM_VIRT_BASE	0xfea00000
++#define TS72XX_PC104_8BIT_MEM_PHYS_BASE	0x11a00000
++#define TS72XX_PC104_8BIT_MEM_SIZE	0x00100000
++
++#define TS72XX_PC104_16BIT_IO_VIRT_BASE		0xfebef000
++#define TS72XX_PC104_16BIT_IO_PHYS_BASE		0x21e00000
++#define TS72XX_PC104_16BIT_IO_SIZE		0x00001000
++#define TS72XX_PC104_16BIT_MEM_VIRT_BASE	0xfe900000
++#define TS72XX_PC104_16BIT_MEM_PHYS_BASE	0x21a00000
++#define TS72XX_PC104_16BIT_MEM_SIZE		0x00100000
++
++/*
++ * TS7200 specific : CompactFlash memory map
++ *
++ * phys		size	description
++ * 11000000	7	CF registers (8-bit each), starting at 11000001
++ * 10400006	2	CF aux registers (8-bit)
++ * 21000000	2	CF data register (16-bit)
++ */
++#define TS7200_CF_CMD_PHYS_BASE		0x11000000
++#define TS7200_CF_AUX_PHYS_BASE		0x10400006
++#define TS7200_CF_DATA_PHYS_BASE	0x21000000
++
++/*
++ * TS7260 specific : SD card & Power Management
++ *
++ * phys		size	description
++ * 12000000	4K	Power management register (8-bit)
++ * 13000000	4K	SD card registers (4 x 8-bit)
++ */
++#define TS7260_POWER_MANAGEMENT_PHYS_BASE	0x12000000
++#define 	TS7260_PM_RS232_LEVEL_CONVERTER	0x01
++#define 	TS7260_PM_USB			0x02
++#define 	TS7260_PM_LCD			0x04
++#define 	TS7260_PM_5V_SWITCHER		0x08
++#define 	TS7260_PM_PC104_CLOCK		0x10
++#define 	TS7260_PM_PC104_FAST_STROBES	0x20
++#define 	TS7260_PM_TTL_UART_ENABLE	0x40
++#define 	TS7260_PM_SCRATCH_BIT		0x80
++
++#define TS7260_SDCARD_PHYS_BASE		0x13000000
++
+ #ifndef __ASSEMBLY__
+ 
+ static inline int board_is_ts7200(void)
+ {
+-	return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7200;
++	return (__raw_readb(TS72XX_MODEL_VIRT_BASE) &
++			TS7XXX_MODEL_MASK) == TS7XXX_MODEL_TS7200;
+ }
+ 
+ static inline int board_is_ts7250(void)
+ {
+-	return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7250;
++	return (__raw_readb(TS72XX_MODEL_VIRT_BASE) &
++			TS7XXX_MODEL_MASK) == TS7XXX_MODEL_TS7250;
+ }
+ 
+ static inline int board_is_ts7260(void)
+ {
+-	return __raw_readb(TS72XX_MODEL_VIRT_BASE) == TS72XX_MODEL_TS7260;
++	return (__raw_readb(TS72XX_MODEL_VIRT_BASE) &
++			TS7XXX_MODEL_MASK) == TS7XXX_MODEL_TS7260;
++}
++
++static inline int board_is_ts7400(void)
++{
++	return (__raw_readb(TS72XX_MODEL_VIRT_BASE) &
++			TS7XXX_MODEL_MASK) == TS7XXX_MODEL_TS7400;
+ }
+ 
+ static inline int is_max197_installed(void)
+ {
+ 	return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) &
+-					TS72XX_OPTIONS_MAX197);
++			TS72XX_OPTIONS_MAX197);
+ }
+ 
+ static inline int is_ts9420_installed(void)
+ {
+ 	return !!(__raw_readb(TS72XX_OPTIONS2_VIRT_BASE) &
+-					TS72XX_OPTIONS2_TS9420);
++			TS72XX_OPTIONS2_TS9420);
++}
++
++static inline int is_rs485_installed(void)
++{
++	return !!(__raw_readb(TS72XX_OPTIONS_VIRT_BASE) &
++			TS72XX_OPTIONS_COM2_RS485);
++}
++
++static inline int get_ts72xx_pld_version(void)
++{
++	return (__raw_readb(TS72XX_PLD_VERSION_VIRT_BASE) & 0x7);
+ }
++
++/* User jumper */
++static inline int is_jp6_set(void)
++{
++	return (__raw_readb(TS72XX_OPTIONS2_VIRT_BASE) & 0x1);
++}
++
+ #endif
+diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c
+index fac1ec7..37325c4 100644
+--- a/arch/arm/mach-ep93xx/ts72xx.c
++++ b/arch/arm/mach-ep93xx/ts72xx.c
+@@ -51,7 +51,36 @@ static struct map_desc ts72xx_io_desc[] __initdata = {
+ 		.pfn		= __phys_to_pfn(TS72XX_RTC_DATA_PHYS_BASE),
+ 		.length		= TS72XX_RTC_DATA_SIZE,
+ 		.type		= MT_DEVICE,
+-	}
++	},
++	/* Use this for debug only. Each device will map its own PC/104 address space */
++	///* PC/104 (8-bit) I/O bus */
++	//{
++	//  .virtual  = TS72XX_PC104_8BIT_IO_VIRT_BASE,
++	//  .pfn    = __phys_to_pfn(TS72XX_PC104_8BIT_IO_PHYS_BASE),
++	//  .length   = TS72XX_PC104_8BIT_IO_SIZE,
++	//  .type   = MT_DEVICE,
++	//},
++	///* PC/104 (16-bit) I/O bus */
++	//{
++	//  .virtual  = TS72XX_PC104_16BIT_IO_VIRT_BASE,
++	//  .pfn    = __phys_to_pfn(TS72XX_PC104_16BIT_IO_PHYS_BASE),
++	//  .length   = TS72XX_PC104_16BIT_IO_SIZE,
++	//  .type   = MT_DEVICE,
++	//},
++	///* PC/104 (8-bit) MEM bus */
++	//{
++	//  .virtual  = TS72XX_PC104_8BIT_MEM_VIRT_BASE,
++	//  .pfn    = __phys_to_pfn(TS72XX_PC104_8BIT_MEM_PHYS_BASE),
++	//  .length   = TS72XX_PC104_8BIT_MEM_SIZE,
++	//  .type   = MT_DEVICE,
++	//},
++	///* PC/104 (16-bit) MEM bus */
++	//{
++	//  .virtual  = TS72XX_PC104_16BIT_MEM_VIRT_BASE,
++	//  .pfn    = __phys_to_pfn(TS72XX_PC104_16BIT_MEM_PHYS_BASE),
++	//  .length   = TS72XX_PC104_16BIT_MEM_SIZE,
++	//  .type   = MT_DEVICE,
++	//}
+ };
+ 
+ static struct map_desc ts72xx_nand_io_desc[] __initdata = {
+@@ -140,6 +169,9 @@ static void __init ts72xx_register_flash(void)
+ 		platform_device_register(&ts72xx_flash);
+ }
+ 
++/*************************************************************************
++ * RTC
++ *************************************************************************/
+ static unsigned char ts72xx_rtc_readbyte(unsigned long addr)
+ {
+ 	__raw_writeb(addr, TS72XX_RTC_INDEX_VIRT_BASE);
+@@ -186,6 +218,9 @@ static struct platform_device ts72xx_wdt_device = {
+ 	.resource	= ts72xx_wdt_resources,
+ };
+ 
++/*************************************************************************
++ * Ethernet
++ *************************************************************************/
+ static struct ep93xx_eth_data ts72xx_eth_data = {
+ 	.phy_id		= 1,
+ };
+@@ -198,6 +233,9 @@ static void __init ts72xx_init_machine(void)
+ 	platform_device_register(&ts72xx_wdt_device);
+ 
+ 	ep93xx_register_eth(&ts72xx_eth_data, 1);
++
++	/* PWM1 is DIO_6 on TS-72xx header */
++	ep93xx_register_pwm(0, 1);
+ }
+ 
+ MACHINE_START(TS72XX, "Technologic Systems TS-72xx SBC")
+diff --git a/arch/arm/mm/proc-arm920.S b/arch/arm/mm/proc-arm920.S
+index 8be8199..a4f123d 100644
+--- a/arch/arm/mm/proc-arm920.S
++++ b/arch/arm/mm/proc-arm920.S
+@@ -198,7 +198,7 @@ ENTRY(arm920_coherent_kern_range)
+  */
+ ENTRY(arm920_coherent_user_range)
+ 	bic	r0, r0, #CACHE_DLINESIZE - 1
+-1:	mcr	p15, 0, r0, c7, c10, 1		@ clean D entry
++1:	mcr	p15, 0, r0, c7, c14, 1		@ clean+invalidate D entry
+ 	mcr	p15, 0, r0, c7, c5, 1		@ invalidate I entry
+ 	add	r0, r0, #CACHE_DLINESIZE
+ 	cmp	r0, r1
+@@ -398,6 +398,9 @@ __arm920_setup:
+ 	mrc	p15, 0, r0, c1, c0		@ get control register v4
+ 	bic	r0, r0, r5
+ 	orr	r0, r0, r6
++#ifdef CONFIG_CR1_NFBIT
++        orr     r0, r0, #0x40000000             @ set nF
++#endif
+ 	mov	pc, lr
+ 	.size	__arm920_setup, . - __arm920_setup
+ 
+-- 
+1.7.1
+
recipes/linux/linux-2.6.34/ts72xx/0002-ts72xx_force_machine-id.patch new file +45 -0

45 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0003-ep93xx_cpuinfo.patch new file +32 -0
new file mode 100644
index 0000000..83519d6
@@ -0,0 +1,32 @@
+From cbb613e31ddb5f27e7bffa95be458c260fa4de11 Mon Sep 17 00:00:00 2001
+From: Matthieu Crapet <[email protected]>
+Date: Thu, 10 Jun 2010 10:59:31 +0200
+Subject: [PATCH 03/18] ep93xx_cpuinfo
+
+---
+ arch/arm/kernel/setup.c |    9 +++++++++
+ 1 files changed, 9 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
+index c91c77b..867387c 100644
+--- a/arch/arm/kernel/setup.c
++++ b/arch/arm/kernel/setup.c
+@@ -844,6 +844,15 @@ static int c_show(struct seq_file *m, void *v)
+ 	seq_puts(m, "\n");
+ 
+ 	seq_printf(m, "Hardware\t: %s\n", machine_name);
++
++	#if defined(CONFIG_ARCH_EP93XX)
++	#include <mach/io.h>
++	#include <mach/ep93xx-regs.h>
++	system_rev = *((unsigned int *)EP93XX_SYSCON_CHIPID) >> 28;
++	system_serial_low = *((unsigned int *)EP93XX_SECURITY_UNIQID);
++	system_serial_high = 0;
++	#endif
++
+ 	seq_printf(m, "Revision\t: %04x\n", system_rev);
+ 	seq_printf(m, "Serial\t\t: %08x%08x\n",
+ 		   system_serial_high, system_serial_low);
+-- 
+1.7.1
+
recipes/linux/linux-2.6.34/ts72xx/0004-ep93xx_eth.patch new file +551 -0

551 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0005-ep93xx-m2m-DMA-support.patch new file +882 -0

882 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0006-ts72xx_rs485.patch new file +218 -0

218 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0007-ts72xx_ts_ser1.patch new file +259 -0

259 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0008-ts72xx_ts_eth100.patch new file +273 -0

273 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0009-ts72xx_pata.patch new file +432 -0

295 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0010-ts72xx_gpio_i2c.patch new file +58 -0

58 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0011-ts72xx_dio_keypad.patch new file +306 -0

306 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0012-ts72xx_sbcinfo.patch new file +263 -0

263 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0013-ts72xx_max197.patch new file +347 -0

347 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0014-ts7200_nor_flash.patch new file +176 -0

176 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0015-ts72xx_sdcard.patch new file +3293 -0

3,293 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0016-ts72xx_nand_flash.patch new file +270 -0

270 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0017-ep93xx_spi.patch new file +1312 -0

1,312 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/0018-ts72xx_spi_tmp124.patch new file +298 -0

298 lines not on this page · raw message

recipes/linux/linux-2.6.34/ts72xx/defconfig new file +1679 -0

1,679 lines not on this page · raw message

recipes/linux/linux_2.6.34.bb +23 -1
index 469f23b..61f23cf 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.0.4

Part of the diff is not shown here. View the raw message.

#3 lore raw

PATCH 3/3 linux-2.6.27: don't use as default kernel for ts72xx

In reply to Petr Štetiar
---
 recipes/linux/linux_2.6.27.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/linux/linux_2.6.27.bb +1 -1
index 7014958..fdcd8b7 100644
@@ -7,7 +7,7 @@ DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_boc01 = "1"
 DEFAULT_PREFERENCE_progear = "1"
 DEFAULT_PREFERENCE_simpad = "-1"
-DEFAULT_PREFERENCE_ts72xx = "1"
+DEFAULT_PREFERENCE_ts72xx = "-1"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
            ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.45.bz2;apply=yes;name=stablepatch \
Signature · 1 line
1.7.0.4