mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
1b811e285c
Define two structure mx6sl_iomux_ddr_regs and mx6sl_iomux_grp_regs. Add a new function mx6sl_dram_iocfg to configure dram io. Add header file to define macros for register address. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Stefano Babic <sbabic@denx.de>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2015 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MX6SL_DDR_H__
|
|
#define __ASM_ARCH_MX6SL_DDR_H__
|
|
|
|
#ifndef CONFIG_MX6SL
|
|
#error "wrong CPU"
|
|
#endif
|
|
|
|
#define MX6_IOM_DRAM_CAS_B 0x020e0300
|
|
#define MX6_IOM_DRAM_CS0_B 0x020e0304
|
|
#define MX6_IOM_DRAM_CS1_B 0x020e0308
|
|
|
|
#define MX6_IOM_DRAM_DQM0 0x020e030c
|
|
#define MX6_IOM_DRAM_DQM1 0x020e0310
|
|
#define MX6_IOM_DRAM_DQM2 0x020e0314
|
|
#define MX6_IOM_DRAM_DQM3 0x020e0318
|
|
|
|
#define MX6_IOM_DRAM_RAS_B 0x020e031c
|
|
#define MX6_IOM_DRAM_RESET 0x020e0320
|
|
|
|
#define MX6_IOM_DRAM_SDBA0 0x020e0324
|
|
#define MX6_IOM_DRAM_SDBA1 0x020e0328
|
|
#define MX6_IOM_DRAM_SDBA2 0x020e032c
|
|
|
|
#define MX6_IOM_DRAM_SDCKE0 0x020e0330
|
|
#define MX6_IOM_DRAM_SDCKE1 0x020e0334
|
|
|
|
#define MX6_IOM_DRAM_SDCLK0_P 0x020e0338
|
|
|
|
#define MX6_IOM_DRAM_ODT0 0x020e033c
|
|
#define MX6_IOM_DRAM_ODT1 0x020e0340
|
|
|
|
#define MX6_IOM_DRAM_SDQS0_P 0x020e0344
|
|
#define MX6_IOM_DRAM_SDQS1_P 0x020e0348
|
|
#define MX6_IOM_DRAM_SDQS2_P 0x020e034c
|
|
#define MX6_IOM_DRAM_SDQS3_P 0x020e0350
|
|
|
|
#define MX6_IOM_DRAM_SDWE_B 0x020e0354
|
|
|
|
#endif /*__ASM_ARCH_MX6SL_DDR_H__ */
|