All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Remove IVA IRQ bank
@ 2006-08-28 12:34 Komal Shah
  2006-08-29  6:43 ` GPIO OF OMAP5912 w.b.b
  2006-08-29 14:29 ` [PATCH] ARM: OMAP: Remove IVA IRQ bank Tony Lindgren
  0 siblings, 2 replies; 11+ messages in thread
From: Komal Shah @ 2006-08-28 12:34 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Tony,

Attached the patch as per discussion on following thread:

http://linux.omap.com/pipermail/linux-omap-open-source/2006-August/007820.html

---Komal Shah
http://komalshah.blogspot.com

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are


[-- Attachment #2: 0001-ARM-OMAP-Remove-IVA-IRQ-bank.patch --]
[-- Type: application/octet-stream, Size: 1199 bytes --]

From nobody Mon Sep 17 00:00:00 2001
From: Komal Shah <komal_shah802003@yahoo.com>
Date: Mon, 28 Aug 2006 23:31:45 +0530
Subject: [PATCH] ARM: OMAP: Remove IVA IRQ bank

ARM11 can't access the IVA interrupt controller from
IVA slave port.

From Richard Woodruff:

"The 0x40000000 is an IVA-ARM7 local bus address.
The IVA-INTC is NOT accessible through the IVA-L3-Slave Port.
The current TRM does say this directly and indirectly in a few spots and
in figures."

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>

---

 arch/arm/mach-omap2/irq.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

6bb574f0bff86c795e700aaf67c8a134e6a8b4d1
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index dfc3b35..1ed2fff 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -41,18 +41,6 @@ static struct omap_irq_bank {
 		.nr_irqs	= 96,
 	}, {
 		/* XXX: DSP INTC */
-
-#if 0
-	/*
-	 * Commented out for now until we fix the IVA clocking
-	 */
-#ifdef CONFIG_ARCH_OMAP2420
-	}, {
-		/* IVA INTC (2420 only) */
-		.base_reg	= OMAP24XX_IVA_INTC_BASE,
-		.nr_irqs	= 16,	/* Actually 32, but only 16 are used */
-#endif
-#endif
 	}
 };
 
-- 
1.3.3


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* GPIO OF OMAP5912
  2006-08-28 12:34 [PATCH] ARM: OMAP: Remove IVA IRQ bank Komal Shah
@ 2006-08-29  6:43 ` w.b.b
  2006-08-29 14:08   ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
  2006-08-29 14:29 ` [PATCH] ARM: OMAP: Remove IVA IRQ bank Tony Lindgren
  1 sibling, 1 reply; 11+ messages in thread
From: w.b.b @ 2006-08-29  6:43 UTC (permalink / raw)
  To: Linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

hi:

 i want to do some work about OMAP5912'GPIO.but I am failed to do that.

 the following is a simple program:

test.c 

-----------------------------------------------------

#include <stdio.h>
#include <unistd.h>
#include <asm/io.h>

#define GPIO3_OUT 0xfffbbc40 /* lp1 */

int main()
{
  /* Get access to the ports */
  
  
  /* Set the data signals (D0-7) of the port to all low (0) */
  outb(0xffff, GPIO3_OUT);
  
  /* Sleep for a while (100 ms) */
  usleep(100000);
}
-----------------------------------------------------
arm-linux-gcc -g test.c -o test.out
----------------------------------------------------
I run the binary file on the omap:./test.out
-----------------------------------------------------
but i get the result:segmentation falt!
---------------------------------------------------
who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
   thanks!

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* AW: GPIO OF OMAP5912
  2006-08-29  6:43 ` GPIO OF OMAP5912 w.b.b
@ 2006-08-29 14:08   ` LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
  2006-08-29 16:50     ` Hingkwan Huen
  0 siblings, 1 reply; 11+ messages in thread
From: LIMITED Nguyen Duong Thanh (CR/AEM Praktikant) @ 2006-08-29 14:08 UTC (permalink / raw)
  To: w.b.b, Linux-omap-open-source

Hello,

I don't know if my idea help you.
Maybe the problem is about the libraries in directory /lib/ on OMAP file systems. It doesn't contain the libraries, which your program need.

Regard,
Thanh 

-----Ursprüngliche Nachricht-----
Von: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-open-source-bounces@linux.omap.com] Im Auftrag von w.b.b
Gesendet: Dienstag, 29. August 2006 08:44
An: Linux-omap-open-source@linux.omap.com
Betreff: GPIO OF OMAP5912

hi:

 i want to do some work about OMAP5912'GPIO.but I am failed to do that.

 the following is a simple program:

test.c 

-----------------------------------------------------

#include <stdio.h>
#include <unistd.h>
#include <asm/io.h>

#define GPIO3_OUT 0xfffbbc40 /* lp1 */

int main()
{
  /* Get access to the ports */
  
  
  /* Set the data signals (D0-7) of the port to all low (0) */
  outb(0xffff, GPIO3_OUT);
  
  /* Sleep for a while (100 ms) */
  usleep(100000);
}
-----------------------------------------------------
arm-linux-gcc -g test.c -o test.out
----------------------------------------------------
I run the binary file on the omap:./test.out
-----------------------------------------------------
but i get the result:segmentation falt!
---------------------------------------------------
who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
   thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ARM: OMAP: Remove IVA IRQ bank
  2006-08-28 12:34 [PATCH] ARM: OMAP: Remove IVA IRQ bank Komal Shah
  2006-08-29  6:43 ` GPIO OF OMAP5912 w.b.b
@ 2006-08-29 14:29 ` Tony Lindgren
  1 sibling, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2006-08-29 14:29 UTC (permalink / raw)
  To: Komal Shah; +Cc: linux-omap-open-source

* Komal Shah <komal_shah802003@yahoo.com> [060828 15:40]:
> Tony,
> 
> Attached the patch as per discussion on following thread:
> 
> http://linux.omap.com/pipermail/linux-omap-open-source/2006-August/007820.html

Thanks, pushing today.

Regards,

Tony

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AW: GPIO OF OMAP5912
  2006-08-29 14:08   ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
@ 2006-08-29 16:50     ` Hingkwan Huen
  2006-08-30  2:15       ` w.b.b
  0 siblings, 1 reply; 11+ messages in thread
From: Hingkwan Huen @ 2006-08-29 16:50 UTC (permalink / raw)
  To: LIMITED Nguyen Duong Thanh (CR/AEM Praktikant); +Cc: Linux-omap-open-source

Don't think you can access physical memory directly in user space. You
should use /dev/mem instead.

-kwan

On Tue, 2006-08-29 at 16:08 +0200, LIMITED Nguyen Duong Thanh (CR/AEM
Praktikant) wrote:
> Hello,
> 
> I don't know if my idea help you.
> Maybe the problem is about the libraries in directory /lib/ on OMAP file systems. It doesn't contain the libraries, which your program need.
> 
> Regard,
> Thanh 
> 
> -----Ursprüngliche Nachricht-----
> Von: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-open-source-bounces@linux.omap.com] Im Auftrag von w.b.b
> Gesendet: Dienstag, 29. August 2006 08:44
> An: Linux-omap-open-source@linux.omap.com
> Betreff: GPIO OF OMAP5912
> 
> hi:
> 
>  i want to do some work about OMAP5912'GPIO.but I am failed to do that.
> 
>  the following is a simple program:
> 
> test.c 
> 
> -----------------------------------------------------
> 
> #include <stdio.h>
> #include <unistd.h>
> #include <asm/io.h>
> 
> #define GPIO3_OUT 0xfffbbc40 /* lp1 */
> 
> int main()
> {
>   /* Get access to the ports */
>   
>   
>   /* Set the data signals (D0-7) of the port to all low (0) */
>   outb(0xffff, GPIO3_OUT);
>   
>   /* Sleep for a while (100 ms) */
>   usleep(100000);
> }
> -----------------------------------------------------
> arm-linux-gcc -g test.c -o test.out
> ----------------------------------------------------
> I run the binary file on the omap:./test.out
> -----------------------------------------------------
> but i get the result:segmentation falt!
> ---------------------------------------------------
> who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
>    thanks!
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AW: GPIO OF OMAP5912
  2006-08-29 16:50     ` Hingkwan Huen
@ 2006-08-30  2:15       ` w.b.b
  2006-08-30 12:51         ` Loading program to OMAP5910 Raja Mallik
  0 siblings, 1 reply; 11+ messages in thread
From: w.b.b @ 2006-08-30  2:15 UTC (permalink / raw)
  To: Linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 3145 bytes --]

 thanks.
  I get information about how to get use of the hardware in linux,but I am still confused about it.
-----------------------------------------------------------
the following steps about it:
 1. apply for the resource to linux kernel
 2. if you have applied ,then you can do some work about it.
 3.if you have finished ,release the resouce.
-------------------------------------------------------------
 i can only get the physical memory of the registers from the omap process guide.but I don't know their address in linux.
though it's a very basical question,i have to apply for help.
 maybe a simple example can make me understand quickly!
                         thanks
                                    w.b.b

 I 
----- Original Message ----- 
From: "Hingkwan Huen" <hkh@cypress.com>
To: "LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)" <DuongThanh.Nguyen@de.bosch.com>
Cc: "w.b.b" <rememberme_2000@126.com>; <Linux-omap-open-source@linux.omap.com>
Sent: Wednesday, August 30, 2006 12:50 AM
Subject: Re: AW: GPIO OF OMAP5912


> Don't think you can access physical memory directly in user space. You
> should use /dev/mem instead.
> 
> -kwan
> 
> On Tue, 2006-08-29 at 16:08 +0200, LIMITED Nguyen Duong Thanh (CR/AEM
> Praktikant) wrote:
>> Hello,
>> 
>> I don't know if my idea help you.
>> Maybe the problem is about the libraries in directory /lib/ on OMAP file systems. It doesn't contain the libraries, which your program need.
>> 
>> Regard,
>> Thanh 
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-open-source-bounces@linux.omap.com] Im Auftrag von w.b.b
>> Gesendet: Dienstag, 29. August 2006 08:44
>> An: Linux-omap-open-source@linux.omap.com
>> Betreff: GPIO OF OMAP5912
>> 
>> hi:
>> 
>>  i want to do some work about OMAP5912'GPIO.but I am failed to do that.
>> 
>>  the following is a simple program:
>> 
>> test.c 
>> 
>> -----------------------------------------------------
>> 
>> #include <stdio.h>
>> #include <unistd.h>
>> #include <asm/io.h>
>> 
>> #define GPIO3_OUT 0xfffbbc40 /* lp1 */
>> 
>> int main()
>> {
>>   /* Get access to the ports */
>>   
>>   
>>   /* Set the data signals (D0-7) of the port to all low (0) */
>>   outb(0xffff, GPIO3_OUT);
>>   
>>   /* Sleep for a while (100 ms) */
>>   usleep(100000);
>> }
>> -----------------------------------------------------
>> arm-linux-gcc -g test.c -o test.out
>> ----------------------------------------------------
>> I run the binary file on the omap:./test.out
>> -----------------------------------------------------
>> but i get the result:segmentation falt!
>> ---------------------------------------------------
>> who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
>>    thanks!
>> _______________________________________________
>> Linux-omap-open-source mailing list
>> Linux-omap-open-source@linux.omap.com
>> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>> 
>> 
> 
>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Loading program to OMAP5910
  2006-08-30  2:15       ` w.b.b
@ 2006-08-30 12:51         ` Raja Mallik
  2006-08-30 17:01           ` Dirk Behme
  0 siblings, 1 reply; 11+ messages in thread
From: Raja Mallik @ 2006-08-30 12:51 UTC (permalink / raw)
  To: Linux-omap-open-source

Hi all, 

I am trying to look for steps as how to load program to my LDK5910 board
which has omap5910.

Now Omap5910 has ARM925T and DSP. 

We are able to load program,but not able to execute to ARM core using
Code Composer Studio 3.1.We are trying to load boot loader and execute
it to program flash through JTAG.

Also we trying to update/load bootloader using serial port. At this
moment the default bootloader is not there in the board as we are
thinking the flash would have corrupted and serial console output is not
showing up in teraterm/hyperterm. All baud setting are fine as per
document.

we are using rrloader as bootloader.

Is there any other option through which can load the program & execute
in RAM/flash and write to flash.

Please share your input or help reference if any one has work on this
board.

Regards
Raja Mallik

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Loading program to OMAP5910
  2006-08-30 12:51         ` Loading program to OMAP5910 Raja Mallik
@ 2006-08-30 17:01           ` Dirk Behme
  2006-08-31  9:09             ` Raja Mallik
  2006-09-06 19:48             ` Random Number Generation Abot Botbot
  0 siblings, 2 replies; 11+ messages in thread
From: Dirk Behme @ 2006-08-30 17:01 UTC (permalink / raw)
  To: Raja Mallik; +Cc: Linux-omap-open-source

Raja Mallik wrote:
> We are able to load program,but not able to execute to ARM core using
> Code Composer Studio 3.1.We are trying to load boot loader and execute
> it to program flash through JTAG.

Check if section 2 of OMAP readme [1] can help you with JTAG 
and CCS. Maybe the other stuff in HOWTO section of OMAP Wiki 
[2] can help you as well.

Dirk

[1] 
http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=blob_plain;h=f8ffb68e8588c5ad43a72c3534c5f963aa7c91af;f=Documentation/arm/OMAP/README

[2] http://tree.celinuxforum.org/CelfPubWiki/OSK

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Loading program to OMAP5910
  2006-08-30 17:01           ` Dirk Behme
@ 2006-08-31  9:09             ` Raja Mallik
  2006-09-06 19:48             ` Random Number Generation Abot Botbot
  1 sibling, 0 replies; 11+ messages in thread
From: Raja Mallik @ 2006-08-31  9:09 UTC (permalink / raw)
  To: Dirk Behme; +Cc: Linux-omap-open-source

Thank for the input.

Aparently, I am trying to look for steps as how to load program to my
LDK5910 board which has omap5910.

Now Omap5910 has ARM925T and DSP. 

We are able to load program,but not able to execute to ARM core using
Code Composer Studio 3.1. We are trying to load boot loader and execute
it to program flash through JTAG.

Also we trying to update/load bootloader using serial port. 

At this moment the default bootloader is not there in the board as we
are thinking the flash would have corrupted and serial console output is
not showing up in teraterm/hyperterm. All baud setting are fine as per
document.

we are using rrloader as bootloader.

Is there any other option through which can load the program & execute
in RAM/flash and write to flash.

Pl, give your input in this case..

Regards
Raja Mallik



On Wed, 2006-08-30 at 19:01 +0200, Dirk Behme wrote:
> Raja Mallik wrote:
> > We are able to load program,but not able to execute to ARM core using
> > Code Composer Studio 3.1.We are trying to load boot loader and execute
> > it to program flash through JTAG.
> 
> Check if section 2 of OMAP readme [1] can help you with JTAG 
> and CCS. Maybe the other stuff in HOWTO section of OMAP Wiki 
> [2] can help you as well.
> 
> Dirk
> 
> [1] 
> http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=blob_plain;h=f8ffb68e8588c5ad43a72c3534c5f963aa7c91af;f=Documentation/arm/OMAP/README
> 
> [2] http://tree.celinuxforum.org/CelfPubWiki/OSK

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Random Number Generation
  2006-08-30 17:01           ` Dirk Behme
  2006-08-31  9:09             ` Raja Mallik
@ 2006-09-06 19:48             ` Abot Botbot
  2006-09-06 20:20               ` lamikr
  1 sibling, 1 reply; 11+ messages in thread
From: Abot Botbot @ 2006-09-06 19:48 UTC (permalink / raw)
  To: Linux-omap-open-source

Hello all,

  I'm wondering how one would generate a random number on both the DSP and 
GPP sides. Does linux come with a tool for generating random numbers? Should 
I include a standard (and large) math.h library for this purpose? I know the 
OMAP has hardware support for the generation of random numbers, but I can't 
seem to find refferences to how to use it in the BSL pdf. Any insight is 
much appreciated.

Thanks,
Andy

_________________________________________________________________
Windows Live Spaces is here! It’s easy to create your own personal Web site. 
  http://spaces.live.com/signup.aspx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Random Number Generation
  2006-09-06 19:48             ` Random Number Generation Abot Botbot
@ 2006-09-06 20:20               ` lamikr
  0 siblings, 0 replies; 11+ messages in thread
From: lamikr @ 2006-09-06 20:20 UTC (permalink / raw)
  To: Abot Botbot; +Cc: Linux-omap-open-source

Abot Botbot wrote:
> Hello all,
>
>  I'm wondering how one would generate a random number on both the DSP
> and GPP sides. Does linux come with a tool for generating random
> numbers? Should I include a standard (and large) math.h library for
> this purpose? I know the OMAP has hardware support for the generation
> of random numbers, but I can't seem to find refferences to how to use
> it in the BSL pdf. Any insight is much appreciated.
I have not tried my self, but have you seen the random generator driver in
    drivers\char\omap-rng.c?

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-06 20:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-28 12:34 [PATCH] ARM: OMAP: Remove IVA IRQ bank Komal Shah
2006-08-29  6:43 ` GPIO OF OMAP5912 w.b.b
2006-08-29 14:08   ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
2006-08-29 16:50     ` Hingkwan Huen
2006-08-30  2:15       ` w.b.b
2006-08-30 12:51         ` Loading program to OMAP5910 Raja Mallik
2006-08-30 17:01           ` Dirk Behme
2006-08-31  9:09             ` Raja Mallik
2006-09-06 19:48             ` Random Number Generation Abot Botbot
2006-09-06 20:20               ` lamikr
2006-08-29 14:29 ` [PATCH] ARM: OMAP: Remove IVA IRQ bank Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.