projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: mvebu: Add CRS305-1G-4S board
[oweals/u-boot.git]
/
board
/
sbc8548
/
ddr.c
diff --git
a/board/sbc8548/ddr.c
b/board/sbc8548/ddr.c
index 45ec485c50b88a48a2bebdea1b80ff47508e8248..f7af1e3dedb138032d5eb66e140ad257ed1e3bb9 100644
(file)
--- a/
board/sbc8548/ddr.c
+++ b/
board/sbc8548/ddr.c
@@
-1,16
+1,13
@@
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright 2008 Freescale Semiconductor, Inc.
/*
* Copyright 2008 Freescale Semiconductor, Inc.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * Version 2 as published by the Free Software Foundation.
*/
#include <common.h>
#include <i2c.h>
*/
#include <common.h>
#include <i2c.h>
-#include <
asm/
fsl_ddr_sdram.h>
-#include <
asm/
fsl_ddr_dimm_params.h>
+#include <fsl_ddr_sdram.h>
+#include <fsl_ddr_dimm_params.h>
void fsl_ddr_board_options(memctl_options_t *popts,
dimm_params_t *pdimm,
void fsl_ddr_board_options(memctl_options_t *popts,
dimm_params_t *pdimm,
@@
-91,7
+88,8
@@
void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
*/
phys_size_t fixed_sdram(void)
{
*/
phys_size_t fixed_sdram(void)
{
- volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+ struct ccsr_ddr __iomem *ddr =
+ (struct ccsr_ddr __iomem *)(CONFIG_SYS_FSL_DDR_ADDR);
out_be32(&ddr->cs0_bnds, 0x0000007f);
out_be32(&ddr->cs1_bnds, 0x008000ff);
out_be32(&ddr->cs0_bnds, 0x0000007f);
out_be32(&ddr->cs1_bnds, 0x008000ff);