mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 12:09:28 +07:00
f0a0a58e6f
Move the (DDR) SDRAM controller headers to include/soc/at91 to remove the dependency on mach/ headers from the at91-reset driver. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
33 lines
709 B
C
33 lines
709 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 <soc/at91/at91rm9200_sdramc.h>
|
|
#include <soc/at91/at91sam9_ddrsdr.h>
|
|
#include <soc/at91/at91sam9_sdramc.h>
|
|
|
|
#endif /* __AT91_RAMC_H__ */
|