Updating SPEAr Support
Subsystems (7)
PATCH v3 61/63 ST SPEAr: Adding devices & clocks
In reply to Viresh Kumar--- arch/arm/mach-spear13xx/clock.c | 39 ++++++++ arch/arm/mach-spear13xx/include/mach/generic.h | 7 ++ arch/arm/mach-spear13xx/include/mach/irqs.h | 10 +- arch/arm/mach-spear13xx/include/mach/spear1310.h | 34 +++++++ arch/arm/mach-spear13xx/spear1310.c | 107 ++++++++++++++++++++++ arch/arm/mach-spear13xx/spear1310_evb.c | 32 +++++++ arch/arm/mach-spear3xx/spear310_evb.c | 5 + arch/arm/mach-spear3xx/spear320_evb.c | 6 + 8 files changed, 235 insertions(+), 5 deletions(-)
arch/arm/mach-spear13xx/clock.c +39 -0
@@ -1025,6 +1025,40 @@ static struct clk gmac_phy4_clk = { .recalc = &follow_parent, }; +/* uart1 clock */ +static struct clk uart1_clk = { + .flags =ALWAYS_ENABLED , + .pclk = &ras_pclk_clk, + .recalc = &follow_parent, +}; + +/* uart2 clock */ +static struct clk uart2_clk = { + .flags =ALWAYS_ENABLED , + .pclk = &ras_pclk_clk, + .recalc = &follow_parent, +}; + +/* uart3 clock */ +static struct clk uart3_clk = { + .flags =ALWAYS_ENABLED , + .pclk = &ras_pclk_clk, + .recalc = &follow_parent, +}; + +/* uart4 clock */ +static struct clk uart4_clk = { + .flags =ALWAYS_ENABLED , + .pclk = &ras_pclk_clk, + .recalc = &follow_parent, +}; + +/* uart5 clock */ +static struct clk uart5_clk = { + .flags =ALWAYS_ENABLED , + .pclk = &ras_pclk_clk, + .recalc = &follow_parent, +};#endif static struct clk dummy_apb_pclk;
@@ -1138,6 +1172,11 @@ static struct clk_lookup spear1310_clk_lookups[] = { {.dev_id = "stmmacphy.2", .clk = &gmac_phy2_clk}, {.dev_id = "stmmacphy.3", .clk = &gmac_phy3_clk}, {.dev_id = "stmmacphy.4", .clk = &gmac_phy4_clk}, + {.dev_id = "uart1", .clk = &uart1_clk}, + {.dev_id = "uart2", .clk = &uart2_clk}, + {.dev_id = "uart3", .clk = &uart3_clk}, + {.dev_id = "uart4", .clk = &uart4_clk}, + {.dev_id = "uart5", .clk = &uart5_clk}, }; #endif
arch/arm/mach-spear13xx/include/mach/generic.h +7 -0
@@ -257,8 +257,15 @@ void __init spear1300_init(struct pmx_mode *pmx_mode, struct pmx_dev **pmx_devs,/* spear1310 declarations */ #ifdef CONFIG_MACH_SPEAR1310 /* Add spear1310 machine device structure declarations here */ +extern struct amba_device spear1310_uart1_device; +extern struct amba_device spear1310_uart2_device; +extern struct amba_device spear1310_uart3_device; +extern struct amba_device spear1310_uart4_device; +extern struct amba_device spear1310_uart5_device;extern struct platform_device spear1310_can0_device;extern struct platform_device spear1310_can1_device; +extern struct platform_device spear1310_i2c1_device; +extern struct platform_device spear1310_ras_fsmc_nor_device;/* Add spear1310 machine function declarations here */ void __init spear1310_init(struct pmx_mode *pmx_mode, struct pmx_dev **pmx_devs,
arch/arm/mach-spear13xx/include/mach/irqs.h +5 -5
@@ -97,11 +97,11 @@#define IRQ_CCAN1 (IRQ_SHPI_START + 83)#define IRQ_TDM0 (IRQ_SHPI_START + 84)#define IRQ_TDM1 (IRQ_SHPI_START + 85) -#define IRQ_UART0 (IRQ_SHPI_START + 86) -#define IRQ_UART1 (IRQ_SHPI_START + 87) -#define IRQ_UART2 (IRQ_SHPI_START + 88) -#define IRQ_UART3 (IRQ_SHPI_START + 89) -#define IRQ_UART4 (IRQ_SHPI_START + 90) +#define IRQ_UART1 (IRQ_SHPI_START + 86) +#define IRQ_UART2 (IRQ_SHPI_START + 87) +#define IRQ_UART3 (IRQ_SHPI_START + 88) +#define IRQ_UART4 (IRQ_SHPI_START + 89) +#define IRQ_UART5 (IRQ_SHPI_START + 90)#define IRQ_I2C_CNTR (IRQ_SHPI_START + 91)#define IRQ_GMAC0_SBD (IRQ_SHPI_START + 92)#define IRQ_GMAC0_PMT (IRQ_SHPI_START + 93)
arch/arm/mach-spear13xx/include/mach/spear1310.h +34 -0
@@ -16,9 +16,33 @@#ifndef __MACH_SPEAR1310_H#define __MACH_SPEAR1310_H +#define SPEAR1310_TDM_E1_0_BASE UL(0x6C200000) +#define SPEAR1310_TDM_E1_1_BASE UL(0x6C300000) +#define SPEAR1310_RS485_0_BASE UL(0x6C400000) +#define SPEAR1310_RS485_1_BASE UL(0x6C500000) +#define SPEAR1310_RAS_BASE UL(0x6C800000) +#define SPEAR1310_GETH1_BASE UL(0x6D000000) +#define SPEAR1310_GETH2_BASE UL(0x6D100000) +#define SPEAR1310_GETH3_BASE UL(0x6D200000) +#define SPEAR1310_GETH4_BASE UL(0x6D300000) +#define SPEAR1310_UART1_BASE UL(0x6D400000) +#define SPEAR1310_UART2_BASE UL(0x6D500000) +#define SPEAR1310_UART3_BASE UL(0x6D600000) +#define SPEAR1310_UART4_BASE UL(0x6D700000) +#define SPEAR1310_UART5_BASE UL(0x6D800000) +#define SPEAR1310_I2C1_BASE UL(0x6D900000)#define SPEAR1310_CAN0_BASE UL(0x6DA00000)#define SPEAR1310_CAN1_BASE UL(0x6DB00000)#define SPEAR1310_RAS_BASE UL(0x6C800000) +#define SPEAR1310_GETH1_BASE UL(0x6D000000) +#define SPEAR1310_GETH2_BASE UL(0x6D100000) +#define SPEAR1310_GETH3_BASE UL(0x6D200000) +#define SPEAR1310_GETH4_BASE UL(0x6D300000) +#define SPEAR1310_FSMC1_CS0_BASE UL(0x70000000) +#define SPEAR1310_FSMC1_CS1_BASE UL(0x74000000) +#define SPEAR1310_FSMC1_CS2_BASE UL(0x78000000) +#define SPEAR1310_FSMC1_CS3_BASE UL(0x7C000000) +#define SPEAR1310_FSMC1_BASE UL(0x6FF00000)/* RAS Area Control Register */ #define SPEAR1310_RAS_CTRL_REG0 (SPEAR1310_RAS_BASE + 0x0)
@@ -26,6 +50,16 @@#define SPEAR1310_PHY_CLK_MASK 0xF#define SPEAR1310_PHY_CLK_SHIFT 0 +#define RAS_FSMC_MODE_MASK 0x3 +#define RAS_FSMC_MODE_NOR 0 +#define RAS_FSMC_MODE_NAND 1 +#define RAS_FSMC_MODE_SRAM 2 +#define RAS_FSMC_WIDTH_MASK 0x30 +#define RAS_FSMC_WIDTH_8 0x00 +#define RAS_FSMC_WIDTH_16 0x10 +#define RAS_FSMC_WIDTH_32 0x20 +#define RAS_FSMC_CS_SPLIT 0x40 +#endif /* __MACH_SPEAR1310_H */ #endif /* CONFIG_MACH_SPEAR1310 */
arch/arm/mach-spear13xx/spear1310.c +107 -0
125 lines not on this page · raw message
arch/arm/mach-spear13xx/spear1310_evb.c +32 -0
@@ -66,6 +66,13 @@ static struct amba_device *amba_devs[] __initdata = { &spear13xx_gpio_device[1 ], &spear13xx_ssp_device, &spear13xx_uart_device, + +/* spear1310 specific devices */ + &spear1310_uart1_device, + &spear1310_uart2_device, + &spear1310_uart3_device, + &spear1310_uart4_device, + &spear1310_uart5_device, }; static struct platform_device *plat_devs[] __initdata = {
@@ -83,6 +90,7 @@ static struct platform_device *plat_devs[] __initdata = {/* spear1310 specific devices */ &spear1310_can0_device, &spear1310_can1_device, + &spear1310_i2c1_device, };/* keyboard specific platform data */
@@ -129,6 +137,23 @@ int spear1310_pcie_port_is_host(int port) }#endif +static void __init ras_fsmc_config (u32 mode,u32 width) +{ +u32 val, *address; + + address =ioremap (SPEAR1310_RAS_CTRL_REG0 ,SZ_16 ); + + val =readl (address); + val &= ~(RAS_FSMC_MODE_MASK |RAS_FSMC_WIDTH_MASK ); + val |= mode; + val |= width; + val |=RAS_FSMC_CS_SPLIT ; + +writel (val, address); + +iounmap (address); +} +static void __init spear1310_evb_init (void ) {unsigned int i;
@@ -160,6 +185,8 @@ static void __init spear1310_evb_init(void)/* initialize fsmc related data in fsmc plat data */ fsmc_init_board_info (&spear13xx_fsmc_nor_device, partition_info,ARRAY_SIZE (partition_info),FSMC_FLASH_WIDTH8 ); +fsmc_init_board_info (&spear1310_ras_fsmc_nor_device,NULL , +0 ,FSMC_FLASH_WIDTH16 );/* Initialize fsmc regiters */ fsmc_nor_init(&spear13xx_fsmc_nor_device, SPEAR13XX_FSMC_BASE, 0,
@@ -178,6 +205,11 @@ static void __init spear1310_evb_init(void)for (i =0 ; i <ARRAY_SIZE (amba_devs); i++)amba_device_register (amba_devs[i], &iomem_resource); +/* ras fsmc init */ +ras_fsmc_config (RAS_FSMC_MODE_NOR ,RAS_FSMC_WIDTH_16 ); +fsmc_nor_init (&spear1310_ras_fsmc_nor_device,SPEAR1310_FSMC1_BASE ,3 , +FSMC_FLASH_WIDTH16 ); +spi_init (); }
arch/arm/mach-spear3xx/spear310_evb.c +5 -0
@@ -74,6 +74,11 @@ static struct amba_device *amba_devs[] __initdata = { &spear3xx_wdt_device,/* spear310 specific devices */ + &spear310_uart1_device, + &spear310_uart2_device, + &spear310_uart3_device, + &spear310_uart4_device, + &spear310_uart5_device, }; static struct platform_device *plat_devs[] __initdata = {
arch/arm/mach-spear3xx/spear320_evb.c +6 -0
@@ -67,11 +67,16 @@ static struct pmx_dev *pmx_devs[] = {static struct amba_device *amba_devs[]__initdata = {/* spear3xx specific devices */ &spear3xx_gpio_device, + &spear3xx_ssp0_device, &spear3xx_uart_device, &spear3xx_wdt_device,/* spear320 specific devices */ &spear320_clcd_device, + &spear320_ssp_device[0 ], + &spear320_ssp_device[1 ], + &spear320_uart1_device, + &spear320_uart2_device, };static struct platform_device *plat_devs[]__initdata = {
@@ -85,6 +90,7 @@ static struct platform_device *plat_devs[] __initdata = {/* spear320 specific devices */ &spear320_can0_device, &spear320_can1_device, + &spear320_emi_nor_device, &spear320_i2c1_device, &spear320_nand_device, &spear320_plgpio_device,
Signature · 1 line
1.7.2.2
PATCH v3 62/63 ST SPEAr: Adding information in Documentation/ and MAINTAINERS
In reply to Viresh KumarFrom: Shiraz Hashim <[email protected]>
--- Documentation/arm/SPEAr/overview.txt | 34 +++++++++++++++++++++++----------- MAINTAINERS | 6 ++++++ 2 files changed, 29 insertions(+), 11 deletions(-)
Documentation/arm/SPEAr/overview.txt +23 -11
@@ -9,8 +9,9 @@ Introduction The ST Microelectronics SPEAr range of ARM9/CortexA9 System-on-Chip CPUs are supported by the 'spear' platform of ARM Linux. Currently SPEAr300, - SPEAr310, SPEAr320 and SPEAr600 SOCs are supported. Support for the SPEAr13XX - series is in progress. + SPEAr310, SPEAr320, SPEAr600, SPEAr1300 and SPEAr1310 SOCs are supported. + SPEAr3XX and SPEAr6XX are based on ARM9 whereas SPEAr13XX is based on latest + ARM Cortex A9 CPUs. Hierarchy in SPEAr is as follows:
@@ -27,16 +28,25 @@ Introduction - SPEAr600_EVB (Evaluation Board) - SPEAr13XX (13XX SOC series, based on ARM CORTEXA9) - SPEAr1300 (SOC) + - SPEAr1300_EVB (Evaluation Board) + - SPEAr1310 (SOC) + - SPEAr1310_EVB (Evaluation Board) Configuration ------------- - A generic configuration is provided for each machine, and can be used as the + A generic configuration is provided for each machine family, and can be used as the default by - make spear600_defconfig - make spear300_defconfig - make spear310_defconfig - make spear320_defconfig + #make ARCH=arm spear13xx_defconfig + #make ARCH=arm spear3xx_defconfig + #make ARCH=arm spear6xx_defconfig + + Compilation + ----------- + + After applying default configuration, Linux kernel for SPEAr architecture + can be compiled as + #make ARCH=arm CROSS_COMPILE=arm-linux- uImage Layout ------
@@ -48,13 +58,15 @@ Introduction Each machine series have a directory with name arch/arm/mach-spear followed by series name. Like mach-spear3xx, mach-spear6xx and mach-spear13xx. - Common file for machines of spear3xx family is mach-spear3xx/spear3xx.c and for - spear6xx is mach-spear6xx/spear6xx.c. mach-spear* also contain soc/machine + Common file for machines of spear3xx family is mach-spear3xx/spear3xx.c, for + spear6xx is mach-spear6xx/spear6xx.c and similarly for spear13xx is + mach-spear13xx/spear13xx.c. mach-spear* also contain soc/machine specific files, like spear300.c, spear310.c, spear320.c and spear600.c. - mach-spear* also contains board specific files for each machine type. + Board specific files for each machine type is also contained in mach-spear* + folder. Document Author --------------- - Viresh Kumar, (c) 2010 ST Microelectronics + Viresh Kumar, Shiraz Hashim (c) 2010 ST Microelectronics
MAINTAINERS +6 -0
@@ -5597,6 +5597,12 @@ W: http://www.st.com/spear S: Maintained F: arch/arm/plat-spear/ +SPEAR13XX MACHINE SUPPORT +M: Shiraz Hashim <[email protected]> +W: http://www.st.com/spear +S: Maintained +F: arch/arm/mach-spear13xx/ + SPEAR3XX MACHINE SUPPORT M: Viresh Kumar <[email protected]> W: http://www.st.com/spear
Signature · 1 line
1.7.2.2
PATCH v3 63/63 ST SPEAr: Updating defconfigs
In reply to Viresh Kumar--- arch/arm/configs/spear13xx_defconfig | 78 ++++++++++++++++++++++++++++++--- arch/arm/configs/spear3xx_defconfig | 80 +++++++++++++++++++++++++++++++--- arch/arm/configs/spear6xx_defconfig | 72 ++++++++++++++++++++++++++++--- 3 files changed, 211 insertions(+), 19 deletions(-)
arch/arm/configs/spear13xx_defconfig +72 -6
@@ -10,31 +10,94 @@ CONFIG_PLAT_SPEAR=y CONFIG_ARCH_SPEAR13XX=y CONFIG_BOARD_SPEAR1300_EVB=y CONFIG_BOARD_SPEAR1310_EVB=y +CONFIG_PCI=y +CONFIG_PCI_MSI=y +CONFIG_PCIEPORTBUS=y +# CONFIG_PCIEAER is not set CONFIG_SMP=y CONFIG_NR_CPUS=2 CONFIG_AEABI=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT_DETAILS=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_VFP=y CONFIG_BINFMT_MISC=y +CONFIG_PM=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_MULTICAST=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_NET_IPIP=y +CONFIG_ARPD=y +# CONFIG_IPV6 is not set +# CONFIG_WIRELESS is not set CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_CONCAT=y CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_STAA=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_M25P80=y +# CONFIG_M25PXX_USE_FAST_READ is not set +CONFIG_MTD_NAND=y +CONFIG_MTD_NAND_FSMC=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=16384 +CONFIG_SCSI=y +CONFIG_BLK_DEV_SD=y +CONFIG_CHR_DEV_ST=y +CONFIG_CHR_DEV_OSST=y +CONFIG_BLK_DEV_SR=y +CONFIG_CHR_DEV_SG=y +CONFIG_CHR_DEV_SCH=y +CONFIG_NETDEVICES=y +# CONFIG_WLAN is not set CONFIG_INPUT_FF_MEMLESS=y # CONFIG_INPUT_MOUSEDEV_PSAUX is not set -# CONFIG_INPUT_KEYBOARD is not set +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_EVBUG=y +# CONFIG_KEYBOARD_ATKBD is not set +CONFIG_KEYBOARD_SPEAR=y # CONFIG_INPUT_MOUSE is not set CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y # CONFIG_LEGACY_PTYS is not set CONFIG_RAW_DRIVER=y CONFIG_MAX_RAW_DEVS=8192 +CONFIG_I2C=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_DESIGNWARE=y +CONFIG_SPI=y +CONFIG_SPI_PL022=y +CONFIG_SPI_SPIDEV=y +CONFIG_GPIO_SYSFS=y +CONFIG_GPIO_PL061=y # CONFIG_HWMON is not set # CONFIG_HID_SUPPORT is not set -# CONFIG_USB_SUPPORT is not set +CONFIG_USB=y +CONFIG_USB_EHCI_HCD=y +# CONFIG_USB_EHCI_TT_NEWSCHED is not set +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_STORAGE=y +CONFIG_USB_TEST=y +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_SPEAR=y +CONFIG_RTC_CLASS=y CONFIG_EXT2_FS=y CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_SECURITY=y
@@ -42,16 +105,18 @@ CONFIG_EXT3_FS=y # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set CONFIG_EXT3_FS_SECURITY=y CONFIG_AUTOFS4_FS=m -CONFIG_MSDOS_FS=m -CONFIG_VFAT_FS=m +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y CONFIG_FAT_DEFAULT_IOCHARSET="ascii" CONFIG_TMPFS=y CONFIG_JFFS2_FS=y +CONFIG_NFS_FS=y +CONFIG_ROOT_NFS=y +# CONFIG_RPCSEC_GSS_KRB5 is not set CONFIG_PARTITION_ADVANCED=y -CONFIG_NLS=y CONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_CODEPAGE_437=y -CONFIG_NLS_ASCII=m +CONFIG_NLS_ASCII=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y
@@ -59,3 +124,4 @@ CONFIG_DETECT_HUNG_TASK=y CONFIG_DEBUG_SPINLOCK=y CONFIG_DEBUG_SPINLOCK_SLEEP=y CONFIG_DEBUG_INFO=y +# CONFIG_ARM_UNWIND is not set
arch/arm/configs/spear3xx_defconfig +73 -7
116 lines not on this page · raw message
arch/arm/configs/spear6xx_defconfig +66 -6
106 lines not on this page · raw message
Signature · 1 line
1.7.2.2
PATCH RESEND v3 16/63 rtc: Adding support for spear rtc
In reply to Viresh KumarFrom: Rajeev Kumar <[email protected]>
--- drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-spear.c | 534 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 543 insertions(+), 0 deletions(-) create mode 100644 drivers/rtc/rtc-spear.c
drivers/rtc/Kconfig +8 -0
@@ -636,6 +636,14 @@ config RTC_DRV_WM8350 This driver can also be built as a module. If so, the module will be called "rtc-wm8350". +config RTC_DRV_SPEAR + tristate "SPEAR ST RTC" + depends on PLAT_SPEAR + default y + help + If you say Y here you will get support for the RTC found on + spear + config RTC_DRV_PCF50633 depends on MFD_PCF50633 tristate "NXP PCF50633 RTC"
drivers/rtc/Makefile +1 -0
@@ -88,6 +88,7 @@ obj-$(CONFIG_RTC_DRV_S35390A) += rtc-s35390a.o obj-$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o obj-$(CONFIG_RTC_DRV_SA1100) += rtc-sa1100.o obj-$(CONFIG_RTC_DRV_SH) += rtc-sh.o +obj-$(CONFIG_RTC_DRV_SPEAR) += rtc-spear.o obj-$(CONFIG_RTC_DRV_STARFIRE) += rtc-starfire.o obj-$(CONFIG_RTC_DRV_STK17TA8) += rtc-stk17ta8.o obj-$(CONFIG_RTC_DRV_STMP) += rtc-stmp3xxx.o
drivers/rtc/rtc-spear.c new file +534 -0
534 lines not on this page · raw message
Signature · 1 line
1.7.2.2
PATCH v3 39/63 GIC: Added dummy handlers for Power Management Suspend Resume
In reply to Viresh KumarAnd still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.html
Quoted 52 lines · Viresh Kumar
From: Deepak Sikri <[email protected]>
enable_irq_wake()has a callback for interrupt controllers. But since gic handler did not had this call back associated, it was always returning-ENXIO, which was breaking the existing drivers. This patch adds dummy handlers in gic in order to avoid breaking of existing drivers.Signed-off-by Deepak Sikri <[email protected]>Signed-off-by Viresh Kumar <[email protected]>--- arch/arm/common/gic.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)arch/arm/common/gic.c +13
-0@@ -193,6 +193,18 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc) chip->unmask (irq); } +#ifdef CONFIG_PM + +static int gic_set_wake (unsigned int irq,unsigned int on) +{ +return 0 ; +} + +#else + +#define gic_set_wake NULL +#endif +static struct irq_chip gic_chip = { .name ="GIC" , .ack = gic_ack_irq,@@ -202,6 +214,7 @@ static struct irq_chip gic_chip = {#ifdef CONFIG_SMP .set_affinity = gic_set_cpu, #endif + .set_wake = gic_set_wake, };void __init gic_cascade_irq (unsigned int gic_nr,unsigned int irq)Signature · 7 lines
1.7.2.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 39/63 GIC: Added dummy handlers for Power Management Suspend Resume
Quoted 4 lines · Russell King - ARM Linux
And still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.html
Russell,
Actually, when we discussed all this, we didn't came to any conclusion, and so i asked you: should we go ahead with this patch or drop it?
http://lists.arm.linux.org.uk/lurker/message/20100930.053358.8e0c62e6.en.html
But, i didn't got any reply so i resent it.
What do you suggest?
How should we go ahead with this issue?
Signature · 1 line
viresh
PATCH v3 39/63 GIC: Added dummy handlers for Power Management Suspend Resume
Quoted 10 lines · viresh kumar
Quoted 4 lines · Russell King - ARM Linux
And still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.html
Russell,
Actually, when we discussed all this, we didn't came to any conclusion, and so i asked you: should we go ahead with this patch or drop it?
Yes, I didn't bother replying any further because it seemed that no one was listening to me.
I think over the four or five emails my position on the patch was pretty
clear: I do _not_ like it one bit, and I still do not like it.
It is a hack, plain and simple. You're adding code to misrepresent what the hardware can do. You're fooling the system into thinking that the GIC can control wake-up sources, when in fact the GIC has zero wakeup capabilities what so ever.
As I pointed out in the message above, if you do this, then drivers have NO WAY to detect whether the interrupt controller they're connected to is wake-up capable or not.
http://lists.arm.linux.org.uk/lurker/message/20100920.134808.634d6ea1.en.html
I still don't know what your driver code looks like, yet I've given you a suggestion to solve your problem in a subsequent reply (see the URL at the top of this message) which never really got a reply from you.
It seems to me that as soon as I asked for driver code, ST lost all interest in discussing the issue any further, as there was no further technical discussion coming from _any_ ST people.
PATCH v3 39/63 GIC: Added dummy handlers for Power ManagementSuspend Resume
Quoted 3 lines
-----Original Message-----
From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm- kernel-bounces at lists.infradead.org] On Behalf Of Russell King - ARM
Linux
Quoted 8 lines
Sent: Monday, December 20, 2010 5:20 PM
To: viresh kumar
Cc: Rajeev KUMAR; Armando VISCONTI; Vipin KUMAR; Shiraz HASHIM; Amit VIRDI; Vipul Kumar SAMAR; Deepak SIKRI; linux-arm-
kernel at lists.infradead.org
Subject: Re: [PATCH V3 39/63] GIC: Added dummy handlers for Power ManagementSuspend Resume
Quoted 7 lines
Quoted 5 lines · viresh kumar
Quoted 4 lines · Russell King - ARM Linux
And still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.h
Quoted 5 lines
tml
Quoted 4 lines
Russell,
Actually, when we discussed all this, we didn't came to any
conclusion,
Quoted 8 lines
Quoted 1 line
and so i asked you: should we go ahead with this patch or drop it?
Yes, I didn't bother replying any further because it seemed that no one was listening to me.
I think over the four or five emails my position on the patch was pretty
clear: I do _not_ like it one bit, and I still do not like it.
Quoted 10 lines
It is a hack, plain and simple. You're adding code to misrepresent what the hardware can do. You're fooling the system into thinking that the GIC can control wake-up sources, when in fact the GIC has zero wakeup capabilities what so ever.
As I pointed out in the message above, if you do this, then drivers have NO WAY to detect whether the interrupt controller they're connected to is wake-up capable or not.
http://lists.arm.linux.org.uk/lurker/message/20100920.134808.634d6ea1.en.h
Quoted 10 lines
tml
I still don't know what your driver code looks like, yet I've given you a suggestion to solve your problem in a subsequent reply (see the URL at the top of this message) which never really got a reply from you.
It seems to me that as soon as I asked for driver code, ST lost all interest in discussing the issue any further, as there was no further technical discussion coming from _any_ ST people.
Just for information, we did found a serial driver BUG is similar aspect. Below is the thread.
http://ns3.spinics.net/lists/linux-omap/msg41240.html
Regards,
Santosh
PATCH v3 39/63 GIC: Added dummy handlers for Power ManagementSuspend Resume
Quoted 51 lines · Santosh Shilimkar
Quoted 3 lines
-----Original Message-----
From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm- kernel-bounces at lists.infradead.org] On Behalf Of Russell King - ARMLinux
Quoted 8 lines
Sent: Monday, December 20, 2010 5:20 PM
To: viresh kumar
Cc: Rajeev KUMAR; Armando VISCONTI; Vipin KUMAR; Shiraz HASHIM; Amit VIRDI; Vipul Kumar SAMAR; Deepak SIKRI; linux-arm-
kernel at lists.infradead.org
Subject: Re: [PATCH V3 39/63] GIC: Added dummy handlers for Power ManagementSuspend ResumeQuoted 7 lines
Quoted 5 lines · viresh kumar
Quoted 4 lines · Russell King - ARM Linux
And still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.h
Quoted 5 lines
tml
Quoted 4 lines
Russell,
Actually, when we discussed all this, we didn't came to any
conclusion,
Quoted 8 lines
Quoted 1 line
and so i asked you: should we go ahead with this patch or drop it?
Yes, I didn't bother replying any further because it seemed that no one was listening to me.
I think over the four or five emails my position on the patch was pretty
clear: I do _not_ like it one bit, and I still do not like it.Quoted 10 lines
It is a hack, plain and simple. You're adding code to misrepresent what the hardware can do. You're fooling the system into thinking that the GIC can control wake-up sources, when in fact the GIC has zero wakeup capabilities what so ever.
As I pointed out in the message above, if you do this, then drivers have NO WAY to detect whether the interrupt controller they're connected to is wake-up capable or not.
http://lists.arm.linux.org.uk/lurker/message/20100920.134808.634d6ea1.en.h
Quoted 6 lines
tml
I still don't know what your driver code looks like, yet I've given you a suggestion to solve your problem in a subsequent reply (see the URL at the top of this message) which never really got a reply from you.
Quoted 7 lines
Quoted 4 lines
It seems to me that as soon as I asked for driver code, ST lost all interest in discussing the issue any further, as there was no further technical discussion coming from _any_ ST people.
Just for information, we did found a serial driver BUG is similar aspect. Below is the thread.
http://ns3.spinics.net/lists/linux-omap/msg41240.html
So, the serial_core layer isn't properly tracking whether enable_irq_wake() succeeded, and is then calling disable_irq_wake(). That's a bug in the serial_core layer which needs fixing.
PATCH v3 39/63 GIC: Added dummy handlers for PowerManagementSuspend Resume
Quoted 10 lines
-----Original Message-----
From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
Sent: Monday, December 20, 2010 5:59 PM
To: Santosh Shilimkar
Cc: viresh kumar; Rajeev KUMAR; Armando VISCONTI; Vipin KUMAR; Shiraz HASHIM; Amit VIRDI; Vipul Kumar SAMAR; Deepak SIKRI; linux-arm- kernel at lists.infradead.org
Subject: Re: [PATCH V3 39/63] GIC: Added dummy handlers for PowerManagementSuspend Resume
Quoted 3 lines
Quoted 2 lines · Santosh Shilimkar
Quoted 2 lines
-----Original Message-----
From: linux-arm-kernel-bounces at lists.infradead.org
[mailto:linux-arm-
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
kernel-bounces at lists.infradead.org] On Behalf Of Russell King - ARM
Linux
Quoted 8 lines
Sent: Monday, December 20, 2010 5:20 PM
To: viresh kumar
Cc: Rajeev KUMAR; Armando VISCONTI; Vipin KUMAR; Shiraz HASHIM; Amit VIRDI; Vipul Kumar SAMAR; Deepak SIKRI; linux-arm-
kernel at lists.infradead.org
Subject: Re: [PATCH V3 39/63] GIC: Added dummy handlers for Power ManagementSuspend Resume
Quoted 9 lines
Quoted 8 lines
Quoted 7 lines · viresh kumar
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines
And still this patch gets reposted a few more times despite my objections:
http://lists.arm.linux.org.uk/lurker/message/20100920.150749.c97eda0d.en.h
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
tml
Quoted 4 lines
Russell,
Actually, when we discussed all this, we didn't came to any
conclusion,
Quoted 3 lines
Quoted 1 line
and so i asked you: should we go ahead with this patch or drop it?
Yes, I didn't bother replying any further because it seemed that no
one
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
was listening to me.
I think over the four or five emails my position on the patch was
pretty
Quoted 3 lines
Quoted 3 lines
clear: I do _not_ like it one bit, and I still do not like it.
It is a hack, plain and simple. You're adding code to misrepresent
what
Quoted 1 line
Quoted 1 line
the hardware can do. You're fooling the system into thinking that
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
GIC can control wake-up sources, when in fact the GIC has zero
wakeup
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
capabilities what so ever.
As I pointed out in the message above, if you do this, then drivers
have
Quoted 1 line
Quoted 1 line
NO WAY to detect whether the interrupt controller they're connected
to
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
is wake-up capable or not.
http://lists.arm.linux.org.uk/lurker/message/20100920.134808.634d6ea1.en.h
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
tml
I still don't know what your driver code looks like, yet I've given
you
Quoted 1 line
Quoted 1 line
a suggestion to solve your problem in a subsequent reply (see the
URL
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
at the top of this message) which never really got a reply from you.
It seems to me that as soon as I asked for driver code, ST lost all interest in discussing the issue any further, as there was no
further
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
technical discussion coming from _any_ ST people.
Just for information, we did found a serial driver BUG is similar aspect. Below is the thread.
http://ns3.spinics.net/lists/linux-omap/msg41240.htmlSo, the
serial_corelayer isn't properly tracking whetherenable_irq_wake()
succeeded, and is then callingdisable_irq_wake(). That's a bug in theserial_corelayer which needs fixing.
Patch is already posted for this on serial list.
PATCH v3 39/63 GIC: Added dummy handlers for Power Management Suspend Resume
In reply to Russell King - ARM LinuxQuoted 4 lines · Russell King - ARM Linux
It is a hack, plain and simple. You're adding code to misrepresent what the hardware can do. You're fooling the system into thinking that the GIC can control wake-up sources, when in fact the GIC has zero wakeup capabilities what so ever.
Ok, understood.
I will drop this patch while sending this patchset to your patch tracker. Also we will send driver fixes separately to respective mailing lists, in which we find issue, similar to serial_core.c.
Signature · 1 line
viresh
v3 cover Updating SPEAr Support
In reply to Viresh KumarYou've just submitted this entire set to the patch system. I suspect you're rushing to get these in so you can go away on vacation and hope that someone merges them for you.
It's Christmas time, many people are probably not around or are otherwise busy, and probably haven't looked at this patches.
I certainly haven't been over them again because I've spent the last four days trying to get PL08x DMA support working properly - and I'm not looking at them until the new year - I am entitied to a holiday too!
Now that you've buried everyone elses patches way down in the patch system, I'm probably not going to even bother looking at the patch system again until this coming merge window has been and gone.
Quoted 315 lines · Viresh Kumar
Following set of patches:
- updates SPEAr3xx, 6xx support
- Adds support for SPEAr13xx
- Removes Multiple defconfigs per machine familyChanges since V2:
- Following patches are removed from this patchset, as they are still under review:
ST SPEAr: PCIE gadget suppport
ST SPEAr13xx: Adding machine support for pci gadget
ST SPEAr: Add smi driver for serial NOR flash
ST SPEAr: Adding support for serial nor flash in all spear platforms
- Following patches are already present in linus-next, so they are also removed from this patchset:
mtd/fsmc.h: includinglinux/io.hfor definition of readl
Keyboard: Adding support for spear-keyboard
USB host: Adding USB ehci & ohci support for spear platform
- spear-keyboard machine support is updated according to updations in driver (driver is already in linus-next)
- rtc driver is updated and ioctl routine is removed.Changes since V1:
- sev definitions moved tosystem.hand removed from spear and omap archs
- bug fix added in system controller filesp810.h
- Review Comments incorporated
- Driver and machine support are divided into separate patches
- Nand Driver is removed from patch list as it is already floated by Linus Walleij.
- Few later patches of SPEAr13xx Patches are merged with initial patches of SPEAr13xx
- Smaller Defconfigs are used instead of large.
- Clock renaming & minor corrections are moved to clock specific patches from peripheral machine support patches.
- Removed Commented code related to SPI
- [PATCH] Incrementing theecc_posarray to contain 128 char - is removed from list
- Board specific code is moved to *evb.c files from machine files for EMI NOR
- replaced readl with__raw_readlinuncompress.hin plat-spear/include/plat/Rebased on: v2.6.37-rc6
Bhupesh Sharma (1):
ST SPEAr 13xx : Adding support for SPEAr1310Deepak Sikri (6):
ST SPEAr: Adding machine support for USB host
SPEAr Clock Framework: Adding support for PLL frequency change SPEAr Power Management: Added the support for Standby mode.
GIC: Added dummy handlers for Power Management Suspend Resume SPEAr CPU freq: Adding support for CPU Freq framework ST SPEAr13xx: Adding CPU hotplug support added for SMP platformsPratyush Anand (1):
ST SPEAr: Added PCIE host controller base driver support.Rajeev Kumar (4):
rtc: Adding support for spear rtc
ST SPEAr: Adding machine support for rtc-spear ST SPEAr: adding support for synopsis i2c designware ST SPEAr: Adding machine support for keyboardRyan Mallon (5):
SPEAr3xx: Make local structures static
SPEAR3xx: Rename register/irq defines to remove naming conflicts
SPEAr3xx: Reworkpmx_devcode to remove conflicts
SPEAr3xx: Rework KConfig to allow all boards to be compiled in
SPEAr3xx: Replace defconfigs with single unified defconfigShiraz Hashim (14):
ARM: move sev definition to commonsystem.hinclude file sp810 Fix: Switch to slow mode beforesysctl_soft_resetST SPEAr: Formalized timer support
ST SPEAr13XX: Adding machine specific header files
ST SPEAr13XX: Adding machine specific src files
ST SPEAr: Adding support for SPEAr13xx SoC in spear generic plat/ ST SPEAr13XX: Added compilation support inarch/arm/ST SPEAr1300: Adding default config file
ST SPEAr: Adding Debugfs support on clock framework
ST SPEAr: Replacing SIZE macro's with actual required size
SPEAr: defines base addresses as ulong.
ST SPEAr13xx: add L2 cache support
ST SPEAr13xx: Modified static mappings
ST SPEAr: Adding information inDocumentation/andMAINTAINERSVipin Kumar (7):
ST SPEAr: Adding machine support for nand
Newly erased page read workaround
ST SPEAr : EMI (Extrenal Memory Interface) controller driver ST SPEAr : FSMC (Flexible Static Memory Controller) NOR interface
driver
SPEAr : Pad multiplexing handling modified
SPEAr13xx : Fixed part devices in SPEAr13xx addded to the generic
implementation
SPEAr : Updating pad multiplexing supportVipul-kumar Samar (1):
ST SPEAr: Adding support for CLCD on SPEAr3xx/6xxViresh Kumar (24):
ST SPEAr: Padmux code Updated
ST SPEAr: Making clock functions more generic
ST SPEAr: Updating Clock Support
ST SPEAr: Correcting SOC Config base address for spear320 ST SPEAr: Adding PLGPIO driver for spear platform
ST SPEAr: Added ARM PL061 GPIO Support on SPEAr13xx and modified
resource size
ST SPEAr: Adding support for ST's PWM IP
ST SPEAr: Adding Watchdog support
ST SPEAr: Adding support for SSP PL022
ST SPEAr: Adding support for SDHCI (SDIO)
ST SPEAr: Changing resource size of amba devices toSZ_4KST SPEAr: Adding miscellaneous devices
ST SPEAr: Adding support for DDR in clock framework
ST SPEAr: replace readl, writel with__raw_readl,__raw_writelin
uncompress.h
SPEAr: Adding and Updating Clock definitions
ST SPEAr3xx: Passing pmx devices address from machine *.c files ST SPEAr Clock Framework: Updating for single image solution ST SPEAr: Appending spear3** with global structures
ST SPEAr3xx: Updating plgpio and emi source to make it compliant with
single image strategy
SPEAr6xx: ReworkKconfigfor single image solution
ST SPEAR6xx: renamingspear600_defconfigasspear6xx_defconfigST SPEAr13xx: Pass default padmux settings as parameter to
spear13**_init routine
ST SPEAr: Adding devices & clocks
ST SPEAr: Updating defconfigsDocumentation/arm/SPEAr/overview.txt | 34 +- MAINTAINERS | 6 + arch/arm/Kconfig | 9 +- arch/arm/Makefile | 2 + arch/arm/common/gic.c | 13 + arch/arm/configs/spear13xx_defconfig | 127 ++ arch/arm/configs/spear300_defconfig | 51 - arch/arm/configs/spear310_defconfig | 52 - arch/arm/configs/spear320_defconfig | 52 - arch/arm/configs/spear3xx_defconfig | 119 ++ arch/arm/configs/spear600_defconfig | 49 - arch/arm/configs/spear6xx_defconfig | 109 ++ arch/arm/include/asm/hardware/sp810.h | 3 + arch/arm/include/asm/system.h | 7 + arch/arm/mach-spear13xx/Kconfig | 32 + arch/arm/mach-spear13xx/Makefile | 23 + arch/arm/mach-spear13xx/Makefile.boot | 3 + arch/arm/mach-spear13xx/clock.c | 1204 ++++++++++++++++++++ arch/arm/mach-spear13xx/fsmc-nor.c | 85 ++ arch/arm/mach-spear13xx/headsmp.S | 95 ++ arch/arm/mach-spear13xx/hotplug.c | 135 +++ arch/arm/mach-spear13xx/include/mach/clkdev.h | 19 + arch/arm/mach-spear13xx/include/mach/debug-macro.S | 14 + arch/arm/mach-spear13xx/include/mach/entry-macro.S | 88 ++ arch/arm/mach-spear13xx/include/mach/generic.h | 276 +++++ arch/arm/mach-spear13xx/include/mach/gpio.h | 37 + arch/arm/mach-spear13xx/include/mach/hardware.h | 37 + arch/arm/mach-spear13xx/include/mach/io.h | 19 + arch/arm/mach-spear13xx/include/mach/irqs.h | 153 +++ arch/arm/mach-spear13xx/include/mach/memory.h | 19 + arch/arm/mach-spear13xx/include/mach/misc_regs.h | 386 +++++++ arch/arm/mach-spear13xx/include/mach/pcie.h | 170 +++ arch/arm/mach-spear13xx/include/mach/smp.h | 33 + arch/arm/mach-spear13xx/include/mach/spear.h | 95 ++ arch/arm/mach-spear13xx/include/mach/spear1300.h | 21 + arch/arm/mach-spear13xx/include/mach/spear1310.h | 65 ++ arch/arm/mach-spear13xx/include/mach/suspend.h | 47 + arch/arm/mach-spear13xx/include/mach/system.h | 39 + arch/arm/mach-spear13xx/include/mach/timex.h | 19 + arch/arm/mach-spear13xx/include/mach/uncompress.h | 19 + arch/arm/mach-spear13xx/include/mach/vmalloc.h | 18 + arch/arm/mach-spear13xx/localtimer.c | 25 + arch/arm/mach-spear13xx/pcie.c | 861 ++++++++++++++ arch/arm/mach-spear13xx/platsmp.c | 200 ++++ arch/arm/mach-spear13xx/pm.c | 107 ++ arch/arm/mach-spear13xx/sleep.S | 435 +++++++ arch/arm/mach-spear13xx/spear1300.c | 38 + arch/arm/mach-spear13xx/spear1300_evb.c | 168 +++ arch/arm/mach-spear13xx/spear1310.c | 519 +++++++++ arch/arm/mach-spear13xx/spear1310_evb.c | 222 ++++ arch/arm/mach-spear13xx/spear13xx.c | 1085 ++++++++++++++++++ arch/arm/mach-spear3xx/Kconfig | 30 +- arch/arm/mach-spear3xx/Kconfig300 | 17 - arch/arm/mach-spear3xx/Kconfig310 | 17 - arch/arm/mach-spear3xx/Kconfig320 | 17 - arch/arm/mach-spear3xx/Makefile | 4 + arch/arm/mach-spear3xx/clock.c | 576 ++++++++-- arch/arm/mach-spear3xx/emi.c | 117 ++ arch/arm/mach-spear3xx/include/mach/emi.h | 65 ++ arch/arm/mach-spear3xx/include/mach/generic.h | 280 +++-- arch/arm/mach-spear3xx/include/mach/gpio.h | 143 +++ arch/arm/mach-spear3xx/include/mach/irqs.h | 206 ++-- arch/arm/mach-spear3xx/include/mach/misc_regs.h | 12 +- arch/arm/mach-spear3xx/include/mach/spear.h | 134 +-- arch/arm/mach-spear3xx/include/mach/spear300.h | 86 +- arch/arm/mach-spear3xx/include/mach/spear310.h | 85 +- arch/arm/mach-spear3xx/include/mach/spear320.h | 121 +-- arch/arm/mach-spear3xx/include/mach/suspend.h | 44 + arch/arm/mach-spear3xx/spear300.c | 640 ++++++++--- arch/arm/mach-spear3xx/spear300_evb.c | 114 ++- arch/arm/mach-spear3xx/spear310.c | 423 ++++++-- arch/arm/mach-spear3xx/spear310_evb.c | 140 ++- arch/arm/mach-spear3xx/spear320.c | 844 +++++++++++---- arch/arm/mach-spear3xx/spear320_evb.c | 125 ++- arch/arm/mach-spear3xx/spear3xx.c | 741 ++++++++++--- arch/arm/mach-spear6xx/Kconfig | 15 +- arch/arm/mach-spear6xx/Kconfig600 | 17 - arch/arm/mach-spear6xx/clock.c | 438 ++++++-- arch/arm/mach-spear6xx/include/mach/generic.h | 19 +- arch/arm/mach-spear6xx/include/mach/gpio.h | 27 + arch/arm/mach-spear6xx/include/mach/misc_regs.h | 12 +- arch/arm/mach-spear6xx/include/mach/spear.h | 174 +--- arch/arm/mach-spear6xx/include/mach/suspend.h | 44 + arch/arm/mach-spear6xx/spear600_evb.c | 40 +- arch/arm/mach-spear6xx/spear6xx.c | 344 ++++++- arch/arm/mm/Kconfig | 2 +- arch/arm/plat-spear/Kconfig | 16 + arch/arm/plat-spear/Makefile | 21 +- arch/arm/plat-spear/clcd.c | 114 ++ arch/arm/plat-spear/clock.c | 905 +++++++++++++--- arch/arm/plat-spear/cpufreq.c | 159 +++ arch/arm/plat-spear/i2c_eval_board.c | 29 + arch/arm/plat-spear/include/plat/clock.h | 189 +++- arch/arm/plat-spear/include/plat/fsmc.h | 51 + arch/arm/plat-spear/include/plat/gpio.h | 35 + arch/arm/plat-spear/include/plat/keyboard.h | 143 +++ arch/arm/plat-spear/include/plat/padmux.h | 34 +- arch/arm/plat-spear/include/plat/spi.h | 74 ++ arch/arm/plat-spear/include/plat/system.h | 2 +- arch/arm/plat-spear/include/plat/uncompress.h | 4 +- arch/arm/plat-spear/padmux.c | 54 +- arch/arm/plat-spear/plgpio.c | 474 ++++++++ arch/arm/plat-spear/pll_clk.S | 187 +++ arch/arm/plat-spear/pm.c | 104 ++ arch/arm/plat-spear/pwm.c | 484 ++++++++ arch/arm/plat-spear/sleep.S | 288 +++++ arch/arm/plat-spear/time.c | 21 +- drivers/mtd/nand/fsmc_nand.c | 28 +- drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-spear.c | 534 +++++++++ drivers/video/Kconfig | 14 +- include/linux/mtd/fsmc.h | 2 + 113 files changed, 15539 insertions(+), 1993 deletions(-) create mode 100644 arch/arm/configs/spear13xx_defconfig delete mode 100644 arch/arm/configs/spear300_defconfig delete mode 100644 arch/arm/configs/spear310_defconfig delete mode 100644 arch/arm/configs/spear320_defconfig create mode 100644 arch/arm/configs/spear3xx_defconfig delete mode 100644 arch/arm/configs/spear600_defconfig create mode 100644 arch/arm/configs/spear6xx_defconfig create mode 100644 arch/arm/mach-spear13xx/Kconfig create mode 100644 arch/arm/mach-spear13xx/Makefile create mode 100644 arch/arm/mach-spear13xx/Makefile.boot create mode 100644 arch/arm/mach-spear13xx/clock.c create mode 100644 arch/arm/mach-spear13xx/fsmc-nor.c create mode 100644 arch/arm/mach-spear13xx/headsmp.S create mode 100644 arch/arm/mach-spear13xx/hotplug.c create mode 100644 arch/arm/mach-spear13xx/include/mach/clkdev.h create mode 100644 arch/arm/mach-spear13xx/include/mach/debug-macro.S create mode 100644 arch/arm/mach-spear13xx/include/mach/entry-macro.S create mode 100644 arch/arm/mach-spear13xx/include/mach/generic.h create mode 100644 arch/arm/mach-spear13xx/include/mach/gpio.h create mode 100644 arch/arm/mach-spear13xx/include/mach/hardware.h create mode 100644 arch/arm/mach-spear13xx/include/mach/io.h create mode 100644 arch/arm/mach-spear13xx/include/mach/irqs.h create mode 100644 arch/arm/mach-spear13xx/include/mach/memory.h create mode 100644 arch/arm/mach-spear13xx/include/mach/misc_regs.h create mode 100644 arch/arm/mach-spear13xx/include/mach/pcie.h create mode 100644 arch/arm/mach-spear13xx/include/mach/smp.h create mode 100644 arch/arm/mach-spear13xx/include/mach/spear.h create mode 100644 arch/arm/mach-spear13xx/include/mach/spear1300.h create mode 100644 arch/arm/mach-spear13xx/include/mach/spear1310.h create mode 100644 arch/arm/mach-spear13xx/include/mach/suspend.h create mode 100644 arch/arm/mach-spear13xx/include/mach/system.h create mode 100644 arch/arm/mach-spear13xx/include/mach/timex.h create mode 100644 arch/arm/mach-spear13xx/include/mach/uncompress.h create mode 100644 arch/arm/mach-spear13xx/include/mach/vmalloc.h create mode 100644 arch/arm/mach-spear13xx/localtimer.c create mode 100644 arch/arm/mach-spear13xx/pcie.c create mode 100644 arch/arm/mach-spear13xx/platsmp.c create mode 100644 arch/arm/mach-spear13xx/pm.c create mode 100644 arch/arm/mach-spear13xx/sleep.S create mode 100644 arch/arm/mach-spear13xx/spear1300.c create mode 100644 arch/arm/mach-spear13xx/spear1300_evb.c create mode 100644 arch/arm/mach-spear13xx/spear1310.c create mode 100644 arch/arm/mach-spear13xx/spear1310_evb.c create mode 100644 arch/arm/mach-spear13xx/spear13xx.c delete mode 100644 arch/arm/mach-spear3xx/Kconfig300 delete mode 100644 arch/arm/mach-spear3xx/Kconfig310 delete mode 100644 arch/arm/mach-spear3xx/Kconfig320 create mode 100644 arch/arm/mach-spear3xx/emi.c create mode 100644 arch/arm/mach-spear3xx/include/mach/emi.h create mode 100644 arch/arm/mach-spear3xx/include/mach/suspend.h delete mode 100644 arch/arm/mach-spear6xx/Kconfig600 create mode 100644 arch/arm/mach-spear6xx/include/mach/suspend.h create mode 100644 arch/arm/plat-spear/clcd.c create mode 100644 arch/arm/plat-spear/cpufreq.c create mode 100644 arch/arm/plat-spear/i2c_eval_board.c create mode 100644 arch/arm/plat-spear/include/plat/fsmc.h create mode 100644 arch/arm/plat-spear/include/plat/keyboard.h create mode 100644 arch/arm/plat-spear/include/plat/spi.h create mode 100644 arch/arm/plat-spear/plgpio.c create mode 100644 arch/arm/plat-spear/pll_clk.S create mode 100644 arch/arm/plat-spear/pm.c create mode 100644 arch/arm/plat-spear/pwm.c create mode 100644 arch/arm/plat-spear/sleep.S create mode 100644 drivers/rtc/rtc-spear.cSignature · 7 lines
1.7.2.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
v3 cover Updating SPEAr Support
Quoted 7 lines · Russell King - ARM Linux
You've just submitted this entire set to the patch system. I suspect you're rushing to get these in so you can go away on vacation and hope that someone merges them for you.
It's Christmas time, many people are probably not around or are otherwise busy, and probably haven't looked at this patches.
Quoted 7 lines
I certainly haven't been over them again because I've spent the last four days trying to get PL08x DMA support working properly - and I'm not looking at them until the new year - I am entitied to a holiday too!
Now that you've buried everyone elses patches way down in the patch system, I'm probably not going to even bother looking at the patch system again until this coming merge window has been and gone.
Russell,
Actually, we didn't get much review comments on V2 and V3 was almost V2, (just few patches are removed and some already got into mainline), so we thought we could submit V3 to patch tracker.
Merry Christmas.
Signature · 1 line
viresh
PATCH v3 36/63 ST SPEAr : FSMC (Flexible Static Memory Controller) NOR interface driver
In reply to Viresh Kumar2010/12/20 Viresh Kumar <[email protected]>:
Quoted 4 lines
SPEAr1300 SoC supports FSMC to interface with various memories (NOR/NAND/SRAM). This patch adds the support for FSMC over NOR interface.
The driver being used is
driver/mtd/maps/physmap.c
OK..
(...)
arch/arm/mach-spear13xx/fsmc-nor.c
Quoted 5 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +0
-0
What is this file doing in mach-spear13xx? Several other platforms like U300 and Nomadik use the same NOR controller.
This should be in drivers/mtd/* somewhere I believe?
Quoted 10 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +9
-0@@ -0,0 +1,85 @@ +/* +* arch/arm/mach-spear13xx/fsmc-nor.c +* +* FSMC (Flexible Static Memory Controller) interface for NOR +* +* Copyright (C) 2010 ST Microelectronics +* Vipin Kumar<[email protected]> +* +* This file is licensed under the terms of the GNU General Public
arch/arm/mach-spear13xx/fsmc-nor.c line 19
Quoted 10 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +10
-0+* License version 2. This program is licensed "as is" without any +* warranty of any kind, whether express or implied. +*/ + +#include <linux/clk.h> +#include <linux/err.h> +#include <linux/init.h> +#include <linux/err.h> +#include <linux/io.h> +#include <plat/fsmc.h>
Use <linux/mtd/fsmc.h> as include file, get rid of plat/fsmc.h. Extend that .h file with the stuff you need.
We need to keep definitions for MTD NOR, NAND and OneNAND using FSMC in this file so as to keep things simple. One header file is enough, and it's very generic too, FSMC is not for plat-spear/* but also U300, Nomadik and Ux500.
Yours,
Linus Walleij
PATCH v3 36/63 ST SPEAr : FSMC (Flexible Static Memory Controller) NOR interface driver
Linus,
Quoted 2 lines · Linus Walleij
2010/12/20 Viresh Kumar <[email protected]>:
(...)
Quoted 35 lines
arch/arm/mach-spear13xx/fsmc-nor.c
Quoted 5 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +0
-0What is this file doing in mach-spear13xx? Several other platforms like U300 and Nomadik use the same NOR controller.
This should be in
drivers/mtd/*somewhere I believe?Quoted 10 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +9
-0@@ -0,0 +1,85 @@ +/* +* arch/arm/mach-spear13xx/fsmc-nor.c +* +* FSMC (Flexible Static Memory Controller) interface for NOR +* +* Copyright (C) 2010 ST Microelectronics +* Vipin Kumar<[email protected]> +* +* This file is licensed under the terms of the GNU General Public arch/arm/mach-spear13xx/fsmc-nor.c line 19
Quoted 10 lines
arch/arm/mach-spear13xx/fsmc-nor.c new file +10
-0+* License version 2. This program is licensed "as is" without any +* warranty of any kind, whether express or implied. +*/ + +#include <linux/clk.h> +#include <linux/err.h> +#include <linux/init.h> +#include <linux/err.h> +#include <linux/io.h> +#include <plat/fsmc.h> Use <
linux/mtd/fsmc.h> as include file, get rid ofplat/fsmc.h. Extend that .h file with the stuff you need.
Quoted 5 lines
We need to keep definitions for MTD NOR, NAND and OneNAND using FSMC in this file so as to keep things simple. One header file is enough, and it's very generic too, FSMC is not for plat-spear/* but also U300, Nomadik and Ux500.
Yes i agree. I will remove patches related to fsmc from this patch series and will send them separately.
Signature · 1 line
viresh
PATCH v3 42/63 ST SPEAr: replace readl, writel with __raw_readl, __raw_writel in uncompress.h
In reply to Viresh KumarQuoted 1 line · Viresh Kumar
readl also calls outer cache maintainance operations
I use readl here on spear13xx. It works fine.
This is the definition of readl, could you tell me which code calls outer cache maintainance ?
#define readl(c) ({ __u32 __v = le32_to_cpu((__force __le32) \
__raw_readl(__mem_pci(c))); __v; })Quoted 4 lines
which are not available
during Linux uncompression. This patch replaces readl, writel with__raw_readland__raw_writel.
I tried to make spear13xx working under big endian. The _raw_readl here brought me a big trouble.
Stanley.
Quoted 23 lines
Signed-off-by Viresh Kumar <[email protected]>--- arch/arm/plat-spear/include/plat/uncompress.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/arm/plat-spear/include/plat/uncompress.h +2
-2@@ -24,10 +24,10 @@ static inline void putc(int c) {void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE ; -while (readl (base + UART01x_FR) & UART01x_FR_TXFF) +while (__raw_readl (base + UART01x_FR) & UART01x_FR_TXFF)barrier (); -writel (c, base + UART01x_DR); +__raw_writel (c, base + UART01x_DR); }static inline void flush (void )
PATCH v3 42/63 ST SPEAr: replace readl, writel with __raw_readl, __raw_writel in uncompress.h
Quoted 9 lines · stanley.miao
Quoted 1 line · Viresh Kumar
readl also calls outer cache maintainance operations
I use readl here on spear13xx. It works fine.
This is the definition of readl, could you tell me which code calls outer cache maintainance ?#define readl(c) ({ __u32 __v = le32_to_cpu((__force __le32) \ __raw_readl(__mem_pci(c))); __v; })
#define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
is how it's now defined, and __iormb() is defined to be rmb() on ARMv7+, which translates to a dmb.
writel() on the other hand is less straight forward. It uses __iowmb() which translates to a wmb() on ARMv7+, which is a dsb and an outer cache sync operation. This will fail in the decompressor code as there's no outer cache support there.
PATCH v3 42/63 ST SPEAr: replace readl, writel with __raw_readl, __raw_writel in uncompress.h
Quoted 16 lines · Russell King - ARM Linux
Quoted 11 lines · stanley.miao
Quoted 2 lines · Viresh Kumar
readl also calls outer cache maintainance operations
I use readl here on spear13xx. It works fine.
This is the definition of readl, could you tell me which code calls outer cache maintainance ?#define readl(c) ({ __u32 __v = le32_to_cpu((__force __le32) \ __raw_readl(__mem_pci(c))); __v; })#define readl(c) ({ u32
__v=readl_relaxed(c);__iormb();__v; })
Quoted 9 lines
is how it's now defined, and
__iormb()is defined to bermb()on ARMv7+, which translates to a dmb.
writel()on the other hand is less straight forward. It uses__iowmb()which translates to awmb()on ARMv7+, which is a dsb and an outer cache sync operation. This will fail in the decompressor code as there's no outer cache support there.
Hi, Russell, Thanks for your patient explanation.
With this in mind, I think readl_relaxed() should be better here.
Stanley.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110107/26ec7e42/attachment-0001.html>
PATCH v3 42/63 ST SPEAr: replace readl, writel with __raw_readl, __raw_writel in uncompress.h
Quoted 1 line · stanley.miao
With this in mind, I think
readl_relaxed()should be better here.
Stanley,
Actually we never thought of endianness while coding it, and followed the most generic approach taken by other archs.
Yes, i do accept *_relaxed() should be used instead.
I will do that in V4.
Signature · 1 line
viresh
PATCH RESEND v3 16/63 rtc: Adding support for spear rtc
In reply to Viresh KumarQuoted 10 lines · Viresh KUMAR
From: Rajeev Kumar <[email protected]>
Signed-off-by Rajeev Kumar <[email protected]>Signed-off-by Viresh Kumar <[email protected]>--- drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-spear.c | 534 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 543 insertions(+), 0 deletions(-) create mode 100644 drivers/rtc/rtc-spear.c
Alessandro,
Any review comments on this patch??
Signature · 1 line
viresh
PATCH RESEND v3 25/63 Newly erased page read workaround
In reply to Viresh KumarQuoted 10 lines · Viresh KUMAR
From: Vipin Kumar <[email protected]>
A newly erased page contains ff in data as well as spare area. While reading an erased page, the read out ecc from spare area does not match the ecc generated by fsmc ecc hardware accelarator. This is because ecc of data ff ff is not ff ff. This leads to errors when jffs2 fs erases and reads back the pages to ensure consistency.
This patch adds a software workaround to ensure that the ecc check is not performed for erased pages. An erased page is checked by checking data as ff ff.
David,
Does this patch looks fine to you??
--
viresh
PATCH v3 7/63 ST SPEAr13XX: Adding machine specific src files
In reply to Viresh Kumararch/arm/mach-spear13xx/platsmp.c line 68
Quoted 13 lines · Viresh Kumar
<snip>
arch/arm/mach-spear13xx/platsmp.c new file +10
-0+ +void __cpuinit platform_secondary_init (unsigned int cpu) +{ + +/* +* let the primary processor know we're out of the +* pen, then head off into the C entry point +*/ + pen_release =-1 ; +smp_wmb ();
Russell has fixed this line. See commit 3705ff6da538aff6dba535e2e9cbcbb9456d0d53 in the latest kernel.
Quoted 9 lines
arch/arm/mach-spear13xx/platsmp.c new file +8
-0+ +/* +* Synchronise with the boot thread. +*/ +spin_lock (&boot_lock); +spin_unlock (&boot_lock); +} +
arch/arm/mach-spear13xx/platsmp.c line 158
Quoted 10 lines
arch/arm/mach-spear13xx/platsmp.c new file +9
-0+void __init smp_prepare_cpus (unsigned int max_cpus) +{ +unsigned int ncores =get_core_count (); +unsigned int cpu =smp_processor_id (); +int i; + +/* sanity check */ +if (ncores ==0 ) { +pr_err ("Realview: strange CM count of 0? Default to 1\n" );
RealView ?
Stanley.
PATCH v3 7/63 ST SPEAr13XX: Adding machine specific src files
Stanley,
Thanks for reviewing!!
Quoted 18 lines · stanley.miao
arch/arm/mach-spear13xx/platsmp.c line 68
Quoted 13 lines · Viresh Kumar
<snip>
arch/arm/mach-spear13xx/platsmp.c new file +10
-0+ +void __cpuinit platform_secondary_init (unsigned int cpu) +{ + +/* +* let the primary processor know we're out of the +* pen, then head off into the C entry point +*/ + pen_release =-1 ; +smp_wmb ();Russell has fixed this line. See commit
3705ff6da538aff6dba535e2e9cbcbb9456d0d53in the latest kernel.
Ya. I have already seen that in latest kernel and have updated it in V4.
Quoted 13 lines
Quoted 13 lines
arch/arm/mach-spear13xx/platsmp.c new file +12
-0+ +/* +* Synchronise with the boot thread. +*/ +spin_lock (&boot_lock); +spin_unlock (&boot_lock); +} + +void __init smp_prepare_cpus (unsigned int max_cpus) +{ +unsigned int ncores =get_core_count (); +unsigned int cpu =smp_processor_id ();
Quoted 8 lines
arch/arm/mach-spear13xx/platsmp.c line 158
Quoted 6 lines
arch/arm/mach-spear13xx/platsmp.c new file +5
-0+int i; + +/* sanity check */ +if (ncores ==0 ) { +pr_err ("Realview: strange CM count of 0? Default to 1\n" );RealView ?
Oops!! Anyway this routine is changed now and this error is also removed.
Signature · 1 line
viresh
PATCH v3 25/63 Newly erased page read workaround
In reply to Viresh Kumar2010/12/20 Viresh Kumar <[email protected]>:
Quoted 8 lines
From: Vipin Kumar <[email protected]>
A newly erased page contains ff in data as well as spare area. While reading an erased page, the read out ecc from spare area does not match the ecc generated by fsmc ecc hardware accelarator. This is because ecc of data ff ff is not ff ff. This leads to errors when jffs2 fs erases and reads back the pages to ensure consistency.
Quoted 5 lines
This patch adds a software workaround to ensure that the ecc check is not performed for erased pages. An erased page is checked by checking data as ff ff.
Signed-off-by Vipin Kumar <[email protected]>Signed-off-by Viresh Kumar <[email protected]>
Sorry for missing it before.
Yours,
Linus Walleij