Skip to contentSkip to conversation

Accessing DSP MMU on OMAP SDP2430

DISCUSSION rajeev s 2 participants 2 messages Jan 22, 2007

lore
Share & tools
lore

rajeev s

author
#0 lore raw

Hi All,I have an sdp2430 board (OMAP2430 based).I want to access the DSP MMU registers from the ARM side .The Address base of this DSP MMU Register is on the Address range 0x5d000000. To access these registers from ARM to setup the MMU Translation i added the following code in the file:include/asm/arch-omap/io.h (Linux source is 2.6-19):#define IO_VIRT_DSP_L2_RAM      0xED000000  /* va of DSP MMU */I arrived at this address using the following logic :0x5d000000 + 0x90000000 = 0xED000000.When i access the DSP MMU address registers from the Virtual Address base 0xED000000 , i get an kernel crash.Also i have created an entry for this address in the io.c file as well.Could anybody let me know am i following the correct procedure.ThanksRajeev

raj

#1 lore raw

Depending on when you want to access it and how often you will either chose to create a static map for the device or just ioremap it.

If you don't need to access it much and you don't need it a very early states of the boot process it is probably just as well to dynamically do handle it with ioremap.

If you are set on static mapping it you can google up an old mail on this list where I give a lot of information on a thread about internal sram.

Regards,
Richard W.

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:linux-omap-

Quoted 6 lines

[email protected]] On Behalf Of rajeev s
Sent: Monday, January 22, 2007 3:55 AM
To: linux_omap_open_source
Subject: Accessing DSP MMU on OMAP SDP2430

Hi All,I have an sdp2430 board (OMAP2430 based).I want to access the

DSP

Quoted 1 line

MMU registers from the ARM side .The Address base of this DSP MMU

Register

Quoted 1 line

is on the Address range 0x5d000000. To access these registers from ARM

to

Quoted 3 lines

setup the MMU Translation i added the following code in the file:include/asm/arch-omap/io.h (Linux source is 2.6-19):#define IO_VIRT_DSP_L2_RAM      0xED000000  /*

va

Quoted 1 line

of DSP MMU */I arrived at this address using the following

logic

Quoted 2 lines

:0x5d000000 + 0x90000000 = 0xED000000.When i access the DSP MMU address registers from the Virtual Address base 0xED000000 , i

get an

Quoted 9 lines

kernel crash.Also i have created an entry for this address in the io.c file as well.Could anybody let me know am i following the correct procedure.ThanksRajeev

raj
_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source