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.
30 lines
670 B
30 lines
670 B
#ifndef IxOsalOs_H
|
|
#define IxOsalOs_H
|
|
|
|
#ifndef IX_OSAL_CACHED
|
|
#error "Uncached memory not supported in linux environment"
|
|
#endif
|
|
|
|
static inline unsigned long __v2p(unsigned long v)
|
|
{
|
|
if (v < 0x40000000)
|
|
return (v & 0xfffffff);
|
|
else
|
|
return v;
|
|
}
|
|
|
|
#define IX_OSAL_OS_MMU_VIRT_TO_PHYS(addr) __v2p((u32)addr)
|
|
#define IX_OSAL_OS_MMU_PHYS_TO_VIRT(addr) (addr)
|
|
|
|
/*
|
|
* Data cache not enabled (hopefully)
|
|
*/
|
|
#define IX_OSAL_OS_CACHE_INVALIDATE(addr, size)
|
|
#define IX_OSAL_OS_CACHE_FLUSH(addr, size)
|
|
#define HAL_DCACHE_INVALIDATE(addr, size)
|
|
#define HAL_DCACHE_FLUSH(addr, size)
|
|
|
|
#define __ixp42X /* sr: U-Boot needs this define */
|
|
|
|
#endif /* IxOsalOs_H */
|
|
|
|
|