From a9095a95450860e7ea96bb6c21ca4f34e406d3d6 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 30 Sep 2010 17:03:32 +0000 Subject: Add support for building flashrom against libpayload This doesn't include changes to the frontend which must be done separately, so this won't work out of the box. This code was tested on hardware. Corresponding to flashrom svn r1184. Signed-off-by: Patrick Georgi Acked-by: Carl-Daniel Hailfinger --- udelay.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'udelay.c') diff --git a/udelay.c b/udelay.c index 981b1bb..153f510 100644 --- a/udelay.c +++ b/udelay.c @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef __LIBPAYLOAD__ + #include #include #include @@ -179,3 +181,15 @@ void internal_delay(int usecs) } } +#else + +void myusec_calibrate_delay(void) +{ + get_cpu_speed(); +} + +void internal_delay(int usecs) +{ + udelay(usecs); +} +#endif -- cgit v1.1