* RE: [PATCH] To add OMAP 2430 Support
@ 2006-11-09 15:01 Woodruff, Richard
2006-11-10 0:46 ` Tony Lindgren
2006-11-13 16:01 ` porting linux rajesh B
0 siblings, 2 replies; 10+ messages in thread
From: Woodruff, Richard @ 2006-11-09 15:01 UTC (permalink / raw)
To: Tony Lindgren, Syed Mohammed, Khasim; +Cc: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 2862 bytes --]
Yes this in theory it is needed. It is ARM implementation dependent on
whether it is needed or not.
I've included a small graphics (hope it makes it) to help clarify. The
TRM also had a section on this.
- The ARM-CPU has 4 ports of interest here. An instruction read (IR), a
data read (DR), a data write (DW), and the peripheral port (PP).
- There is a write-buffer between the ARM and the peripheral port (there
is also a familiar write buffer between the ARM and its data port). A
write to the port does not necessarily happen immediately.
- The ARM internal pipeline is NOT synchronized with the peripheral port
but it is with the others. This means dependencies are tracked with
register and CPSR accesses. This means a write to the DR can cause the
pipeline to stall. When you write to the PP the pipeline will never
stall.
** This means you can write to acknowledge an interrupt then enable
interrupts at the CPSR and the write to the CPSR can overtake the ACK to
the PP. You now have a spurious interrupt. There are a few some
combinations.
Interestingly, the L3 bus on the other side of the AHB2OCP bridge also
has multiple hardware threads and you can have times where accesses to
one port can overtake others. This is all ok with ARM11 as it is
specified to have out of order operations as long as it can tell any
dependencies/hazards have been taken care of. How much this happens in
practice depends on the memory system of the implementer. There a lot
of ARM11 memory system optimizations which the standard ARM kernel does
not take advantage of today. It takes the simple road with marking
things as strongly ordered.
Regards,
Richard W.
> Looks OK in general, just one comment below.
>
> > +#define sync_p_port_write() \
> > + ({ int dv = 0; \
> > + __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" : :
"r"
> (dv)); \
> > + })
> > +
> > /*
> > * OMAP2 has a number of different interrupt controllers, each
interrupt
> > * controller is identified as its own "bank". Register definitions
are
> > @@ -48,6 +53,7 @@ static struct omap_irq_bank {
> > static void omap_ack_irq(unsigned int irq)
> > {
> > __raw_writel(0x1, irq_banks[0].base_reg + INTC_CONTROL);
> > + sync_p_port_write();
> > }
> >
> > static void omap_mask_irq(unsigned int irq)
>
> I'd leave this out of the patch for now until we know if it's
> still needed. If it's needed, there should probably be arm generic
> function for it. Maybe dwb() or something like that? :)
>
> I think at some point Richard Woodruff said that he had to drain
> write buffer for timer writes because of some inaccuracy. Richard,
> could you please clarify it again? I don't think I've seen these
> issues on 2420 myself, but maybe some timer test code could expose
> it?
>
> Regards,
>
> Tony
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] To add OMAP 2430 Support
2006-11-09 15:01 [PATCH] To add OMAP 2430 Support Woodruff, Richard
@ 2006-11-10 0:46 ` Tony Lindgren
2006-11-13 16:01 ` porting linux rajesh B
1 sibling, 0 replies; 10+ messages in thread
From: Tony Lindgren @ 2006-11-10 0:46 UTC (permalink / raw)
To: Woodruff, Richard; +Cc: linux-omap-open-source
Hi,
* Woodruff, Richard <r-woodruff2@ti.com> [061109 17:02]:
> Yes this in theory it is needed. It is ARM implementation dependent on
> whether it is needed or not.
>
> I've included a small graphics (hope it makes it) to help clarify. The
> TRM also had a section on this.
>
> - The ARM-CPU has 4 ports of interest here. An instruction read (IR), a
> data read (DR), a data write (DW), and the peripheral port (PP).
>
> - There is a write-buffer between the ARM and the peripheral port (there
> is also a familiar write buffer between the ARM and its data port). A
> write to the port does not necessarily happen immediately.
>
> - The ARM internal pipeline is NOT synchronized with the peripheral port
> but it is with the others. This means dependencies are tracked with
> register and CPSR accesses. This means a write to the DR can cause the
> pipeline to stall. When you write to the PP the pipeline will never
> stall.
>
> ** This means you can write to acknowledge an interrupt then enable
> interrupts at the CPSR and the write to the CPSR can overtake the ACK to
> the PP. You now have a spurious interrupt. There are a few some
> combinations.
OK, thanks for explaining. So this means that wmb() would not be enough
because it only blocks memory access instructions, and not other access
like draining writebuffer does?
> Interestingly, the L3 bus on the other side of the AHB2OCP bridge also
> has multiple hardware threads and you can have times where accesses to
> one port can overtake others. This is all ok with ARM11 as it is
> specified to have out of order operations as long as it can tell any
> dependencies/hazards have been taken care of. How much this happens in
> practice depends on the memory system of the implementer. There a lot
> of ARM11 memory system optimizations which the standard ARM kernel does
> not take advantage of today. It takes the simple road with marking
> things as strongly ordered.
Well maybe someday somebody will do a patch for that :)
Tony
^ permalink raw reply [flat|nested] 10+ messages in thread
* porting linux
2006-11-09 15:01 [PATCH] To add OMAP 2430 Support Woodruff, Richard
2006-11-10 0:46 ` Tony Lindgren
@ 2006-11-13 16:01 ` rajesh B
1 sibling, 0 replies; 10+ messages in thread
From: rajesh B @ 2006-11-13 16:01 UTC (permalink / raw)
To: linux-omap-open-source
hi guys,
Is any one ported Linux on OMAP1510 ...
rajesh.B
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] To add OMAP 2430 Support
@ 2006-11-03 18:44 Syed Mohammed, Khasim
2006-11-03 19:03 ` Dirk Behme
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Syed Mohammed, Khasim @ 2006-11-03 18:44 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
Hi all,
Attached are set of patches to get OMAP 2430 "minimal" support on to the
tree.
With these patches I was able to boot the kernel on 2430SDP and have
verified booting the same on 2420 H4 (just to confirm it doesn't break
any existing 2420 functionality).
Please do let me know for any issues, I would be glad to correct and
re-submit them.
Description of attached Patches:
arch_2430support.patch:
-----------------------
This patch is for the arch/arm/mach-omap2 directory. The existing files
were updated to add OMAP2430 functionality. A new file "board-2430sdp.c"
is added to this directory.
include_2430support.patch
-------------------------
This patch is for include/asm-arm/arch-omap directory. Very few headers
were updated, mainly for base address changes. The IRQ list has to be
updated for OMAP2430.
defconfig_2430.patch
--------------------
This patch adds a new default config file to support OMAP2430 SDP. This
is derived from existing OMAP2420 default config.
ethernet_fix_2430.patch
-----------------------
This patch updates the GPIO interrupt line behavior for SMC91x
interrupts on 2430 SDP.
Thanks to Komal Shah and Richard Woodruff, to start with I referred to
one of their patch for 2.6.16.
Thanks and Regards,
Khasim
[-- Attachment #2: include_2430support.patch --]
[-- Type: application/octet-stream, Size: 5646 bytes --]
This patch adds minimal OMAP2430 support to get the kernel booting on 2430SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
board-2430sdp.h | 42 ++++++++++++++++++++++++++++++++++++++++++
hardware.h | 4 ++++
io.h | 10 ++++++++++
irqs.h | 1 +
omap24xx.h | 10 ++++++++++
5 files changed, 67 insertions(+)
==============================================================================
diff -purN linux-omap/include/asm-arm/arch-omap/board-2430sdp.h dev-linux-omap-2.6.git/include/asm-arm/arch-omap/board-2430sdp.h
--- linux-omap/include/asm-arm/arch-omap/board-2430sdp.h 1969-12-31 18:00:00.000000000 -0600
+++ dev-linux-omap-2.6.git/include/asm-arm/arch-omap/board-2430sdp.h 2006-11-02 16:17:35.000000000 -0600
@@ -0,0 +1,42 @@
+/*
+ * linux/include/asm-arm/arch-omap/board-2430sdp.h
+ *
+ * Hardware definitions for TI OMAP2430 SDP board.
+ *
+ * Based on board-h4.h by Dirk Behme <dirk.behme@de.bosch.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __ASM_ARCH_OMAP_2430SDP_H
+#define __ASM_ARCH_OMAP_2430SDP_H
+
+/* Placeholder for 2430SDP specific defines */
+#define OMAP24XX_ETHR_START 0x08000300
+#define OMAP24XX_ETHR_GPIO_IRQ 149
+#define SDP2430_CS0_BASE 0x04000000
+
+/*
+ * Just a place holder, need to add more
+ */
+
+#endif /* __ASM_ARCH_OMAP_2430SDP_H */
+
diff -purN linux-omap/include/asm-arm/arch-omap/hardware.h dev-linux-omap-2.6.git/include/asm-arm/arch-omap/hardware.h
--- linux-omap/include/asm-arm/arch-omap/hardware.h 2006-11-02 00:17:06.000000000 -0600
+++ dev-linux-omap-2.6.git/include/asm-arm/arch-omap/hardware.h 2006-11-02 15:39:49.000000000 -0600
@@ -318,6 +318,10 @@
#include "board-h4.h"
#endif
+#ifdef CONFIG_MACH_OMAP_2430SDP
+#include "board-2430sdp.h"
+#endif
+
#ifdef CONFIG_MACH_OMAP_APOLLON
#include "board-apollon.h"
#endif
diff -purN linux-omap/include/asm-arm/arch-omap/io.h dev-linux-omap-2.6.git/include/asm-arm/arch-omap/io.h
--- linux-omap/include/asm-arm/arch-omap/io.h 2006-11-02 00:17:06.000000000 -0600
+++ dev-linux-omap-2.6.git/include/asm-arm/arch-omap/io.h 2006-11-02 16:47:32.000000000 -0600
@@ -72,6 +72,16 @@
#define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */
#define L4_24XX_VIRT 0xd8000000
#define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */
+
+#ifdef CONFIG_ARCH_OMAP2430
+#define L4_WK_243X_PHYS L4_WK_243X_BASE /* 0x49000000 */
+#define L4_WK_243X_VIRT 0xd9000000
+#define L4_WK_243X_SIZE SZ_1M
+#define OMAP243X_GPMC_PHYS OMAP243X_GPMC_BASE /* 0x49000000 */
+#define OMAP243X_GPMC_VIRT 0xFE000000
+#define OMAP243X_GPMC_SIZE SZ_1M
+#endif
+
#define IO_OFFSET 0x90000000
#define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */
#define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */
diff -purN linux-omap/include/asm-arm/arch-omap/irqs.h dev-linux-omap-2.6.git/include/asm-arm/arch-omap/irqs.h
--- linux-omap/include/asm-arm/arch-omap/irqs.h 2006-11-02 00:17:06.000000000 -0600
+++ dev-linux-omap-2.6.git/include/asm-arm/arch-omap/irqs.h 2006-11-02 16:09:30.000000000 -0600
@@ -249,6 +249,7 @@
#define INT_24XX_GPIO_BANK2 30
#define INT_24XX_GPIO_BANK3 31
#define INT_24XX_GPIO_BANK4 32
+#define INT_24XX_GPIO_BANK5 33
#define INT_24XX_MAIL_U3_MPU 34
#define INT_24XX_GPTIMER1 37
#define INT_24XX_GPTIMER2 38
diff -purN linux-omap/include/asm-arm/arch-omap/omap24xx.h dev-linux-omap-2.6.git/include/asm-arm/arch-omap/omap24xx.h
--- linux-omap/include/asm-arm/arch-omap/omap24xx.h 2006-11-02 00:17:06.000000000 -0600
+++ dev-linux-omap-2.6.git/include/asm-arm/arch-omap/omap24xx.h 2006-11-02 16:12:35.000000000 -0600
@@ -8,6 +8,7 @@
*/
#define L4_24XX_BASE 0x48000000
+#define L4_WK_243X_BASE 0x49000000
#define L3_24XX_BASE 0x68000000
/* interrupt controller */
@@ -16,11 +17,20 @@
#define OMAP24XX_IVA_INTC_BASE 0x40000000
#define IRQ_SIR_IRQ 0x0040
+#ifdef CONFIG_ARCH_OMAP2420
#define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000)
#define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000)
#define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000)
+#define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8)
+#endif
+#ifdef CONFIG_ARCH_OMAP2430
+#define OMAP24XX_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000)
+#define OMAP24XX_PRCM_BASE (L4_WK_243X_BASE + 0x6000)
+#define OMAP24XX_SDRC_BASE (0x6D000000)
#define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8)
+#define OMAP243X_GPMC_BASE 0x6E000000
+#endif
/* DSP SS */
#define OMAP24XX_DSP_BASE 0x58000000
[-- Attachment #3: arch_2430support.patch --]
[-- Type: application/octet-stream, Size: 12775 bytes --]
This patch adds minimal OMAP2430 support to get the kernel booting on 2430SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
Kconfig | 8 +
Makefile | 1
board-2430sdp.c | 239 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
devices.c | 2
gpmc.c | 7 +
id.c | 6 +
io.c | 19 ++++
irq.c | 8 +
8 files changed, 289 insertions(+), 1 deletion(-)
==============================================================================
diff -purN linux-omap/arch/arm/mach-omap2/Kconfig dev-linux-omap-2.6.git/arch/arm/mach-omap2/Kconfig
--- linux-omap/arch/arm/mach-omap2/Kconfig 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/Kconfig 2006-11-02 14:12:30.000000000 -0600
@@ -11,6 +11,10 @@ config ARCH_OMAP2420
select OMAP_DM_TIMER
select ARCH_OMAP_OTG
+config ARCH_OMAP2430
+ bool "OMAP2430 support"
+ depends on ARCH_OMAP24XX
+
comment "OMAP Board Type"
depends on ARCH_OMAP2
@@ -27,6 +31,10 @@ config MACH_OMAP_H4
depends on ARCH_OMAP2 && ARCH_OMAP24XX
select GPIOEXPANDER_OMAP
+config MACH_OMAP_2430SDP
+ bool "OMAP 2430 SDP board"
+ depends on ARCH_OMAP2 && ARCH_OMAP24XX
+
config MACH_OMAP_H4_TUSB
bool "TUSB 6010 EVM board"
depends on MACH_OMAP_H4
diff -purN linux-omap/arch/arm/mach-omap2/Makefile dev-linux-omap-2.6.git/arch/arm/mach-omap2/Makefile
--- linux-omap/arch/arm/mach-omap2/Makefile 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/Makefile 2006-11-02 14:13:41.000000000 -0600
@@ -17,6 +17,7 @@ obj-$(CONFIG_OMAP_DSP) += mailbox.o
# Specific board support
obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o
obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o
+obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o
obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o
# TUSB 6010 chips
diff -purN linux-omap/arch/arm/mach-omap2/board-2430sdp.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/board-2430sdp.c
--- linux-omap/arch/arm/mach-omap2/board-2430sdp.c 1969-12-31 18:00:00.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/board-2430sdp.c 2006-11-03 11:32:18.000000000 -0600
@@ -0,0 +1,239 @@
+/*
+ * linux/arch/arm/mach-omap/omap2/board-2430sdp.c
+ *
+ * Copyright (C) 2006 Texas Instruments
+ *
+ * Modified from mach-omap2/board-generic.c
+ *
+ * Initial Code : Based on a patch from Komal Shah and Richard Woodruff
+ * Updated the Code for 2430 SDP : Syed Mohammed Khasim
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/partitions.h>
+#include <linux/delay.h>
+#include <linux/workqueue.h>
+#include <linux/input.h>
+#include <linux/err.h>
+#include <linux/clk.h>
+
+#include <asm/hardware.h>
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+#include <asm/mach/map.h>
+#include <asm/mach/flash.h>
+
+#include <asm/arch/gpio.h>
+#include <asm/arch/gpioexpander.h>
+#include <asm/arch/mux.h>
+#include <asm/arch/usb.h>
+#include <asm/arch/irda.h>
+#include <asm/arch/board.h>
+#include <asm/arch/common.h>
+#include <asm/arch/keypad.h>
+#include <asm/arch/menelaus.h>
+#include <asm/arch/dma.h>
+#include <asm/arch/gpmc.h>
+#include "prcm-regs.h"
+
+#include <asm/io.h>
+#include <asm/delay.h>
+
+#define SDP2430_FLASH_CS 0
+#define SDP2430_SMC91X_CS 5
+
+static struct mtd_partition sdp2430_partitions[] = {
+ /* bootloader (U-Boot, etc) in first sector */
+ {
+ .name = "bootloader",
+ .offset = 0,
+ .size = SZ_256K,
+ .mask_flags = MTD_WRITEABLE, /* force read-only */
+ },
+ /* bootloader params in the next sector */
+ {
+ .name = "params",
+ .offset = MTDPART_OFS_APPEND,
+ .size = SZ_128K,
+ .mask_flags = 0,
+ },
+ /* kernel */
+ {
+ .name = "kernel",
+ .offset = MTDPART_OFS_APPEND,
+ .size = SZ_2M,
+ .mask_flags = 0
+ },
+ /* file system */
+ {
+ .name = "filesystem",
+ .offset = MTDPART_OFS_APPEND,
+ .size = MTDPART_SIZ_FULL,
+ .mask_flags = 0
+ }
+};
+
+static struct flash_platform_data sdp2430_flash_data = {
+ .map_name = "cfi_probe",
+ .width = 2,
+ .parts = sdp2430_partitions,
+ .nr_parts = ARRAY_SIZE(sdp2430_partitions),
+};
+
+static struct resource sdp2430_flash_resource = {
+ .start = SDP2430_CS0_BASE,
+ .end = SDP2430_CS0_BASE + SZ_64M - 1,
+ .flags = IORESOURCE_MEM,
+};
+
+static struct platform_device sdp2430_flash_device = {
+ .name = "omapflash",
+ .id = 0,
+ .dev = {
+ .platform_data = &sdp2430_flash_data,
+ },
+ .num_resources = 1,
+ .resource = &sdp2430_flash_resource,
+};
+
+static struct resource sdp2430_smc91x_resources[] = {
+ [0] = {
+ .start = SDP2430_CS0_BASE,
+ .end = SDP2430_CS0_BASE + SZ_64M - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ),
+ .end = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ),
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device sdp2430_smc91x_device = {
+ .name = "smc91x",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(sdp2430_smc91x_resources),
+ .resource = sdp2430_smc91x_resources,
+};
+
+static struct platform_device *sdp2430_devices[] __initdata = {
+ &sdp2430_smc91x_device,
+ &sdp2430_flash_device,
+};
+
+static inline void __init sdp2430_init_smc91x(void)
+{
+ int eth_cs;
+ unsigned long cs_mem_base;
+ unsigned int rate;
+ struct clk *l3ck;
+
+ eth_cs = SDP2430_SMC91X_CS;
+
+ l3ck = clk_get(NULL, "core_l3_ck");
+ if (IS_ERR(l3ck))
+ rate = 100000000;
+ else
+ rate = clk_get_rate(l3ck);
+
+ /* Make sure CS1 timings are correct, for 2430 always muxed */
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG1, 0x00011200);
+
+ if (rate >= 160000000) {
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f01);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080803);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1c0b1c0a);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x041f1F1F);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000004C4);
+ } else if (rate >= 130000000) {
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f00);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080802);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1C091C09);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x041f1F1F);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000004C4);
+ } else {/* rate = 100000000 */
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG2, 0x001f1f00);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG3, 0x00080802);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG4, 0x1C091C09);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG5, 0x031A1F1F);
+ gpmc_cs_write_reg(eth_cs, GPMC_CS_CONFIG6, 0x000003C2);
+ }
+
+ if (gpmc_cs_request(eth_cs, SZ_16M, &cs_mem_base) < 0) {
+ printk(KERN_ERR "Failed to request GPMC mem for smc91x\n");
+ return;
+ }
+
+ sdp2430_smc91x_resources[0].start = cs_mem_base + 0x300;
+ sdp2430_smc91x_resources[0].end = cs_mem_base + 0x30f;
+ udelay(100);
+
+ if (omap_request_gpio(OMAP24XX_ETHR_GPIO_IRQ) < 0) {
+ printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n",
+ OMAP24XX_ETHR_GPIO_IRQ);
+ gpmc_cs_free(eth_cs);
+ return;
+ }
+ omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1);
+
+}
+
+static void __init sdp2430_init_flash(void)
+{
+ unsigned long base;
+
+ if (gpmc_cs_request(SDP2430_FLASH_CS, SZ_64M, &base) < 0) {
+ printk("Can't request GPMC CS for flash\n");
+ return;
+ }
+ sdp2430_flash_resource.start = base;
+ sdp2430_flash_resource.end = base + SZ_64M - 1;
+}
+
+static void __init omap_2430sdp_init_irq(void)
+{
+ omap2_init_common_hw();
+ omap_init_irq();
+ omap_gpio_init();
+ sdp2430_init_smc91x();
+// 2430sdp_init_flash();
+}
+
+static struct omap_uart_config sdp2430_uart_config __initdata = {
+ .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
+};
+
+static struct omap_board_config_kernel sdp2430_config[] = {
+ { OMAP_TAG_UART, &sdp2430_uart_config },
+};
+
+static void __init omap_2430sdp_init(void)
+{
+ platform_add_devices(sdp2430_devices, ARRAY_SIZE(sdp2430_devices));
+ omap_board_config = sdp2430_config;
+ omap_board_config_size = ARRAY_SIZE(sdp2430_config);
+ omap_serial_init();
+}
+
+static void __init omap_2430sdp_map_io(void)
+{
+ omap2_map_common_io();
+}
+
+MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board")
+ /* Maintainer: Syed Khasim - Texas Instruments Inc */
+ .phys_io = 0x48000000,
+ .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc,
+ .boot_params = 0x80000100,
+ .map_io = omap_2430sdp_map_io,
+ .init_irq = omap_2430sdp_init_irq,
+ .init_machine = omap_2430sdp_init,
+ .timer = &omap_timer,
+MACHINE_END
diff -purN linux-omap/arch/arm/mach-omap2/devices.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/devices.c
--- linux-omap/arch/arm/mach-omap2/devices.c 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/devices.c 2006-11-02 14:28:16.000000000 -0600
@@ -52,7 +52,7 @@ static struct platform_device omap_i2c_d
static void omap_init_i2c(void)
{
/* REVISIT: Second I2C not in use on H4? */
- if (machine_is_omap_h4())
+ if (machine_is_omap_h4() || machine_is_omap_2430sdp() )
return;
omap_cfg_reg(J15_24XX_I2C2_SCL);
diff -purN linux-omap/arch/arm/mach-omap2/gpmc.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/gpmc.c
--- linux-omap/arch/arm/mach-omap2/gpmc.c 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/gpmc.c 2006-11-02 14:30:00.000000000 -0600
@@ -22,7 +22,14 @@
#undef DEBUG
+#ifdef CONFIG_ARCH_OMAP2420
#define GPMC_BASE 0x6800a000
+#endif
+
+#ifdef CONFIG_ARCH_OMAP2430
+#define GPMC_BASE 0x6E000000
+#endif
+
#define GPMC_REVISION 0x00
#define GPMC_SYSCONFIG 0x10
#define GPMC_SYSSTATUS 0x14
diff -purN linux-omap/arch/arm/mach-omap2/id.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/id.c
--- linux-omap/arch/arm/mach-omap2/id.c 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/id.c 2006-11-02 14:32:13.000000000 -0600
@@ -17,7 +17,13 @@
#include <asm/io.h>
+#if defined(CONFIG_ARCH_OMAP2420)
#define OMAP24XX_TAP_BASE io_p2v(0x48014000)
+#endif
+
+#if defined(CONFIG_ARCH_OMAP2430)
+#define OMAP24XX_TAP_BASE io_p2v(0x4900A000)
+#endif
#define OMAP_TAP_IDCODE 0x0204
#define OMAP_TAP_PROD_ID 0x0208
diff -purN linux-omap/arch/arm/mach-omap2/io.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/io.c
--- linux-omap/arch/arm/mach-omap2/io.c 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/io.c 2006-11-02 17:51:01.000000000 -0600
@@ -46,6 +46,20 @@ static struct map_desc omap2_io_desc[] _
.length = L4_24XX_SIZE,
.type = MT_DEVICE
},
+#ifdef CONFIG_ARCH_OMAP2430
+ {
+ .virtual = L4_WK_243X_VIRT,
+ .pfn = __phys_to_pfn(L4_WK_243X_PHYS),
+ .length = L4_WK_243X_SIZE,
+ .type = MT_DEVICE
+ },
+ {
+ .virtual = OMAP243X_GPMC_VIRT,
+ .pfn = __phys_to_pfn(OMAP243X_GPMC_PHYS),
+ .length = OMAP243X_GPMC_SIZE,
+ .type = MT_DEVICE
+ },
+#endif
{
.virtual = DSP_MEM_24XX_VIRT,
.pfn = __phys_to_pfn(DSP_MEM_24XX_PHYS),
@@ -86,6 +100,11 @@ void __init omap2_init_common_hw(void)
{
omap2_mux_init();
omap2_clk_init();
+/*
+ * Need to fix this
+ */
+#ifndef CONFIG_ARCH_OMAP2430
omap2_init_memory();
+#endif
gpmc_init();
}
diff -purN linux-omap/arch/arm/mach-omap2/irq.c dev-linux-omap-2.6.git/arch/arm/mach-omap2/irq.c
--- linux-omap/arch/arm/mach-omap2/irq.c 2006-11-02 00:15:02.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/mach-omap2/irq.c 2006-11-02 17:21:26.000000000 -0600
@@ -25,6 +25,11 @@
#define INTC_MIR_CLEAR0 0x0088
#define INTC_MIR_SET0 0x008c
+#define sync_p_port_write() \
+ ({ int dv = 0; \
+ __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" : : "r" (dv)); \
+ })
+
/*
* OMAP2 has a number of different interrupt controllers, each interrupt
* controller is identified as its own "bank". Register definitions are
@@ -48,6 +53,7 @@ static struct omap_irq_bank {
static void omap_ack_irq(unsigned int irq)
{
__raw_writel(0x1, irq_banks[0].base_reg + INTC_CONTROL);
+ sync_p_port_write();
}
static void omap_mask_irq(unsigned int irq)
@@ -61,6 +67,7 @@ static void omap_mask_irq(unsigned int i
}
__raw_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_SET0 + offset);
+ sync_p_port_write();
}
static void omap_unmask_irq(unsigned int irq)
@@ -74,6 +81,7 @@ static void omap_unmask_irq(unsigned int
}
__raw_writel(1 << irq, irq_banks[0].base_reg + INTC_MIR_CLEAR0 + offset);
+ sync_p_port_write();
}
static void omap_mask_ack_irq(unsigned int irq)
[-- Attachment #4: defconfig_2430.patch --]
[-- Type: application/octet-stream, Size: 21066 bytes --]
This patch adds default config file for OMAP-2430SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
omap_2430sdp_2430_defconfig | 972 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 972 insertions(+)
==============================================================================
diff -purN linux-omap/arch/arm/configs/omap_2430sdp_2430_defconfig dev-linux-omap-2.6.git/arch/arm/configs/omap_2430sdp_2430_defconfig
--- linux-omap/arch/arm/configs/omap_2430sdp_2430_defconfig 1969-12-31 18:00:00.000000000 -0600
+++ dev-linux-omap-2.6.git/arch/arm/configs/omap_2430sdp_2430_defconfig 2006-11-02 19:04:08.000000000 -0600
@@ -0,0 +1,972 @@
+#
+# Automatically generated make config: don't edit
+# Linux kernel version: 2.6.19-rc4-omap1
+# Thu Nov 2 19:03:39 2006
+#
+CONFIG_ARM=y
+# CONFIG_GENERIC_TIME is not set
+CONFIG_MMU=y
+CONFIG_GENERIC_HARDIRQS=y
+CONFIG_TRACE_IRQFLAGS_SUPPORT=y
+CONFIG_HARDIRQS_SW_RESEND=y
+CONFIG_GENERIC_IRQ_PROBE=y
+CONFIG_RWSEM_GENERIC_SPINLOCK=y
+CONFIG_GENERIC_HWEIGHT=y
+CONFIG_GENERIC_CALIBRATE_DELAY=y
+CONFIG_VECTORS_BASE=0xffff0000
+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
+
+#
+# Code maturity level options
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+
+#
+# General setup
+#
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_SWAP=y
+CONFIG_SYSVIPC=y
+# CONFIG_IPC_NS is not set
+# CONFIG_POSIX_MQUEUE is not set
+CONFIG_BSD_PROCESS_ACCT=y
+# CONFIG_BSD_PROCESS_ACCT_V3 is not set
+# CONFIG_TASKSTATS is not set
+# CONFIG_UTS_NS is not set
+# CONFIG_AUDIT is not set
+# CONFIG_IKCONFIG is not set
+# CONFIG_RELAY is not set
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_SYSCTL=y
+CONFIG_EMBEDDED=y
+CONFIG_UID16=y
+# CONFIG_SYSCTL_SYSCALL is not set
+CONFIG_KALLSYMS=y
+# CONFIG_KALLSYMS_ALL is not set
+CONFIG_KALLSYMS_EXTRA_PASS=y
+CONFIG_HOTPLUG=y
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_ELF_CORE=y
+CONFIG_BASE_FULL=y
+CONFIG_FUTEX=y
+CONFIG_EPOLL=y
+CONFIG_SHMEM=y
+CONFIG_SLAB=y
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_RT_MUTEXES=y
+# CONFIG_TINY_SHMEM is not set
+CONFIG_BASE_SMALL=0
+# CONFIG_SLOB is not set
+
+#
+# Loadable module support
+#
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+CONFIG_MODVERSIONS=y
+CONFIG_MODULE_SRCVERSION_ALL=y
+CONFIG_KMOD=y
+
+#
+# Block layer
+#
+CONFIG_BLOCK=y
+# CONFIG_BLK_DEV_IO_TRACE is not set
+
+#
+# IO Schedulers
+#
+CONFIG_IOSCHED_NOOP=y
+CONFIG_IOSCHED_AS=y
+CONFIG_IOSCHED_DEADLINE=y
+CONFIG_IOSCHED_CFQ=y
+CONFIG_DEFAULT_AS=y
+# CONFIG_DEFAULT_DEADLINE is not set
+# CONFIG_DEFAULT_CFQ is not set
+# CONFIG_DEFAULT_NOOP is not set
+CONFIG_DEFAULT_IOSCHED="anticipatory"
+
+#
+# System Type
+#
+# CONFIG_ARCH_AAEC2000 is not set
+# CONFIG_ARCH_INTEGRATOR is not set
+# CONFIG_ARCH_REALVIEW is not set
+# CONFIG_ARCH_VERSATILE is not set
+# CONFIG_ARCH_AT91 is not set
+# CONFIG_ARCH_CLPS7500 is not set
+# CONFIG_ARCH_CLPS711X is not set
+# CONFIG_ARCH_CO285 is not set
+# CONFIG_ARCH_EBSA110 is not set
+# CONFIG_ARCH_EP93XX is not set
+# CONFIG_ARCH_FOOTBRIDGE is not set
+# CONFIG_ARCH_NETX is not set
+# CONFIG_ARCH_H720X is not set
+# CONFIG_ARCH_IMX is not set
+# CONFIG_ARCH_IOP32X is not set
+# CONFIG_ARCH_IOP33X is not set
+# CONFIG_ARCH_IXP4XX is not set
+# CONFIG_ARCH_IXP2000 is not set
+# CONFIG_ARCH_IXP23XX is not set
+# CONFIG_ARCH_L7200 is not set
+# CONFIG_ARCH_PNX4008 is not set
+# CONFIG_ARCH_PXA is not set
+# CONFIG_ARCH_RPC is not set
+# CONFIG_ARCH_SA1100 is not set
+# CONFIG_ARCH_S3C2410 is not set
+# CONFIG_ARCH_SHARK is not set
+# CONFIG_ARCH_LH7A40X is not set
+CONFIG_ARCH_OMAP=y
+
+#
+# TI OMAP Implementations
+#
+# CONFIG_ARCH_OMAP1 is not set
+CONFIG_ARCH_OMAP2=y
+
+#
+# OMAP Feature Selections
+#
+# CONFIG_OMAP_RESET_CLOCKS is not set
+CONFIG_OMAP_BOOT_TAG=y
+# CONFIG_OMAP_BOOT_REASON is not set
+# CONFIG_OMAP_COMPONENT_VERSION is not set
+# CONFIG_OMAP_GPIO_SWITCH is not set
+CONFIG_OMAP_MUX=y
+CONFIG_OMAP_MUX_DEBUG=y
+CONFIG_OMAP_MUX_WARNINGS=y
+# CONFIG_OMAP_STI is not set
+CONFIG_OMAP_MCBSP=y
+CONFIG_OMAP_MPU_TIMER=y
+# CONFIG_OMAP_32K_TIMER is not set
+CONFIG_OMAP_DM_TIMER=y
+CONFIG_OMAP_LL_DEBUG_UART1=y
+# CONFIG_OMAP_LL_DEBUG_UART2 is not set
+# CONFIG_OMAP_LL_DEBUG_UART3 is not set
+CONFIG_OMAP_SERIAL_WAKE=y
+# CONFIG_OMAP_DSP is not set
+# CONFIG_MACH_OMAP_GENERIC is not set
+
+#
+# OMAP Core Type
+#
+CONFIG_ARCH_OMAP24XX=y
+# CONFIG_ARCH_OMAP2420 is not set
+CONFIG_ARCH_OMAP2430=y
+
+#
+# OMAP Board Type
+#
+# CONFIG_MACH_OMAP_H4 is not set
+CONFIG_MACH_OMAP_2430SDP=y
+# CONFIG_MACH_OMAP_APOLLON is not set
+
+#
+# Processor Type
+#
+CONFIG_CPU_32=y
+CONFIG_CPU_V6=y
+# CONFIG_CPU_32v6K is not set
+CONFIG_CPU_32v6=y
+CONFIG_CPU_ABRT_EV6=y
+CONFIG_CPU_CACHE_V6=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_TLB_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+
+#
+# Processor Features
+#
+CONFIG_ARM_THUMB=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+# CONFIG_CPU_DCACHE_DISABLE is not set
+# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+
+#
+# Bus support
+#
+
+#
+# PCCARD (PCMCIA/CardBus) support
+#
+# CONFIG_PCCARD is not set
+
+#
+# Kernel Features
+#
+# CONFIG_PREEMPT is not set
+# CONFIG_NO_IDLE_HZ is not set
+CONFIG_HZ=100
+# CONFIG_AEABI is not set
+# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
+CONFIG_SELECT_MEMORY_MODEL=y
+CONFIG_FLATMEM_MANUAL=y
+# CONFIG_DISCONTIGMEM_MANUAL is not set
+# CONFIG_SPARSEMEM_MANUAL is not set
+CONFIG_FLATMEM=y
+CONFIG_FLAT_NODE_MEM_MAP=y
+# CONFIG_SPARSEMEM_STATIC is not set
+CONFIG_SPLIT_PTLOCK_CPUS=4
+# CONFIG_RESOURCES_64BIT is not set
+# CONFIG_LEDS is not set
+CONFIG_ALIGNMENT_TRAP=y
+
+#
+# Boot options
+#
+CONFIG_ZBOOT_ROM_TEXT=0x0
+CONFIG_ZBOOT_ROM_BSS=0x0
+CONFIG_CMDLINE="root=/dev/ram0 rw console=ttyS0,115200n8 initrd=0x80600000,8M ramdisk_size=8192"
+# CONFIG_XIP_KERNEL is not set
+
+#
+# CPU Frequency scaling
+#
+# CONFIG_CPU_FREQ is not set
+
+#
+# Floating point emulation
+#
+
+#
+# At least one emulation must be selected
+#
+CONFIG_FPE_NWFPE=y
+# CONFIG_FPE_NWFPE_XP is not set
+# CONFIG_FPE_FASTFPE is not set
+# CONFIG_VFP is not set
+
+#
+# Userspace binary formats
+#
+CONFIG_BINFMT_ELF=y
+# CONFIG_BINFMT_AOUT is not set
+CONFIG_BINFMT_MISC=y
+# CONFIG_ARTHUR is not set
+
+#
+# Power management options
+#
+# CONFIG_PM is not set
+# CONFIG_APM is not set
+
+#
+# Networking
+#
+CONFIG_NET=y
+
+#
+# Networking options
+#
+# CONFIG_NETDEBUG is not set
+CONFIG_PACKET=y
+# CONFIG_PACKET_MMAP is not set
+CONFIG_UNIX=y
+CONFIG_XFRM=y
+# CONFIG_XFRM_USER is not set
+# CONFIG_XFRM_SUB_POLICY is not set
+CONFIG_NET_KEY=y
+CONFIG_INET=y
+# CONFIG_IP_MULTICAST is not set
+# CONFIG_IP_ADVANCED_ROUTER is not set
+CONFIG_IP_FIB_HASH=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+# CONFIG_IP_PNP_BOOTP is not set
+# CONFIG_IP_PNP_RARP is not set
+# CONFIG_NET_IPIP is not set
+# CONFIG_NET_IPGRE is not set
+# CONFIG_ARPD is not set
+# CONFIG_SYN_COOKIES is not set
+# CONFIG_INET_AH is not set
+# CONFIG_INET_ESP is not set
+# CONFIG_INET_IPCOMP is not set
+# CONFIG_INET_XFRM_TUNNEL is not set
+# CONFIG_INET_TUNNEL is not set
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INET_XFRM_MODE_BEET=y
+CONFIG_INET_DIAG=y
+CONFIG_INET_TCP_DIAG=y
+# CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_CONG_CUBIC=y
+CONFIG_DEFAULT_TCP_CONG="cubic"
+# CONFIG_IPV6 is not set
+# CONFIG_INET6_XFRM_TUNNEL is not set
+# CONFIG_INET6_TUNNEL is not set
+# CONFIG_NETWORK_SECMARK is not set
+# CONFIG_NETFILTER is not set
+
+#
+# DCCP Configuration (EXPERIMENTAL)
+#
+# CONFIG_IP_DCCP is not set
+
+#
+# SCTP Configuration (EXPERIMENTAL)
+#
+# CONFIG_IP_SCTP is not set
+
+#
+# TIPC Configuration (EXPERIMENTAL)
+#
+# CONFIG_TIPC is not set
+# CONFIG_ATM is not set
+# CONFIG_BRIDGE is not set
+# CONFIG_VLAN_8021Q is not set
+# CONFIG_DECNET is not set
+# CONFIG_LLC2 is not set
+# CONFIG_IPX is not set
+# CONFIG_ATALK is not set
+# CONFIG_X25 is not set
+# CONFIG_LAPB is not set
+# CONFIG_ECONET is not set
+# CONFIG_WAN_ROUTER is not set
+
+#
+# QoS and/or fair queueing
+#
+# CONFIG_NET_SCHED is not set
+
+#
+# Network testing
+#
+# CONFIG_NET_PKTGEN is not set
+# CONFIG_HAMRADIO is not set
+# CONFIG_IRDA is not set
+# CONFIG_BT is not set
+# CONFIG_IEEE80211 is not set
+
+#
+# Device Drivers
+#
+
+#
+# Generic Driver Options
+#
+CONFIG_STANDALONE=y
+CONFIG_PREVENT_FIRMWARE_BUILD=y
+# CONFIG_FW_LOADER is not set
+# CONFIG_DEBUG_DRIVER is not set
+# CONFIG_SYS_HYPERVISOR is not set
+
+#
+# Connector - unified userspace <-> kernelspace linker
+#
+# CONFIG_CONNECTOR is not set
+
+#
+# Memory Technology Devices (MTD)
+#
+# CONFIG_MTD is not set
+
+#
+# Parallel port support
+#
+# CONFIG_PARPORT is not set
+
+#
+# Plug and Play support
+#
+
+#
+# Block devices
+#
+# CONFIG_BLK_DEV_COW_COMMON is not set
+CONFIG_BLK_DEV_LOOP=y
+# CONFIG_BLK_DEV_CRYPTOLOOP is not set
+# CONFIG_BLK_DEV_NBD is not set
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=16384
+CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
+CONFIG_BLK_DEV_INITRD=y
+# CONFIG_CDROM_PKTCDVD is not set
+# CONFIG_ATA_OVER_ETH is not set
+
+#
+# SCSI device support
+#
+# CONFIG_RAID_ATTRS is not set
+# CONFIG_SCSI is not set
+# CONFIG_SCSI_NETLINK is not set
+
+#
+# Multi-device support (RAID and LVM)
+#
+# CONFIG_MD is not set
+
+#
+# Fusion MPT device support
+#
+# CONFIG_FUSION is not set
+
+#
+# IEEE 1394 (FireWire) support
+#
+
+#
+# I2O device support
+#
+
+#
+# Network device support
+#
+CONFIG_NETDEVICES=y
+# CONFIG_DUMMY is not set
+# CONFIG_BONDING is not set
+# CONFIG_EQUALIZER is not set
+# CONFIG_TUN is not set
+
+#
+# PHY device support
+#
+# CONFIG_PHYLIB is not set
+
+#
+# Ethernet (10 or 100Mbit)
+#
+CONFIG_NET_ETHERNET=y
+CONFIG_MII=y
+CONFIG_SMC91X=y
+# CONFIG_DM9000 is not set
+
+#
+# Ethernet (1000 Mbit)
+#
+
+#
+# Ethernet (10000 Mbit)
+#
+
+#
+# Token Ring devices
+#
+
+#
+# Wireless LAN (non-hamradio)
+#
+# CONFIG_NET_RADIO is not set
+
+#
+# Wan interfaces
+#
+# CONFIG_WAN is not set
+# CONFIG_PPP is not set
+# CONFIG_SLIP is not set
+# CONFIG_SHAPER is not set
+# CONFIG_NETCONSOLE is not set
+# CONFIG_NETPOLL is not set
+# CONFIG_NET_POLL_CONTROLLER is not set
+
+#
+# ISDN subsystem
+#
+# CONFIG_ISDN is not set
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+# CONFIG_INPUT_FF_MEMLESS is not set
+
+#
+# Userland interfaces
+#
+# CONFIG_INPUT_MOUSEDEV is not set
+# CONFIG_INPUT_JOYDEV is not set
+# CONFIG_INPUT_TSDEV is not set
+CONFIG_INPUT_EVDEV=y
+# CONFIG_INPUT_EVBUG is not set
+
+#
+# Input Device Drivers
+#
+CONFIG_INPUT_KEYBOARD=y
+# CONFIG_KEYBOARD_ATKBD is not set
+# CONFIG_KEYBOARD_SUNKBD is not set
+# CONFIG_KEYBOARD_LKKBD is not set
+# CONFIG_KEYBOARD_XTKBD is not set
+# CONFIG_KEYBOARD_NEWTON is not set
+# CONFIG_KEYBOARD_STOWAWAY is not set
+CONFIG_KEYBOARD_OMAP=y
+# CONFIG_INPUT_MOUSE is not set
+# CONFIG_INPUT_JOYSTICK is not set
+# CONFIG_INPUT_TOUCHSCREEN is not set
+# CONFIG_INPUT_MISC is not set
+
+#
+# Hardware I/O ports
+#
+# CONFIG_SERIO is not set
+# CONFIG_GAMEPORT is not set
+
+#
+# Character devices
+#
+CONFIG_VT=y
+CONFIG_VT_CONSOLE=y
+CONFIG_HW_CONSOLE=y
+# CONFIG_VT_HW_CONSOLE_BINDING is not set
+# CONFIG_SERIAL_NONSTANDARD is not set
+
+#
+# Serial drivers
+#
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_NR_UARTS=32
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
+CONFIG_SERIAL_8250_EXTENDED=y
+CONFIG_SERIAL_8250_MANY_PORTS=y
+CONFIG_SERIAL_8250_SHARE_IRQ=y
+CONFIG_SERIAL_8250_DETECT_IRQ=y
+CONFIG_SERIAL_8250_RSA=y
+
+#
+# Non-8250 serial port support
+#
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+CONFIG_UNIX98_PTYS=y
+# CONFIG_LEGACY_PTYS is not set
+
+#
+# IPMI
+#
+# CONFIG_IPMI_HANDLER is not set
+
+#
+# Watchdog Cards
+#
+CONFIG_WATCHDOG=y
+CONFIG_WATCHDOG_NOWAYOUT=y
+
+#
+# Watchdog Device Drivers
+#
+# CONFIG_SOFT_WATCHDOG is not set
+CONFIG_OMAP_WATCHDOG=y
+CONFIG_HW_RANDOM=y
+CONFIG_HW_RANDOM_OMAP=y
+# CONFIG_OMAP_RNG is not set
+# CONFIG_NVRAM is not set
+# CONFIG_DTLK is not set
+# CONFIG_R3964 is not set
+
+#
+# Ftape, the floppy tape device driver
+#
+# CONFIG_RAW_DRIVER is not set
+
+#
+# TPM devices
+#
+# CONFIG_TCG_TPM is not set
+
+#
+# I2C support
+#
+# CONFIG_I2C is not set
+
+#
+# SPI support
+#
+# CONFIG_SPI is not set
+# CONFIG_SPI_MASTER is not set
+
+#
+# Dallas's 1-wire bus
+#
+# CONFIG_W1 is not set
+
+#
+# Hardware Monitoring support
+#
+# CONFIG_HWMON is not set
+# CONFIG_HWMON_VID is not set
+
+#
+# Misc devices
+#
+# CONFIG_TIFM_CORE is not set
+
+#
+# LED devices
+#
+# CONFIG_NEW_LEDS is not set
+
+#
+# LED drivers
+#
+
+#
+# LED Triggers
+#
+
+#
+# Multimedia devices
+#
+# CONFIG_VIDEO_DEV is not set
+
+#
+# Digital Video Broadcasting Devices
+#
+# CONFIG_DVB is not set
+
+#
+# Graphics support
+#
+CONFIG_FIRMWARE_EDID=y
+CONFIG_FB=y
+# CONFIG_FB_CFB_FILLRECT is not set
+# CONFIG_FB_CFB_COPYAREA is not set
+# CONFIG_FB_CFB_IMAGEBLIT is not set
+# CONFIG_FB_MACMODES is not set
+# CONFIG_FB_BACKLIGHT is not set
+# CONFIG_FB_MODE_HELPERS is not set
+# CONFIG_FB_TILEBLITTING is not set
+# CONFIG_FB_S1D13XXX is not set
+# CONFIG_FB_VIRTUAL is not set
+CONFIG_FB_OMAP=y
+# CONFIG_FB_OMAP_LCDC_EXTERNAL is not set
+# CONFIG_FB_OMAP_LCD_MIPID is not set
+# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
+CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE=2
+
+#
+# Console display driver support
+#
+# CONFIG_VGA_CONSOLE is not set
+CONFIG_DUMMY_CONSOLE=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
+# CONFIG_FONTS is not set
+CONFIG_FONT_8x8=y
+CONFIG_FONT_8x16=y
+
+#
+# Logo configuration
+#
+CONFIG_LOGO=y
+# CONFIG_LOGO_LINUX_MONO is not set
+# CONFIG_LOGO_LINUX_VGA16 is not set
+CONFIG_LOGO_LINUX_CLUT224=y
+# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
+
+#
+# Sound
+#
+# CONFIG_SOUND is not set
+
+#
+# USB support
+#
+CONFIG_USB_ARCH_HAS_HCD=y
+CONFIG_USB_ARCH_HAS_OHCI=y
+# CONFIG_USB_ARCH_HAS_EHCI is not set
+# CONFIG_USB is not set
+
+#
+# Enable Host or Gadget support to see Inventra options
+#
+
+#
+# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
+#
+
+#
+# USB Gadget Support
+#
+# CONFIG_USB_GADGET is not set
+
+#
+# MMC/SD Card support
+#
+CONFIG_MMC=y
+# CONFIG_MMC_DEBUG is not set
+CONFIG_MMC_BLOCK=y
+CONFIG_MMC_OMAP=y
+# CONFIG_MMC_TIFM_SD is not set
+
+#
+# Real Time Clock
+#
+CONFIG_RTC_LIB=y
+# CONFIG_RTC_CLASS is not set
+
+#
+# Synchronous Serial Interfaces (SSI)
+#
+# CONFIG_OMAP_TSC2101 is not set
+
+#
+# CBUS support
+#
+# CONFIG_CBUS is not set
+
+#
+# File systems
+#
+CONFIG_EXT2_FS=y
+# CONFIG_EXT2_FS_XATTR is not set
+# CONFIG_EXT2_FS_XIP is not set
+CONFIG_EXT3_FS=y
+# CONFIG_EXT3_FS_XATTR is not set
+# CONFIG_EXT4DEV_FS is not set
+CONFIG_JBD=y
+# CONFIG_JBD_DEBUG is not set
+# CONFIG_REISERFS_FS is not set
+# CONFIG_JFS_FS is not set
+# CONFIG_FS_POSIX_ACL is not set
+# CONFIG_XFS_FS is not set
+# CONFIG_GFS2_FS is not set
+# CONFIG_OCFS2_FS is not set
+# CONFIG_MINIX_FS is not set
+# CONFIG_ROMFS_FS is not set
+CONFIG_INOTIFY=y
+CONFIG_INOTIFY_USER=y
+CONFIG_QUOTA=y
+# CONFIG_QFMT_V1 is not set
+CONFIG_QFMT_V2=y
+CONFIG_QUOTACTL=y
+CONFIG_DNOTIFY=y
+# CONFIG_AUTOFS_FS is not set
+# CONFIG_AUTOFS4_FS is not set
+# CONFIG_FUSE_FS is not set
+
+#
+# CD-ROM/DVD Filesystems
+#
+# CONFIG_ISO9660_FS is not set
+# CONFIG_UDF_FS is not set
+
+#
+# DOS/FAT/NT Filesystems
+#
+CONFIG_FAT_FS=y
+CONFIG_MSDOS_FS=y
+CONFIG_VFAT_FS=y
+CONFIG_FAT_DEFAULT_CODEPAGE=437
+CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
+# CONFIG_NTFS_FS is not set
+
+#
+# Pseudo filesystems
+#
+CONFIG_PROC_FS=y
+CONFIG_PROC_SYSCTL=y
+CONFIG_SYSFS=y
+CONFIG_TMPFS=y
+# CONFIG_TMPFS_POSIX_ACL is not set
+# CONFIG_HUGETLB_PAGE is not set
+CONFIG_RAMFS=y
+# CONFIG_CONFIGFS_FS is not set
+
+#
+# Miscellaneous filesystems
+#
+# CONFIG_ADFS_FS is not set
+# CONFIG_AFFS_FS is not set
+# CONFIG_HFS_FS is not set
+# CONFIG_HFSPLUS_FS is not set
+# CONFIG_BEFS_FS is not set
+# CONFIG_BFS_FS is not set
+# CONFIG_EFS_FS is not set
+# CONFIG_CRAMFS is not set
+# CONFIG_VXFS_FS is not set
+# CONFIG_HPFS_FS is not set
+# CONFIG_QNX4FS_FS is not set
+# CONFIG_SYSV_FS is not set
+# CONFIG_UFS_FS is not set
+
+#
+# Network File Systems
+#
+CONFIG_NFS_FS=y
+CONFIG_NFS_V3=y
+# CONFIG_NFS_V3_ACL is not set
+CONFIG_NFS_V4=y
+# CONFIG_NFS_DIRECTIO is not set
+# CONFIG_NFSD is not set
+CONFIG_ROOT_NFS=y
+CONFIG_LOCKD=y
+CONFIG_LOCKD_V4=y
+CONFIG_NFS_COMMON=y
+CONFIG_SUNRPC=y
+CONFIG_SUNRPC_GSS=y
+CONFIG_RPCSEC_GSS_KRB5=y
+# CONFIG_RPCSEC_GSS_SPKM3 is not set
+# CONFIG_SMB_FS is not set
+# CONFIG_CIFS is not set
+# CONFIG_NCP_FS is not set
+# CONFIG_CODA_FS is not set
+# CONFIG_AFS_FS is not set
+# CONFIG_9P_FS is not set
+
+#
+# Partition Types
+#
+CONFIG_PARTITION_ADVANCED=y
+# CONFIG_ACORN_PARTITION is not set
+# CONFIG_OSF_PARTITION is not set
+# CONFIG_AMIGA_PARTITION is not set
+# CONFIG_ATARI_PARTITION is not set
+# CONFIG_MAC_PARTITION is not set
+CONFIG_MSDOS_PARTITION=y
+# CONFIG_BSD_DISKLABEL is not set
+# CONFIG_MINIX_SUBPARTITION is not set
+# CONFIG_SOLARIS_X86_PARTITION is not set
+# CONFIG_UNIXWARE_DISKLABEL is not set
+# CONFIG_LDM_PARTITION is not set
+# CONFIG_SGI_PARTITION is not set
+# CONFIG_ULTRIX_PARTITION is not set
+# CONFIG_SUN_PARTITION is not set
+# CONFIG_KARMA_PARTITION is not set
+# CONFIG_EFI_PARTITION is not set
+
+#
+# Native Language Support
+#
+CONFIG_NLS=y
+CONFIG_NLS_DEFAULT="iso8859-1"
+CONFIG_NLS_CODEPAGE_437=y
+# CONFIG_NLS_CODEPAGE_737 is not set
+# CONFIG_NLS_CODEPAGE_775 is not set
+# CONFIG_NLS_CODEPAGE_850 is not set
+# CONFIG_NLS_CODEPAGE_852 is not set
+# CONFIG_NLS_CODEPAGE_855 is not set
+# CONFIG_NLS_CODEPAGE_857 is not set
+# CONFIG_NLS_CODEPAGE_860 is not set
+# CONFIG_NLS_CODEPAGE_861 is not set
+# CONFIG_NLS_CODEPAGE_862 is not set
+# CONFIG_NLS_CODEPAGE_863 is not set
+# CONFIG_NLS_CODEPAGE_864 is not set
+# CONFIG_NLS_CODEPAGE_865 is not set
+# CONFIG_NLS_CODEPAGE_866 is not set
+# CONFIG_NLS_CODEPAGE_869 is not set
+# CONFIG_NLS_CODEPAGE_936 is not set
+# CONFIG_NLS_CODEPAGE_950 is not set
+# CONFIG_NLS_CODEPAGE_932 is not set
+# CONFIG_NLS_CODEPAGE_949 is not set
+# CONFIG_NLS_CODEPAGE_874 is not set
+# CONFIG_NLS_ISO8859_8 is not set
+# CONFIG_NLS_CODEPAGE_1250 is not set
+# CONFIG_NLS_CODEPAGE_1251 is not set
+# CONFIG_NLS_ASCII is not set
+# CONFIG_NLS_ISO8859_1 is not set
+# CONFIG_NLS_ISO8859_2 is not set
+# CONFIG_NLS_ISO8859_3 is not set
+# CONFIG_NLS_ISO8859_4 is not set
+# CONFIG_NLS_ISO8859_5 is not set
+# CONFIG_NLS_ISO8859_6 is not set
+# CONFIG_NLS_ISO8859_7 is not set
+# CONFIG_NLS_ISO8859_9 is not set
+# CONFIG_NLS_ISO8859_13 is not set
+# CONFIG_NLS_ISO8859_14 is not set
+# CONFIG_NLS_ISO8859_15 is not set
+# CONFIG_NLS_KOI8_R is not set
+# CONFIG_NLS_KOI8_U is not set
+# CONFIG_NLS_UTF8 is not set
+
+#
+# Profiling support
+#
+# CONFIG_PROFILING is not set
+
+#
+# Kernel hacking
+#
+# CONFIG_PRINTK_TIME is not set
+CONFIG_ENABLE_MUST_CHECK=y
+CONFIG_MAGIC_SYSRQ=y
+# CONFIG_UNUSED_SYMBOLS is not set
+CONFIG_DEBUG_KERNEL=y
+CONFIG_LOG_BUF_SHIFT=14
+CONFIG_DETECT_SOFTLOCKUP=y
+# CONFIG_SCHEDSTATS is not set
+# CONFIG_DEBUG_SLAB is not set
+# CONFIG_DEBUG_RT_MUTEXES is not set
+# CONFIG_RT_MUTEX_TESTER is not set
+# CONFIG_DEBUG_SPINLOCK is not set
+CONFIG_DEBUG_MUTEXES=y
+# CONFIG_DEBUG_RWSEMS is not set
+# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
+# CONFIG_DEBUG_KOBJECT is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_DEBUG_FS is not set
+# CONFIG_DEBUG_VM is not set
+# CONFIG_DEBUG_LIST is not set
+CONFIG_FRAME_POINTER=y
+CONFIG_FORCED_INLINING=y
+# CONFIG_HEADERS_CHECK is not set
+# CONFIG_RCU_TORTURE_TEST is not set
+# CONFIG_DEBUG_USER is not set
+# CONFIG_DEBUG_WAITQ is not set
+# CONFIG_DEBUG_ERRORS is not set
+CONFIG_DEBUG_LL=y
+# CONFIG_DEBUG_ICEDCC is not set
+
+#
+# Security options
+#
+# CONFIG_KEYS is not set
+# CONFIG_SECURITY is not set
+
+#
+# Cryptographic options
+#
+CONFIG_CRYPTO=y
+CONFIG_CRYPTO_ALGAPI=y
+CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_MANAGER=y
+# CONFIG_CRYPTO_HMAC is not set
+# CONFIG_CRYPTO_NULL is not set
+# CONFIG_CRYPTO_MD4 is not set
+CONFIG_CRYPTO_MD5=y
+# CONFIG_CRYPTO_SHA1 is not set
+# CONFIG_CRYPTO_SHA256 is not set
+# CONFIG_CRYPTO_SHA512 is not set
+# CONFIG_CRYPTO_WP512 is not set
+# CONFIG_CRYPTO_TGR192 is not set
+CONFIG_CRYPTO_ECB=m
+CONFIG_CRYPTO_CBC=y
+CONFIG_CRYPTO_DES=y
+# CONFIG_CRYPTO_BLOWFISH is not set
+# CONFIG_CRYPTO_TWOFISH is not set
+# CONFIG_CRYPTO_SERPENT is not set
+# CONFIG_CRYPTO_AES is not set
+# CONFIG_CRYPTO_CAST5 is not set
+# CONFIG_CRYPTO_CAST6 is not set
+# CONFIG_CRYPTO_TEA is not set
+# CONFIG_CRYPTO_ARC4 is not set
+# CONFIG_CRYPTO_KHAZAD is not set
+# CONFIG_CRYPTO_ANUBIS is not set
+# CONFIG_CRYPTO_DEFLATE is not set
+# CONFIG_CRYPTO_MICHAEL_MIC is not set
+# CONFIG_CRYPTO_CRC32C is not set
+# CONFIG_CRYPTO_TEST is not set
+
+#
+# Hardware crypto devices
+#
+
+#
+# Library routines
+#
+CONFIG_CRC_CCITT=y
+# CONFIG_CRC16 is not set
+CONFIG_CRC32=y
+CONFIG_LIBCRC32C=y
+CONFIG_PLIST=y
[-- Attachment #5: ethernet_fix_2430.patch --]
[-- Type: application/octet-stream, Size: 1036 bytes --]
This patch updates the interrupt line behaviour for 2430 SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
smc91x.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
==============================================================================
diff -purN linux-omap/drivers/net/smc91x.h dev-linux-omap-2.6.git/drivers/net/smc91x.h
--- linux-omap/drivers/net/smc91x.h 2006-11-02 00:16:21.000000000 -0600
+++ dev-linux-omap-2.6.git/drivers/net/smc91x.h 2006-11-02 15:38:13.000000000 -0600
@@ -192,14 +192,16 @@ SMC_outw(u16 val, void __iomem *ioaddr,
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
+#ifdef CONFIG_ARCH_OMAP2430
+#define SMC_IRQ_FLAGS SA_TRIGGER_LOW
+#else
#define SMC_IRQ_FLAGS (( \
machine_is_omap_h2() \
|| machine_is_omap_h3() \
|| machine_is_omap_h4() \
|| (machine_is_omap_innovator() && !cpu_is_omap1510()) \
) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
-
-
+#endif
#elif defined(CONFIG_SH_SH4202_MICRODEV)
#define SMC_CAN_USE_8BIT 0
[-- Attachment #6: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] To add OMAP 2430 Support
2006-11-03 18:44 [PATCH] To add OMAP 2430 Support Syed Mohammed, Khasim
@ 2006-11-03 19:03 ` Dirk Behme
2006-11-03 19:28 ` Dirk Behme
2006-11-09 2:22 ` Tony Lindgren
2 siblings, 0 replies; 10+ messages in thread
From: Dirk Behme @ 2006-11-03 19:03 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
Syed Mohammed, Khasim wrote:
> Attached are set of patches to get OMAP 2430 "minimal" support on to the
> tree.
>
> With these patches I was able to boot the kernel on 2430SDP and have
> verified booting the same on 2420 H4 (just to confirm it doesn't break
> any existing 2420 functionality).
>
> Please do let me know for any issues,
One minor thing: Attachment removes warning about defined
but unused sdp2430_init_flash. Maybe you like to add
sdp2430_init_flash later again if its working?
Cheers
Dirk
[-- Attachment #2: board-2430sdp_warning_fix.txt --]
[-- Type: text/plain, Size: 830 bytes --]
Index: linux-osk/arch/arm/mach-omap2/board-2430sdp.c
===================================================================
--- linux-osk.orig/arch/arm/mach-omap2/board-2430sdp.c
+++ linux-osk/arch/arm/mach-omap2/board-2430sdp.c
@@ -185,25 +185,12 @@ static inline void __init sdp2430_init_s
}
-static void __init sdp2430_init_flash(void)
-{
- unsigned long base;
-
- if (gpmc_cs_request(SDP2430_FLASH_CS, SZ_64M, &base) < 0) {
- printk("Can't request GPMC CS for flash\n");
- return;
- }
- sdp2430_flash_resource.start = base;
- sdp2430_flash_resource.end = base + SZ_64M - 1;
-}
-
static void __init omap_2430sdp_init_irq(void)
{
omap2_init_common_hw();
omap_init_irq();
omap_gpio_init();
sdp2430_init_smc91x();
-// 2430sdp_init_flash();
}
static struct omap_uart_config sdp2430_uart_config __initdata = {
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] To add OMAP 2430 Support
2006-11-03 18:44 [PATCH] To add OMAP 2430 Support Syed Mohammed, Khasim
2006-11-03 19:03 ` Dirk Behme
@ 2006-11-03 19:28 ` Dirk Behme
2006-11-03 22:00 ` David Brownell
2006-11-09 2:22 ` Tony Lindgren
2 siblings, 1 reply; 10+ messages in thread
From: Dirk Behme @ 2006-11-03 19:28 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
Syed Mohammed, Khasim wrote:
> ethernet_fix_2430.patch
> -----------------------
> This patch updates the GPIO interrupt line behavior for SMC91x
> interrupts on 2430 SDP.
>
> --- linux-omap/drivers/net/smc91x.h 2006-11-02
00:16:21.000000000 -0600
> +++ dev-linux-omap-2.6.git/drivers/net/smc91x.h
2006-11-02 15:38:13.000000000 -0600
> @@ -192,14 +192,16 @@ SMC_outw(u16 val, void __iomem
*ioaddr,
> #include <asm/mach-types.h>
> #include <asm/arch/cpu.h>
>
> +#ifdef CONFIG_ARCH_OMAP2430
> +#define SMC_IRQ_FLAGS SA_TRIGGER_LOW
> +#else
> #define SMC_IRQ_FLAGS (( \
> machine_is_omap_h2() \
> || machine_is_omap_h3() \
> || machine_is_omap_h4() \
> || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
> ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
> -
> -
> +#endif
> #elif defined(CONFIG_SH_SH4202_MICRODEV)
Regarding SA_TRIGGER_LOW, include/linux/interrupt.h tells us
/*
* Migration helpers. Scheduled for removal in 1/2007
* Do not use for new code !
*/
...
#define SA_TRIGGER_LOW IRQF_TRIGGER_LOW
Any chance (even if I don't see it at the moment ;) ) to
integrate IRQF_TRIGGER_LOW instead into the existing
SMC_IRQ_FLAGS using machine_is_omap_2430sdp and avoiding the
additional #ifdef?
Cheers
Dirk
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] To add OMAP 2430 Support
2006-11-03 19:28 ` Dirk Behme
@ 2006-11-03 22:00 ` David Brownell
2006-11-03 22:49 ` Syed Mohammed, Khasim
0 siblings, 1 reply; 10+ messages in thread
From: David Brownell @ 2006-11-03 22:00 UTC (permalink / raw)
To: linux-omap-open-source
On Friday 03 November 2006 11:28 am, Dirk Behme wrote:
> Any chance (even if I don't see it at the moment ;) ) to
> integrate IRQF_TRIGGER_LOW instead into the existing
> SMC_IRQ_FLAGS using machine_is_omap_2430sdp and avoiding the
> additional #ifdef?
For that matter, why isn't H4 using TRIGGER_LOW? The only
reason to use edge triggering on earlier hardware was that
the GPIOs didn't support level triggers. The SMC chip is
actually level-triggered.
- Dave
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH] To add OMAP 2430 Support
2006-11-03 22:00 ` David Brownell
@ 2006-11-03 22:49 ` Syed Mohammed, Khasim
2006-11-09 2:23 ` Tony Lindgren
0 siblings, 1 reply; 10+ messages in thread
From: Syed Mohammed, Khasim @ 2006-11-03 22:49 UTC (permalink / raw)
To: David Brownell, linux-omap-open-source, Dirk Behme
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
Dirk / David,
Many Thanks for the review.
Actually we can operate SMC91x in both edge and level. On H4 Ethernet
does work with IRQF_TRIGGER_LOW, I didn't want to break any existing
functionality on first try :).
Dirk, thanks for pointing the comment to me, due to my screen color I
missed it :). For now I can make both H4 and 2430SDP as
IRQF_TRIGGER_FALLING.
But if we agree, I can configure H4 and 2430SDP for IRQF_TRIGGER_LOW.
Thanks & Regards
Khasim
-----Original Message-----
From: David Brownell [mailto:david-b@pacbell.net]
Sent: Friday, November 03, 2006 4:00 PM
To: linux-omap-open-source@linux.omap.com
Cc: Dirk Behme; Syed Mohammed, Khasim
Subject: Re: [PATCH] To add OMAP 2430 Support
On Friday 03 November 2006 11:28 am, Dirk Behme wrote:
> Any chance (even if I don't see it at the moment ;) ) to
> integrate IRQF_TRIGGER_LOW instead into the existing
> SMC_IRQ_FLAGS using machine_is_omap_2430sdp and avoiding the
> additional #ifdef?
For that matter, why isn't H4 using TRIGGER_LOW? The only
reason to use edge triggering on earlier hardware was that
the GPIOs didn't support level triggers. The SMC chip is
actually level-triggered.
- Dave
[-- Attachment #2: ethernet_fix2_2430.patch --]
[-- Type: application/octet-stream, Size: 711 bytes --]
This patch updates the interrupt line behaviour for 2430 SDP.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
smc91x.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
==============================================================================
--- linux-omap/drivers/net/smc91x.h 2006-11-02 00:16:21.000000000 -0600
+++ dev-linux-omap-2.6.git/drivers/net/smc91x.h 2006-11-03 16:47:09.000000000 -0600
@@ -197,6 +197,7 @@ SMC_outw(u16 val, void __iomem *ioaddr,
|| machine_is_omap_h3() \
|| machine_is_omap_h4() \
|| (machine_is_omap_innovator() && !cpu_is_omap1510()) \
+ || machine_is_omap_2430sdp() \
) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] To add OMAP 2430 Support
2006-11-03 22:49 ` Syed Mohammed, Khasim
@ 2006-11-09 2:23 ` Tony Lindgren
0 siblings, 0 replies; 10+ messages in thread
From: Tony Lindgren @ 2006-11-09 2:23 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
* Syed Mohammed, Khasim <x0khasim@ti.com> [061104 00:56]:
> Dirk / David,
>
> Many Thanks for the review.
>
> Actually we can operate SMC91x in both edge and level. On H4 Ethernet
> does work with IRQF_TRIGGER_LOW, I didn't want to break any existing
> functionality on first try :).
>
> Dirk, thanks for pointing the comment to me, due to my screen color I
> missed it :). For now I can make both H4 and 2430SDP as
> IRQF_TRIGGER_FALLING.
>
> But if we agree, I can configure H4 and 2430SDP for IRQF_TRIGGER_LOW.
Yeah, let's change it. Another thing that should be done for smc91x
on 24xx is to use the gpmc code for timings.
Regards,
Tony
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] To add OMAP 2430 Support
2006-11-03 18:44 [PATCH] To add OMAP 2430 Support Syed Mohammed, Khasim
2006-11-03 19:03 ` Dirk Behme
2006-11-03 19:28 ` Dirk Behme
@ 2006-11-09 2:22 ` Tony Lindgren
2 siblings, 0 replies; 10+ messages in thread
From: Tony Lindgren @ 2006-11-09 2:22 UTC (permalink / raw)
To: Syed Mohammed, Khasim, Richard Woodruff; +Cc: linux-omap-open-source
* Syed Mohammed, Khasim <x0khasim@ti.com> [061103 20:46]:
> Hi all,
>
> Attached are set of patches to get OMAP 2430 "minimal" support on to the
> tree.
>
> With these patches I was able to boot the kernel on 2430SDP and have
> verified booting the same on 2420 H4 (just to confirm it doesn't break
> any existing 2420 functionality).
Cool. Can you please inline your patches next time to allow easier
commenting on the code?
> Please do let me know for any issues, I would be glad to correct and
> re-submit them.
Looks OK in general, just one comment below.
> +#define sync_p_port_write() \
> + ({ int dv = 0; \
> + __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 4" : : "r" (dv)); \
> + })
> +
> /*
> * OMAP2 has a number of different interrupt controllers, each interrupt
> * controller is identified as its own "bank". Register definitions are
> @@ -48,6 +53,7 @@ static struct omap_irq_bank {
> static void omap_ack_irq(unsigned int irq)
> {
> __raw_writel(0x1, irq_banks[0].base_reg + INTC_CONTROL);
> + sync_p_port_write();
> }
>
> static void omap_mask_irq(unsigned int irq)
I'd leave this out of the patch for now until we know if it's
still needed. If it's needed, there should probably be arm generic
function for it. Maybe dwb() or something like that? :)
I think at some point Richard Woodruff said that he had to drain
write buffer for timer writes because of some inaccuracy. Richard,
could you please clarify it again? I don't think I've seen these
issues on 2420 myself, but maybe some timer test code could expose
it?
Regards,
Tony
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-13 16:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09 15:01 [PATCH] To add OMAP 2430 Support Woodruff, Richard
2006-11-10 0:46 ` Tony Lindgren
2006-11-13 16:01 ` porting linux rajesh B
-- strict thread matches above, loose matches on Subject: below --
2006-11-03 18:44 [PATCH] To add OMAP 2430 Support Syed Mohammed, Khasim
2006-11-03 19:03 ` Dirk Behme
2006-11-03 19:28 ` Dirk Behme
2006-11-03 22:00 ` David Brownell
2006-11-03 22:49 ` Syed Mohammed, Khasim
2006-11-09 2:23 ` Tony Lindgren
2006-11-09 2:22 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox