mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
ColdFire:Add mb for 5253 dram initialization
The dram initialization sequence should be in order. This patch add mb for the dram intialization code to make sure the compiler do not disorder the code. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
This commit is contained in:
parent
f73e7d67ed
commit
6752da6b26
2 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,8 @@
|
|||
#define outl(val, port) out_le32((u32 *)((port)+_IO_BASE), (val))
|
||||
#endif
|
||||
|
||||
#define mb() __asm__ __volatile__ ("" : : : "memory")
|
||||
|
||||
extern inline void _insb(volatile u8 * port, void *buf, int ns)
|
||||
{
|
||||
u8 *data = (u8 *) buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue