How to port brcmnand Linux driver?

Eric Le Bihan eric.le.bihan.dev at free.fr
Wed Sep 21 08:09:03 PDT 2016


> On Wed, Sep 21, 2016 at 10:40:43AM +0200, Eric Le Bihan wrote:
> >
> > I'm trying to port the brcmnand driver for Broadcom NAND controller
> > from Linux.
> > This driver requires an update of the MTD headers in barebox, as
> > they lack
> > definitions for functions such as mtd_set_ooblayout().
> > 
> > What is the recommended strategy for this? Should I update the
> > whole set of
> > headers and report the barebox specific changes (use of device_d,
> > etc) or only
> > add the missing functions?
> 
> For the mtd headers we usually only port the functions we need which
> worked good enough in the past.

OK. I've noticed that the use of mtd_set_ooblayout() was introduced in 
Linux 4.7. So I'll port brcmnand from 4.6, thus avoiding quite a few 
changes in the OOB/ECC management.

Thanks for your advices.

Best regards,

--
ELB



More information about the barebox mailing list