Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Gateworks Corporation |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | * |
| 6 | * Refer doc/README.imximage for more details about how-to configure |
| 7 | * and create imximage boot image |
| 8 | * |
| 9 | * The syntax is taken as close as possible with the kwbimage |
| 10 | */ |
| 11 | |
| 12 | /* image version */ |
| 13 | IMAGE_VERSION 2 |
| 14 | |
| 15 | /* |
| 16 | * Boot Device : one of |
| 17 | * spi, sd, nand, sata |
| 18 | */ |
| 19 | #ifdef CONFIG_SPI_FLASH |
| 20 | BOOT_FROM spi |
| 21 | #else |
| 22 | BOOT_FROM nand |
| 23 | #endif |
| 24 | |
| 25 | #define __ASSEMBLY__ |
| 26 | #include <config.h> |
| 27 | #include "asm/arch/mx6-ddr.h" |
| 28 | #include "asm/arch/iomux.h" |
| 29 | #include "asm/arch/crm_regs.h" |
| 30 | |
| 31 | /* Memory configuration (size is overridden via eeprom config) */ |
| 32 | #include "../../boundary/nitrogen6x/ddr-setup.cfg" |
| 33 | #if defined(CONFIG_MX6Q) && CONFIG_DDR_MB == 1024 |
| 34 | #include "../../boundary/nitrogen6x/1066mhz_4x128mx16.cfg" |
| 35 | #elif defined(CONFIG_MX6DL) && CONFIG_DDR_MB == 1024 |
| 36 | #include "../../boundary/nitrogen6x/800mhz_4x128mx16.cfg" |
| 37 | #elif defined(CONFIG_MX6DL) && CONFIG_DDR_MB == 512 |
| 38 | #include "../../boundary/nitrogen6x/800mhz_2x128mx16.cfg" |
| 39 | #elif defined(CONFIG_MX6Q) && CONFIG_DDR_MB == 512 |
| 40 | #include "../../boundary/nitrogen6x/800mhz_2x128mx16.cfg" |
| 41 | #else |
| 42 | #error "Unsupported CPU/Memory configuration" |
| 43 | #endif |
| 44 | #include "clocks.cfg" |