blob: bf05ffbb3f099252442ede03ade1229d2c4e9637 [file]
#ifndef _ASMARM_SETUP_H_
#define _ASMARM_SETUP_H_
/*
* Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com>
*
* This work is licensed under the terms of the GNU LGPL, version 2.
*/
#include <libcflat.h>
#include <asm/page.h>
#include <asm/pgtable-hwdef.h>
#define NR_CPUS 511
extern u64 cpus[NR_CPUS]; /* per-cpu IDs (MPIDRs) */
extern int nr_cpus;
extern phys_addr_t __phys_offset, __phys_end;
#define PHYS_OFFSET (__phys_offset)
#define PHYS_END (__phys_end)
#define L1_CACHE_SHIFT 6
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
void setup(const void *fdt, phys_addr_t freemem_start);
#ifdef CONFIG_EFI
#include <efi.h>
#ifdef __aarch64__
void do_init_el(void);
void setup_efi_sctlr(void);
#else
static inline void do_init_el(void) {}
static inline void setup_efi_sctlr(void) {}
#endif
efi_status_t setup_efi(efi_bootinfo_t *efi_bootinfo);
#endif
#endif /* _ASMARM_SETUP_H_ */