diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-11 12:06:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-23 08:40:32 +0200 |
commit | 5b5f6ab6bfdd369bd2e3f968a868569c4399c374 (patch) | |
tree | 7fad81cb9b711a3ff46a153436dcda4bd27177d7 /arch/arm/mach-socfpga/include/mach/nic301.h | |
parent | 947d79651e433eeea1d0265f0965dc6c511edfc6 (diff) | |
download | barebox-5b5f6ab6bfdd369bd2e3f968a868569c4399c374.tar.gz barebox-5b5f6ab6bfdd369bd2e3f968a868569c4399c374.tar.xz |
ARM: Add Altera SoCFPGA support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-socfpga/include/mach/nic301.h')
-rw-r--r-- | arch/arm/mach-socfpga/include/mach/nic301.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/nic301.h b/arch/arm/mach-socfpga/include/mach/nic301.h new file mode 100644 index 0000000000..54d96c6381 --- /dev/null +++ b/arch/arm/mach-socfpga/include/mach/nic301.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2012 Altera Corporation <www.altera.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _NIC301_H_ +#define _NIC301_H_ + +void nic301_slave_ns(void); + +#define L3REGS_SECGRP_LWHPS2FPGAREGS_ADDRESS 0x20 +#define L3REGS_SECGRP_HPS2FPGAREGS_ADDRESS 0x90 +#define L3REGS_SECGRP_ACP_ADDRESS 0x94 +#define L3REGS_SECGRP_ROM_ADDRESS 0x98 +#define L3REGS_SECGRP_OCRAM_ADDRESS 0x9c +#define L3REGS_SECGRP_SDRDATA_ADDRESS 0xa0 + +#define L3REGS_REMAP_LWHPS2FPGA_MASK 0x00000010 +#define L3REGS_REMAP_HPS2FPGA_MASK 0x00000008 +#define L3REGS_REMAP_OCRAM_MASK 0x00000001 + +#endif /* _NIC301_H_ */ |