mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 23:56:42 +07:00
fb7e197bec
This will allow to have all SoC in one kernel image. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
33 lines
697 B
C
33 lines
697 B
C
/*
|
|
* Header file for the Atmel RAM Controller
|
|
*
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
*
|
|
* Under GPLv2 only
|
|
*/
|
|
|
|
#ifndef __AT91_RAMC_H__
|
|
#define __AT91_RAMC_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void __iomem *at91_ramc_base[];
|
|
|
|
#define at91_ramc_read(id, field) \
|
|
__raw_readl(at91_ramc_base[id] + field)
|
|
|
|
#define at91_ramc_write(id, field, value) \
|
|
__raw_writel(value, at91_ramc_base[id] + field)
|
|
#else
|
|
.extern at91_ramc_base
|
|
#endif
|
|
|
|
#define AT91_MEMCTRL_MC 0
|
|
#define AT91_MEMCTRL_SDRAMC 1
|
|
#define AT91_MEMCTRL_DDRSDR 2
|
|
|
|
#include <mach/at91rm9200_sdramc.h>
|
|
#include <mach/at91sam9_ddrsdr.h>
|
|
#include <mach/at91sam9_sdramc.h>
|
|
|
|
#endif /* __AT91_RAMC_H__ */
|