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

Wolfgang Denk wd at denx.de
Tue May 7 21:18:03 CEST 2013


Dear Dirk Eibach,

In message <ba0b32bf657f5f3ffb6056cc6bd0452e at gdsys.cc> you wrote:
> 
> OK. Once more. 3 of our 4 FPGAs are *not* memory mapped. There is no 
> base address. This is what I want to show by:
> >>    struct ihs_fpga system_fpgas[] = {
> >> 	(struct ihs_fpga *)CONFIG_SYS_FPGA_BASE(0),
> >> 	(struct ihs_fpga *)NULL,
> >> 	(struct ihs_fpga *)NULL,
> >> 	(struct ihs_fpga *)NULL,
> >>    };
> 
> For accessing registers of those (not memory mapped) FPGAs I need an 
> u16 register-index. That is what I want to show by:
> >> mclink_send(fpga - 1, (u16)addr, data);

Can you please provide a bit more context?  What is "addr", and why
does it need a cast?

> This is the cast I am talking about.
> 
> This is the reason why I still need the fpga index parameter.



More information about the U-Boot mailing list