public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Building at91_nand.c for 2.6.15
@ 2006-03-12 21:46 Brian Stafford
  2006-03-13  7:33 ` Andrew Victor
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Stafford @ 2006-03-12 21:46 UTC (permalink / raw)
  To: Andrew Victor; +Cc: linux-mtd

Hi

I'm trying to build a 2.6.15.3 kernel for the AT91RM9200 patched with 
current mtd from CVS and 2.6.15-at91.patch.gz (in that order), however 
compilation fails on at91_nand.c because struct at91_nand_data is not 
defined.  I would have expected the declaration of this struct to be in 
one of the at91 header files but I cannot find it mentioned in any other 
source files.  Any idea where I should be looking?

Thanks
Brian

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

* Re: Building at91_nand.c for 2.6.15
  2006-03-12 21:46 Building at91_nand.c for 2.6.15 Brian Stafford
@ 2006-03-13  7:33 ` Andrew Victor
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Victor @ 2006-03-13  7:33 UTC (permalink / raw)
  To: Brian Stafford; +Cc: linux-mtd

hi Brian,

> I'm trying to build a 2.6.15.3 kernel for the AT91RM9200 patched with 
> current mtd from CVS and 2.6.15-at91.patch.gz (in that order), however 
> compilation fails on at91_nand.c because struct at91_nand_data is not 
> defined.  I would have expected the declaration of this struct to be in 
> one of the at91 header files but I cannot find it mentioned in any other 
> source files.  Any idea where I should be looking?

It's defined in the 2.6.16-rc3-at91 patch.
  http://maxim.org.za/AT91RM9200/2.6/2.6.16-rc3-at91.patch.gz

If you want to use it with 2.6.15, back-port the NAND stuff from the
following files:
   include/asm-arm/arch-at91rm9200/board.h
   arch/arm/mach-at91rm9200/devices.c 

Then in you board-specific file, you need to initialize a "struct
at91_nand_data" structure, and call at91_add_device_nand() from your 
board init code.  [Have a look at the board-dk.c code as an example]


Regards,
  Andrew Victor

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

end of thread, other threads:[~2006-03-13  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-12 21:46 Building at91_nand.c for 2.6.15 Brian Stafford
2006-03-13  7:33 ` Andrew Victor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox