summaryrefslogtreecommitdiff
path: root/drivers/ddr/altera/sdram.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-26 10:37:54 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:05 +0200
commit42f7ebb82bce6f145ded1a469b1377fee34d32fa (patch)
tree0a54416009bf9c8d5c8c4235b0a5603062d37663 /drivers/ddr/altera/sdram.c
parentd04941cf3314c4b1f75f5c5d543b0c6257eff1ee (diff)
downloadu-boot-imx-42f7ebb82bce6f145ded1a469b1377fee34d32fa.zip
u-boot-imx-42f7ebb82bce6f145ded1a469b1377fee34d32fa.tar.gz
u-boot-imx-42f7ebb82bce6f145ded1a469b1377fee34d32fa.tar.bz2
ddr: altera: Move struct sdram_prot_rule prototype
Move the structure prototype from sdram.h header file into sdram.c source file, since it is used only there and for local purpose only. There is no point in having it global. While at this move, fix the data types in the structure from uintNN_t to uNN and fix the coding style a bit. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr/altera/sdram.c')
-rw-r--r--drivers/ddr/altera/sdram.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index 2822d1d..45846de 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 =