Re: tvp5150 not responding

2009-09-21 Thread Yuvraj Pasi
ok Thanks for pointing out my mistake. now it is giving a different error. i did unsigned long *funcs; if(ioctl(fd, I2C_FUNCS, funcs)<0) { perror("ioctl"); /* ERROR HANDLING: i2c transaction failed */ } Now it says ioctl: Bad address i guess either the address is still incorrect or there

tvp5150 not responding

2009-09-21 Thread Yuvraj Pasi
Hi, I am trying to test tvp5150 with my board from userspace. i have written a small program using example given in I2C documentation. after opening file fd = open ("/dev/i2c/1", O_RDWR ); when i do if (ioctl(fd, I2C_SLAVE, 0xB8) < 0) the system returns Failed to set slave address: Invalid argume

edma on DM355

2009-09-21 Thread Liu Hua
I'm using emif to connect a FPGA FIFO outside. The FIFO width is 16 bit. To access the FIFO, the address is 0x04002000. I want to copy a block of data to FPGA. I try to use edma to do the transfer. source: DDR dest: EMIF acnt = 2; bcnt = data_size(bytes) / 2; ccnt = 1; A-sync mode source

Re: [PATCH 3/4] davinci: Add LCD Graphics support for DA830/OMAP-L137 EVM

2009-09-21 Thread Mark A. Greer
On Fri, Sep 18, 2009 at 11:31:53AM -0700, Mark A. Greer wrote: > On Fri, Sep 18, 2009 at 09:05:56PM +0400, Sergei Shtylyov wrote: > > Hello. > > > > Mark A. Greer wrote: > > > >> From: Steve Chen > > > >Hm, is it Steve's patch? I'm seeing my stuff here. > > When I first started putting this s

Re: [PATCH 1/2] nand: Add bad block table overrides to Davinci NAND driver

2009-09-21 Thread Mark A. Greer
On Fri, Sep 18, 2009 at 11:21:17PM -0700, David Brownell wrote: > On Friday 18 September 2009, Mark A. Greer wrote: > > The issue is that the values for the 'offs' and 'veroffs' are wrong in > > the defaults used by nand_base.c:nand_default_bbt(). > > In what way "wrong"? The default: .o

implementing mmap on arm.

2009-09-21 Thread Andrea Gasparini
Hi, I'm just writing some code that wants to implement a stupid mmap on a device. What I did is the following: 1 - allocating a buffer with kmalloc: kmalloc_ptr = kmalloc(LEN + 2 * PAGE_SIZE, GFP_KERNEL); 2 - make sure that it's page aligned: kmalloc_area = (kmalloc_ptr + PAGE_SIZ

RE: [PATCH] DM355: Update NAND driver platform data

2009-09-21 Thread Narnakaje, Snehaprabha
Sekhar, Sudhakar, > > > > Sneha, > > > > I think at least some of your 4-Bit ECC patches are in the linux-davinci > > tree > > > > http://git.kernel.org/?p=linux/kernel/git/khilman/linux- > > davinci.git;a=commitdiff;h=2c902ca9cd5367122b3d591f44ad81c36f2737cc > > > > http://git.kernel.org/?p=linux

RE: How to play video on DM355 using mplayer

2009-09-21 Thread Mani, Arun
Do you have the buffer allocated for the video plane you are intending to use? From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of hui zhou Sent: Monday, September 21, 2009 10:2

How to play video on DM355 using mplayer

2009-09-21 Thread hui zhou
Hi,all I have a question on how to playback video on video framebuffer of DM355. Now,I want to use mplayer to playback a avi video file on /dev/fb/3. I have transplanted mplayer successfully by this method http://wiki.davincidsp.com/index.php/ARM_Open_Source_Codecs. I can use

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-09-21 Thread Craig Matsuura
Philby, Sorry, I forgot to mention, I did correct a problem with accessing a regs, it is where yo usend a NACK. I changed the read from DAVINCI_I2C_IMR_REG to DAVINCI_I2C_MDR_REG. +flag = davinci_i2c_read_reg(dev, DAVINCI_I2C_IMR_REG); +flag |= DAVINCI_I2C_MDR_NACK

Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions

2009-09-21 Thread Craig Matsuura
i did modify the patch to work for the dm644x. I believe it is correct, I looked at the 2.6.10 kernel and made the changes to your the i2c-davinci.c after patching it with your patch. It did nothing without the changes from the 2.6.10 kernel. Craig On Monday 21 September 2009 12:31:00 am Phi

RE: Compiling dsplink_140-05p1 for linux-davinci-2.6.23 kernel

2009-09-21 Thread Uppal, Deepali
Sameer, I would suggest you pick up a later DSPLink release for e.g. DSPLink release 1.50. This release officially adds support for a later version of the Linux kernel under MVL Pro 5. You can either move to a DVSDK version supporting a later DSPLink release or use the code files in a later DSP

RE: Compiling dsplink_140-05p1 for linux-davinci-2.6.23 kernel

2009-09-21 Thread Uppal, Deepali
Sameer, This error is indicating patch has not been applied correctly. Older support mails indicate this patch is for an older DVSDK version (1.00 series). Looking at the patch code, you should be able to patch the DSPLink files manually. Thanks and Regards, Deepali Uppal DSP/BIOS Link Platfor

Compiling dsplink_140-05p1 for linux-davinci-2.6.23 kernel

2009-09-21 Thread Sameer Naik
Hello, I have been trying to compile dsplink_140-05p1 (dvsdk_1_30_01_41) for 2.6.23 kernel. I applied the patches provided by Keven Hilman available here: http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg03002.html After a few changes, the build process works up until