[U-Boot] how to use a function provided by u-boot in linux driver

Kartheek N S kartheek.ns at ge.com
Tue May 19 08:19:31 CEST 2009


Hi All,
     I would like to use miiphy_read and miiphy_write functions provided by
u-boot in the linux kernel driver.
     This is required for reading the link status of each of the phys
associated with a switch.

    I added miiphy_read and miiphy_write to the exports.h and tried to use
it in the kernel. But we get lots of multiple reference errors as some
libraries will be there both in u-boot and linux kernel.

    Could I do something like a dll or lib for these functions and use them
in the linux kernel driver ?
    Please guide me on this.

Thanks,
Kartheek N S
-- 
View this message in context: http://www.nabble.com/how-to-use-a-function-provided-by-u-boot-in-linux-driver-tp23610373p23610373.html
Sent from the Uboot - Users mailing list archive at Nabble.com.



More information about the U-Boot mailing list