blob: 82076ff74ff691c0a89b9f845121fa5b72f16b03 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tim Harvey552c3582014-03-06 07:46:30 -08002/*
3 * Copyright (C) 2013 Gateworks Corporation
Tim Harvey552c3582014-03-06 07:46:30 -08004 */
5
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
Tim Harveybfa2dae2014-06-02 16:13:27 -07009/* SPL */
Tim Harveybfa2dae2014-06-02 16:13:27 -070010/* Location in NAND to read U-Boot from */
Tim Harveybfa2dae2014-06-02 16:13:27 -070011
Tim Harveyfdb5afa2015-05-08 18:28:42 -070012/* Falcon Mode */
Tim Harveyfdb5afa2015-05-08 18:28:42 -070013
Tim Harveyfdb5afa2015-05-08 18:28:42 -070014/* Falcon Mode - MMC support: args@1MB kernel@2MB */
Tim Harveyfdb5afa2015-05-08 18:28:42 -070015
Tim Harveybfa2dae2014-06-02 16:13:27 -070016#include "imx6_spl.h" /* common IMX6 SPL configuration */
Tim Harvey552c3582014-03-06 07:46:30 -080017#include "mx6_common.h"
Tim Harvey552c3582014-03-06 07:46:30 -080018
Tim Harvey552c3582014-03-06 07:46:30 -080019/* Serial */
Tim Harvey552c3582014-03-06 07:46:30 -080020#define CONFIG_MXC_UART_BASE UART2_BASE
21
Tim Harvey8da219f2021-03-01 14:33:36 -080022/* NAND */
23#define CONFIG_SYS_MAX_NAND_DEVICE 1
Tim Harvey552c3582014-03-06 07:46:30 -080024
Tim Harvey552c3582014-03-06 07:46:30 -080025/* MMC Configs */
Tim Harvey552c3582014-03-06 07:46:30 -080026#define CONFIG_SYS_FSL_ESDHC_ADDR 0
Tim Harvey552c3582014-03-06 07:46:30 -080027
Tim Harvey552c3582014-03-06 07:46:30 -080028/*
Tim Harvey552c3582014-03-06 07:46:30 -080029 * PCI express
30 */
Tim Harvey552c3582014-03-06 07:46:30 -080031
32/*
33 * PMIC
34 */
Tim Harvey552c3582014-03-06 07:46:30 -080035#define CONFIG_POWER_PFUZE100
36#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
Tim Harvey0dff16f2014-05-05 08:22:25 -070037#define CONFIG_POWER_LTC3676
38#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c
Tim Harvey552c3582014-03-06 07:46:30 -080039
40/* Various command support */
Tim Harvey552c3582014-03-06 07:46:30 -080041
Tim Harvey552c3582014-03-06 07:46:30 -080042/* USB Configs */
Tim Harvey552c3582014-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 Harvey552c3582014-03-06 07:46:30 -080045#define CONFIG_USBD_HS
Tim Harvey552c3582014-03-06 07:46:30 -080046
Tim Harveyfb64cc72014-04-25 15:39:07 -070047/* Framebuffer and LCD */
Tim Harveyfb64cc72014-04-25 15:39:07 -070048#define CONFIG_IMX_HDMI
49#define CONFIG_IMX_VIDEO_SKIP
Tim Harvey88c93002016-07-15 07:17:20 -070050#define CONFIG_HIDE_LOGO_VERSION /* Custom config to hide U-boot version */
Tim Harveyfb64cc72014-04-25 15:39:07 -070051
Tim Harvey552c3582014-03-06 07:46:30 -080052/* Miscellaneous configurable options */
Tim Harvey552c3582014-03-06 07:46:30 -080053#define CONFIG_HWCONFIG
54
Tim Harvey552c3582014-03-06 07:46:30 -080055/* Memory configuration */
Tim Harvey552c3582014-03-06 07:46:30 -080056
57/* Physical Memory Map */
Tim Harvey552c3582014-03-06 07:46:30 -080058#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
59#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
60#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
61#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
62
Tim Harvey552c3582014-03-06 07:46:30 -080063/*
64 * MTD Command for mtdparts
65 */
Tim Harvey552c3582014-03-06 07:46:30 -080066
67/* Persistent Environment Config */
Tim Harvey552c3582014-03-06 07:46:30 -080068
69/* Environment */
Tim Harvey552c3582014-03-06 07:46:30 -080070#define CONFIG_IPADDR 192.168.1.1
71#define CONFIG_SERVERIP 192.168.1.146
Tim Harvey552c3582014-03-06 07:46:30 -080072
Tim Harvey552c3582014-03-06 07:46:30 -080073#endif /* __CONFIG_H */