2009-10-21 07:41:10     Build fails for bfin cam driver (OV9655)

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-10-21 07:41:10     Build fails for bfin cam driver (OV9655)

V Hemanth Kumar (INDIA)

Message: 81530   

 

Hi,

 

I tried including the cam support (bfin+ov9655) under the multimedia devices for the BF527 core. When I compile it I am getting the below errors:

 

####

 

drivers/media/video/blackfin/blackfin_cam.c: In function ‘bcap_reg_reset’:

drivers/media/video/blackfin/blackfin_cam.c:197: error: implicit declaration of function ‘bfin_clear_PPI_STATUS’.

 

####

 

I grepped for "bfin_clear_PPI_STATUS" in the "linux-2.6.x/arch/blackfin/" directory but could not find the definition for BF527 architecture.

 

So what should I declare it to? :-

 

bfin_read_PPI_STATUS()

 

or

 

bfin_write_PPI_STATUS(0xFFFF)

 

Thanks.

QuoteReplyEditDelete

 

 

2009-10-21 08:26:37     Re: Build fails for bfin cam driver (OV9655)

V Hemanth Kumar (INDIA)

Message: 81532   

 

I just went through the HRM and I found that all the bits in PPI_STATUS register for BF527 is W1C (write 1 to clear) bits.

 

So I feel bfin_write_PPI_STATUS(0xFFFF) would be the right definition. Am I right here?

QuoteReplyEditDelete

 

 

2009-10-21 12:00:39     Re: Build fails for bfin cam driver (OV9655)

Robin Getz (UNITED STATES)

Message: 81534   

 

Hemanth:

 

What dist are you using? I think we fixed that along time ago...

 

grep bfin_clear_PPI arch/blackfin/mach* -R

arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h:#define bfin_clear_PPI_STATUS()                  bfin_write_PPI_STATUS(0xFFFF)

arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h:#define bfin_clear_PPI_STATUS()                  bfin_write_PPI_STATUS(0xFFFF)

arch/blackfin/mach-bf533/include/mach/cdefBF532.h:#define bfin_clear_PPI_STATUS()              bfin_read_PPI_STATUS()

arch/blackfin/mach-bf537/include/mach/cdefBF534.h:#define bfin_clear_PPI_STATUS()              bfin_write_PPI_STATUS(0xFFFF)

arch/blackfin/mach-bf538/include/mach/cdefBF538.h:#define bfin_clear_PPI_STATUS()        bfin_read_PPI_STATUS()

arch/blackfin/mach-bf561/include/mach/cdefBF561.h:#define bfin_clear_PPI0_STATUS()             bfin_read_PPI0_STATUS()

arch/blackfin/mach-bf561/include/mach/cdefBF561.h:#define bfin_clear_PPI1_STATUS()             bfin_read_PPI1_STATUS()

 

 

-Robin

QuoteReplyEditDelete

 

 

2009-10-21 12:31:40     Re: Build fails for bfin cam driver (OV9655)

V Hemanth Kumar (INDIA)

Message: 81535   

 

Hello Robin,

 

I am using the latest 2009R1.RC6 release "uClinux-dist-2009R1-RC6.tar.bz2".

 

This is what I get when:

 

[hemanth@A2MD05166 linux-2.6.x]$ grep bfin_clear_PPI arch/blackfin/mach* -R

arch/blackfin/mach-bf533/include/mach/cdefBF532.h:#define bfin_clear_PPI_STATUS()              bfin_read_PPI_STATUS()

arch/blackfin/mach-bf537/include/mach/cdefBF534.h:#define bfin_clear_PPI_STATUS()              bfin_write_PPI_STATUS(0xFFFF)

arch/blackfin/mach-bf538/include/mach/cdefBF538.h:#define bfin_clear_PPI_STATUS()        bfin_read_PPI_STATUS()

arch/blackfin/mach-bf561/include/mach/cdefBF561.h:#define bfin_clear_PPI0_STATUS()             bfin_read_PPI0_STATUS()

arch/blackfin/mach-bf561/include/mach/cdefBF561.h:#define bfin_clear_PPI1_STATUS()             bfin_read_PPI1_STATUS()

 

~Hemanth

QuoteReplyEditDelete

 

 

2009-10-21 15:18:15     Re: Build fails for bfin cam driver (OV9655)

Mike Frysinger (UNITED STATES)

Message: 81536   

 

the fix was added after the 2009R1 release.  use the svn branch for the kernel or just copy the definition from the BF537.

Attachments

    Outcomes