diff options
-rw-r--r-- | arch/arm/mach-socfpga/include/mach/sdram.h | 13 | ||||
-rw-r--r-- | drivers/ddr/altera/sdram.c | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/sdram.h b/arch/arm/mach-socfpga/include/mach/sdram.h index b4c1a2ff69..873ea25e16 100644 --- a/arch/arm/mach-socfpga/include/mach/sdram.h +++ b/arch/arm/mach-socfpga/include/mach/sdram.h @@ -73,19 +73,6 @@ struct socfpga_sdr_ctrl { u32 phy_ctrl2; }; -struct sdram_prot_rule { - uint64_t sdram_start; /* SDRAM start address */ - uint64_t sdram_end; /* SDRAM end address */ - uint32_t rule; /* SDRAM protection rule number: 0-19 */ - int valid; /* Rule valid or not? 1 - valid, 0 not*/ - - uint32_t security; - uint32_t portmask; - uint32_t result; - uint32_t lo_prot_id; - uint32_t hi_prot_id; -}; - #define SDR_CTRLGRP_CTRLCFG_NODMPINS_LSB 23 #define SDR_CTRLGRP_CTRLCFG_NODMPINS_MASK 0x00800000 #define SDR_CTRLGRP_CTRLCFG_DQSTRKEN_LSB 22 diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 2822d1d59e..45846debdf 100644 --- a/drivers/ddr/altera/sdram.c +++ b/drivers/ddr/altera/sdram.c @@ -22,6 +22,19 @@ DECLARE_GLOBAL_DATA_PTR; +struct sdram_prot_rule { + u64 sdram_start; /* SDRAM start address */ + u64 sdram_end; /* SDRAM end address */ + u32 rule; /* SDRAM protection rule number: 0-19 */ + int valid; /* Rule valid or not? 1 - valid, 0 not*/ + + u32 security; + u32 portmask; + u32 result; + u32 lo_prot_id; + u32 hi_prot_id; +}; + static struct socfpga_system_manager *sysmgr_regs = (struct socfpga_system_manager *)SOCFPGA_SYSMGR_ADDRESS; static struct socfpga_sdr_ctrl *sdr_ctrl = |