blob: bba64af2c912427b90b43b46997a68b32d7bed37 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tim Harvey59189a82014-03-06 07:46:30 -08002/*
3 * Copyright (C) 2013 Gateworks Corporation
Tim Harvey59189a82014-03-06 07:46:30 -08004 */
5
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
Tim Harvey0cc11de2014-06-02 16:13:27 -07009/* SPL */
Tim Harvey0cc11de2014-06-02 16:13:27 -070010/* Location in NAND to read U-Boot from */
Tim Harvey0cc11de2014-06-02 16:13:27 -070011
Tim Harvey53940a52015-05-08 18:28:42 -070012/* Falcon Mode */
Tim Harvey53940a52015-05-08 18:28:42 -070013
Tim Harvey53940a52015-05-08 18:28:42 -070014/* Falcon Mode - MMC support: args@1MB kernel@2MB */
Tim Harvey53940a52015-05-08 18:28:42 -070015
Tim Harvey0cc11de2014-06-02 16:13:27 -070016#include "imx6_spl.h" /* common IMX6 SPL configuration */
Tim Harvey59189a82014-03-06 07:46:30 -080017#include "mx6_common.h"
Tim Harvey59189a82014-03-06 07:46:30 -080018
Tim Harvey59189a82014-03-06 07:46:30 -080019/* Serial */
Tim Harvey59189a82014-03-06 07:46:30 -080020#define CONFIG_MXC_UART_BASE UART2_BASE
21
Tim Harvey777f3332021-03-01 14:33:36 -080022/* NAND */
23#define CONFIG_SYS_MAX_NAND_DEVICE 1
Tim Harvey59189a82014-03-06 07:46:30 -080024
Tim Harvey59189a82014-03-06 07:46:30 -080025/* MMC Configs */
Tim Harvey59189a82014-03-06 07:46:30 -080026#define CONFIG_SYS_FSL_ESDHC_ADDR 0
Tim Harvey59189a82014-03-06 07:46:30 -080027
Tim Harvey59189a82014-03-06 07:46:30 -080028/*
Tim Harvey59189a82014-03-06 07:46:30 -080029 * PCI express
30 */
Tim Harvey59189a82014-03-06 07:46:30 -080031
32/*
33 * PMIC
34 */
Tim Harvey59189a82014-03-06 07:46:30 -080035#define CONFIG_POWER_PFUZE100
36#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
Tim Harvey234d89d2014-05-05 08:22:25 -070037#define CONFIG_POWER_LTC3676
38#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c
Tim Harvey59189a82014-03-06 07:46:30 -080039
40/* Various command support */
Tim Harvey59189a82014-03-06 07:46:30 -080041
Tim Harvey59189a82014-03-06 07:46:30 -080042/* USB Configs */
Tim Harvey59189a82014-03-06 07:46:30 -080043#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
44#define CONFIG_MXC_USB_FLAGS 0
Tim Harvey59189a82014-03-06 07:46:30 -080045#define CONFIG_USBD_HS
Tim Harvey59189a82014-03-06 07:46:30 -080046
Tim Harvey7a278f92014-04-25 15:39:07 -070047/* Framebuffer and LCD */
Tim Harvey7a278f92014-04-25 15:39:07 -070048#define CONFIG_IMX_HDMI
49#define CONFIG_IMX_VIDEO_SKIP
50
Tim Harvey59189a82014-03-06 07:46:30 -080051/* Miscellaneous configurable options */
Tim Harvey59189a82014-03-06 07:46:30 -080052#define CONFIG_HWCONFIG
53
Tim Harvey59189a82014-03-06 07:46:30 -080054/* Memory configuration */
Tim Harvey59189a82014-03-06 07:46:30 -080055
56/* Physical Memory Map */
Tim Harvey59189a82014-03-06 07:46:30 -080057#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
58#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
59#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
60#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
61
Tim Harvey59189a82014-03-06 07:46:30 -080062/*
63 * MTD Command for mtdparts
64 */
Tim Harvey59189a82014-03-06 07:46:30 -080065
66/* Persistent Environment Config */
Tim Harvey59189a82014-03-06 07:46:30 -080067
68/* Environment */
Tim Harvey59189a82014-03-06 07:46:30 -080069#define CONFIG_IPADDR 192.168.1.1
70#define CONFIG_SERVERIP 192.168.1.146
Tim Harvey59189a82014-03-06 07:46:30 -080071
Tim Harvey59189a82014-03-06 07:46:30 -080072#endif /* __CONFIG_H */