mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
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 <patrick.georgi@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:

committed by
Patrick Georgi

parent
5cfc94a98b
commit
a9095a9545
14
udelay.c
14
udelay.c
@ -19,6 +19,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef __LIBPAYLOAD__
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user