Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 |
| 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * Based on: |
| 6 | * Copyright (C) 2012 Freescale Semiconductor, Inc. |
| 7 | * |
| 8 | * Configuration settings for the Freescale i.MX6DL aristainetos2 board. |
| 9 | * |
| 10 | * SPDX-License-Identifier: GPL-2.0+ |
| 11 | */ |
| 12 | #ifndef __ARISTAINETOS2_CONFIG_H |
| 13 | #define __ARISTAINETOS2_CONFIG_H |
| 14 | |
| 15 | #define CONFIG_SYS_BOARD_VERSION 2 |
| 16 | #define CONFIG_HOSTNAME aristainetos2 |
| 17 | #define CONFIG_BOARDNAME "aristainetos2" |
| 18 | |
Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 19 | #define CONFIG_MXC_UART_BASE UART2_BASE |
Simon Glass | 4694a74 | 2016-10-17 20:12:39 -0600 | [diff] [blame] | 20 | #define CONSOLE_DEV "ttymxc1" |
Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 21 | |
| 22 | #define CONFIG_FEC_XCV_TYPE RGMII |
| 23 | #define CONFIG_PHY_MICREL_KSZ9031 |
| 24 | |
Heiko Schocher | 8fb9f3f | 2015-08-24 11:36:40 +0200 | [diff] [blame] | 25 | #define CONFIG_SF_DEFAULT_BUS 3 |
Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 26 | #define CONFIG_SF_DEFAULT_CS 1 |
| 27 | |
| 28 | #define CONFIG_EXTRA_ENV_BOARD_SETTINGS \ |
| 29 | "board_type=aristainetos2_7@1\0" \ |
| 30 | "nor_bootdelay=-2\0" \ |
| 31 | "mtdids=nand0=gpmi-nand,nor0=spi3.1\0" \ |
| 32 | "mtdparts=mtdparts=spi3.1:832k(u-boot),64k(env),64k(env-red)," \ |
| 33 | "-(rescue-system);gpmi-nand:-(ubi)\0" \ |
| 34 | "addmisc=setenv bootargs ${bootargs} net.ifnames=0 consoleblank=0\0" \ |
| 35 | "ubiargs=setenv bootargs console=${console},${baudrate} " \ |
Heiko Schocher | 8fb9f3f | 2015-08-24 11:36:40 +0200 | [diff] [blame] | 36 | "ubi.mtd=0,4096 root=ubi0:rootfs rootfstype=ubifs\0 " \ |
| 37 | "ubifs_load_fit=sf probe;ubi part ubi 4096;ubifsmount ubi:rootfs;" \ |
| 38 | "ubifsload ${fit_addr_r} /boot/system.itb; " \ |
| 39 | "imi ${fit_addr_r}\0 " |
Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 40 | |
| 41 | #define CONFIG_SYS_I2C_MXC_I2C4 /* enable I2C bus 4 */ |
| 42 | |
| 43 | #define ARISTAINETOS_USB_OTG_PWR IMX_GPIO_NR(4, 15) |
| 44 | #define ARISTAINETOS_USB_H1_PWR IMX_GPIO_NR(1, 0) |
| 45 | #define CONFIG_GPIO_ENABLE_SPI_FLASH IMX_GPIO_NR(2, 15) |
| 46 | |
| 47 | /* Framebuffer */ |
| 48 | #define CONFIG_SYS_LDB_CLOCK 33246000 |
| 49 | #define CONFIG_LG4573 |
Heiko Schocher | 322587d | 2015-08-24 11:36:39 +0200 | [diff] [blame] | 50 | #define CONFIG_LG4573_BUS 0 |
| 51 | #define CONFIG_LG4573_CS 0 |
Heiko Schocher | 0572982 | 2015-05-18 13:32:31 +0200 | [diff] [blame] | 52 | |
| 53 | #define CONFIG_CMD_BMP |
| 54 | |
| 55 | #define CONFIG_PWM_IMX |
| 56 | #define CONFIG_IMX6_PWM_PER_CLK 66000000 |
| 57 | |
| 58 | #include "aristainetos-common.h" |
| 59 | |
| 60 | #endif /* __ARISTAINETOS2_CONFIG_H */ |