[U-Boot] [PATCH v2 06/10] powerpc/ppc4xx: Use generic FPGA accessors on all gdsys 405ep/ex boards

Dirk Eibach dirk.eibach at gdsys.cc
Mon May 6 16:50:05 CEST 2013


Hi Wolfgang,

> ...
> 
> We strictly discourage using a notation of base address plus offset,
> and require to use proper C structs instead, especially because this
> allows type checking by the compiler.

I am very well aware of that.

> You had the this, and now attempt to throw it away.  This makes no
> sense.

In fact it does.
We have FPGAs that are memory mapped and others that are not. They must 
be accessed by the same drivers. So the alternative would be to create 
FPGA instances at address NULL and getting the register offesets by 
casting pointers to u16. Not very nice either.

Cheers
Dirk


More information about the U-Boot mailing list