fpga: allow programming fpga from FIT image for all FPGA drivers
PATCH 1/1 fpga: allow programming fpga from FIT image for all FPGA drivers
Hi,
Quoted 18 lines
Simon Glass wrote:
Quoted 5 lines · Goldschmidt Simon
This drops the limit that fpga is only loaded from FIT images for Xilinx. This is done by moving the 'partial' check from '
common/image.c' to 'drivers/fpga/xilinx.c' (the only driver supporting partial images yet) and supplies a weak default implementation in 'drivers/fpga/fpga.c'.Quoted 9 lines
Signed-off-by Simon Goldschmidt <[email protected]>--- common/bootm.c | 2 +- common/image.c | 6 ++---- drivers/fpga/fpga.c | 9 +++++++++ drivers/fpga/xilinx.c | 13 +++++++++++++ include/fpga.h | 1 + 5 files changed, 26 insertions(+), 5 deletions(-)
Quoted 1 line
I think the FPGA subsystem should move to driver model.
I can understand the need for that. However, I don't have the expertise to do so, I guess. Also, I would have thought this requirement would be raised to someone actually adding/changing fpga code (like the recent Intel activities on this list).
In contrast to this, I see my patch more like cleaning the code, moving Xilinx dependent code from 'common/image.c' to 'drivers/fpga/xilinx.c'. This cleanup in the common directory is rather independent of migrating the fpga subsystem to driver model.
Regards,
Simon
PATCH 1/1 fpga: allow programming fpga from FIT image for all FPGA drivers
Hi Simon,
Quoted 27 lines · Goldschmidt Simon
Hi,
Quoted 18 lines
Simon Glass wrote:
Quoted 5 lines · Goldschmidt Simon
This drops the limit that fpga is only loaded from FIT images for Xilinx. This is done by moving the 'partial' check from '
common/image.c' to 'drivers/fpga/xilinx.c' (the only driver supporting partial images yet) and supplies a weak default implementation in 'drivers/fpga/fpga.c'.Quoted 9 lines
Signed-off-by Simon Goldschmidt <[email protected]>--- common/bootm.c | 2 +- common/image.c | 6 ++---- drivers/fpga/fpga.c | 9 +++++++++ drivers/fpga/xilinx.c | 13 +++++++++++++ include/fpga.h | 1 + 5 files changed, 26 insertions(+), 5 deletions(-)Quoted 1 line
I think the FPGA subsystem should move to driver model.
I can understand the need for that. However, I don't have the expertise to do so, I guess. Also, I would have thought this requirement would be raised to someone actually adding/changing fpga code (like the recent Intel activities on this list).
Quoted 4 lines
In contrast to this, I see my patch more like cleaning the code, moving Xilinx dependent code from '
common/image.c' to 'drivers/fpga/xilinx.c'. This cleanup in the common directory is rather independent of migrating the fpga subsystem to driver model.
I see that, although it is adding to the fpga header so presumably making it harder for someone to move this over.
Does anyone on cc know the plan fr conversion of FPGA to driver model? It does not look too tricky from a quick look at the header file.
Regards,
Simon
PATCH 1/1 fpga: allow programming fpga from FIT image for all FPGA drivers
Quoted 36 lines · Simon Glass
Hi Simon,
Quoted 27 lines · Goldschmidt Simon
Hi,
Quoted 18 lines
Simon Glass wrote:
Quoted 5 lines · Goldschmidt Simon
This drops the limit that fpga is only loaded from FIT images for Xilinx. This is done by moving the 'partial' check from '
common/image.c' to 'drivers/fpga/xilinx.c' (the only driver supporting partial images yet) and supplies a weak default implementation in 'drivers/fpga/fpga.c'.Quoted 9 lines
Signed-off-by Simon Goldschmidt <[email protected]>--- common/bootm.c | 2 +- common/image.c | 6 ++---- drivers/fpga/fpga.c | 9 +++++++++ drivers/fpga/xilinx.c | 13 +++++++++++++ include/fpga.h | 1 + 5 files changed, 26 insertions(+), 5 deletions(-)Quoted 1 line
I think the FPGA subsystem should move to driver model.
I can understand the need for that. However, I don't have the expertise to do so, I guess. Also, I would have thought this requirement would be raised to someone actually adding/changing fpga code (like the recent Intel activities on this list).
Quoted 4 lines
In contrast to this, I see my patch more like cleaning the code, moving Xilinx dependent code from '
common/image.c' to 'drivers/fpga/xilinx.c'. This cleanup in the common directory is rather independent of migrating the fpga subsystem to driver model.
Quoted 5 lines
I see that, although it is adding to the fpga header so presumably making it harder for someone to move this over.
Does anyone on cc know the plan fr conversion of FPGA to driver model? It does not look too tricky from a quick look at the header file.
I am not aware about any plan for that and depends on time.
Thanks,
Michal