Hi all,

I'm currently porting UEFI to the Xilinx Zynq (ARM) platform because I
was interested in UEFI in general and wanted to get a feeling for the
internals and the concepts behind the whole platform.

I have a working port which boots as a 2nd stage bootloader, starts the
2nd core and has pretty console output. So, I now need to implement all
the DXE drivers.

The first thing I want to implement is the SDIO Host controller to
actually be able to load a kernel and dtb from an SD card.
The Zynq has two SDIO host controllers and I want the BSP to be
flexible. Now, I could use a PCD to specify which one should be used.
That's what I did for all the timers and the serial port. But I find
that very inflexible. I'd rather have one driver for both of the host
controllers and enable them separately via PCDs because it depends on
the actual board which of the interfaces is wired up.

The problem is, I can't find out how to implement one DXE driver which
gets instantiated two times. Each instance being responsible for one
SDIO host controller.
I understand that for PCI-based devices, the bus driver is responsible
for enumerating all devices on the bus and loading the appropriate
drivers, but how would I do something like this on an embedded platform
with platform devices like the SDIO host controllers? Do I need a
virtual bus?

Any pointers to an existing implementation and/or a short explanation
would be cool. I'm sure I'm not the first one with this problem, but I'm
not sure what to search for. That's also the reason for the clumsy subject.

Thanks,
- Andy

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to