upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
461 B
28 lines
461 B
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2016 Google, Inc
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/processor-flags.h>
|
|
|
|
void enable_interrupts(void)
|
|
{
|
|
asm("sti\n");
|
|
}
|
|
|
|
int disable_interrupts(void)
|
|
{
|
|
long flags;
|
|
|
|
asm volatile ("pushfq ; popq %0 ; cli\n" : "=g" (flags) : );
|
|
|
|
return flags & X86_EFLAGS_IF;
|
|
}
|
|
|
|
int interrupt_init(void)
|
|
{
|
|
/* Nothing to do - this was already done in SPL */
|
|
return 0;
|
|
}
|
|
|