mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
Adjust boot & setup for both 32BIT and 64BIT, including: efi header definition, MAX_IO_PICS definition, kernel entry and environment setup routines, etc. Add a fallback path in fdt_cpu_clk_init() to avoid 0MHz in /proc/cpuinfo if there is no valid clock freq from firmware. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
25 lines
531 B
C
25 lines
531 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#ifndef _ASM_DMI_H
|
|
#define _ASM_DMI_H
|
|
|
|
#include <linux/io.h>
|
|
#include <linux/memblock.h>
|
|
|
|
#define dmi_early_remap(x, l) dmi_remap(x, l)
|
|
#define dmi_early_unmap(x, l) dmi_unmap(x)
|
|
#define dmi_alloc(l) memblock_alloc(l, PAGE_SIZE)
|
|
|
|
static inline void *dmi_remap(phys_addr_t phys_addr, unsigned long size)
|
|
{
|
|
return ((void *)TO_CACHE(phys_addr));
|
|
}
|
|
|
|
static inline void dmi_unmap(void *addr)
|
|
{
|
|
}
|
|
|
|
#endif /* _ASM_DMI_H */
|