[U-Boot] [PATCH 12/20] arm/km: add support for external switchconfiguration

Wolfgang Denk wd at denx.de
Mon Jul 9 21:44:53 CEST 2012


Dear Holger,

In message <4FFAEE4F.3090600 at keymile.com> you wrote:
> 
> shouldn't be there an exception for strictly board specific peripheral drivers
> like an custom-made FPGA?

I see two situations:

1) We are talking about code to load a bitstream into the FPGA, i. e.
   to "program it".  Such code should always be generic enough to put
   it under drivers/fpga/ (if the existing code there does not already
   cover the task).

2) We are talking about driver code for some preipheral implemented
   in the FPGA.  In many cases we find these peripherals to be pretty
   generic (say, UARTs, GPIOs, network interfaces, etc.).  In such
   cases there is no doubt that driver code should go to drivers/ .
   ONly in case you have areally, really special feature implemented
   that you need supported in U-Boot.  OK, then such drivers are
   probably better kept in your board directory.

Note that there will always be cases where hindsight will show that
the initial location was not perfect.  That is perfectly normal ;-)

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
'What shall we do?' said Twoflower.  'Panic?'  said  Rincewind  hope-
fully. He always held that panic was the best means of survival; back
in  the  olden days, his theory went, people faced with hungry sabre-
toothed tigers could be divided very simply in those who panicked and
those who stood there saying 'What a magnificent  brute!'  or  'Here,
pussy.'                      - Terry Pratchett, _The Light Fantastic_


More information about the U-Boot mailing list