Page MenuHomeFreeBSD

Add support for exynos5_ehci in loader
ClosedPublic

Authored by wma_semihalf.com on Nov 17 2015, 11:17 AM.
Tags
None
Referenced Files
F103435750: D4192.id10286.diff
Mon, Nov 25, 12:15 AM
Unknown Object (File)
Thu, Nov 21, 12:38 PM
Unknown Object (File)
Fri, Nov 15, 11:21 PM
Unknown Object (File)
Sun, Oct 27, 11:20 AM
Unknown Object (File)
Oct 16 2024, 2:09 AM
Unknown Object (File)
Oct 16 2024, 2:08 AM
Unknown Object (File)
Oct 16 2024, 2:07 AM
Unknown Object (File)
Oct 16 2024, 2:07 AM
Subscribers
None

Details

Summary

Add all missing functionality to allow runing Exynos5 EHCI controller inside loader.

Any user application (including loader) should provide three callbacks for allocating resources & ofw parsing:
extern int (*bus_alloc_resource_any_cb)(struct resource *res, device_t dev,

int type, int *rid, unsigned int flags);

extern int (*ofw_bus_status_ok_cb)(device_t dev);
extern int (*ofw_bus_is_compatible_cb)(device_t dev, char *name);

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wma_semihalf.com retitled this revision from to Add support for exynos5_ehci in loader.
wma_semihalf.com updated this object.
wma_semihalf.com edited the test plan for this revision. (Show Details)

Why are you accessing this directly, and not through the U-Boot API?

The goal for this thing is to have the USB controller (sys/boot/usb & sys/boot/kshim library) independent of u-boot.

sys/boot/kshim/bsd_kernel.c
1021 ↗(On Diff #10263)

I think it should be possible to remove this first check. Can you run a test only replacing "mod->mod_name" with "mod->driver->name" ?

wma_semihalf.com edited edge metadata.

Removed the first check.

Any other comments?

This comment was removed by hselasky.
hselasky edited edge metadata.

Looks good. Approved!

This revision is now accepted and ready to land.Nov 22 2015, 9:35 AM
This revision was automatically updated to reflect the committed changes.