Skip to content
Snippets Groups Projects
ta1g.cfg 1.33 KiB
Newer Older
/*
 * Copyright (C) 2014 Boundary Devices
 *
 * SPDX-License-Identifier:	GPL-2.0+
 *
 * Refer doc/README.imximage for more details about how-to configure
 * and create imximage boot image
 *
 * The syntax is taken as close as possible with the kwbimage
 */

/* image version */
IMAGE_VERSION 2

/*
 * Boot Device : one of
 * spi, sd (the board has no nand neither onenand)
 */
BOOT_FROM      spi

#define __ASSEMBLY__
#include <config.h>
#include "asm/arch/mx6-ddr.h"
#include "asm/arch/iomux.h"
#include "asm/arch/crm_regs.h"

/* turn on main power */
DATA 4, 0x020e03b4, 0xf0b0
DATA 4, 0x020e00a0, 5

/* NC YET */
#define MX6_MMDC_P0_MPDGCTRL0_VAL	0x42720306
#define MX6_MMDC_P0_MPDGCTRL1_VAL	0x026F0266
#define MX6_MMDC_P1_MPDGCTRL0_VAL	0x4273030A
#define MX6_MMDC_P1_MPDGCTRL1_VAL	0x02740240
#define MX6_MMDC_P0_MPRDDLCTL_VAL	0x45393B3E
#define MX6_MMDC_P1_MPRDDLCTL_VAL	0x403A3747
#define MX6_MMDC_P0_MPWRDLCTL_VAL	0x40434541
#define MX6_MMDC_P1_MPWRDLCTL_VAL	0x473E4A3B
#define MX6_MMDC_P0_MPWLDECTRL0_VAL	0x0011000E
#define MX6_MMDC_P0_MPWLDECTRL1_VAL	0x000E001B
#define MX6_MMDC_P1_MPWLDECTRL0_VAL	0x00190015
#define MX6_MMDC_P1_MPWLDECTRL1_VAL	0x00070018
#define WALAT	0

#include "../common/mx6/ddr-setup.cfg"
#define RANK 0
#define BUS_WIDTH 64
/* H5TC2G63FFR-PBA */
#include "../common/mx6/1066mhz_128mx16.cfg"
#include "../common/mx6/clocks.cfg"