blob: 47a72fc8fce5924856772e09ede72c880ab4c99f [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 Harvey4de46d22021-06-11 12:46:20 -070025#undef CONFIG_SYS_BOOTM_LEN
26#define CONFIG_SYS_BOOTM_LEN (64 << 20)
27
Tim Harvey552c3582014-03-06 07:46:30 -080028/* MMC Configs */
Tim Harvey552c3582014-03-06 07:46:30 -080029#define CONFIG_SYS_FSL_ESDHC_ADDR 0
Tim Harvey552c3582014-03-06 07:46:30 -080030
Tim Harvey552c3582014-03-06 07:46:30 -080031/*
Tim Harvey552c3582014-03-06 07:46:30 -080032 * PCI express
33 */
Tim Harvey552c3582014-03-06 07:46:30 -080034#ifdef CONFIG_CMD_PCI
Tim Harvey552c3582014-03-06 07:46:30 -080035#define CONFIG_PCIE_IMX
36#endif
37
38/*
39 * PMIC
40 */
Tim Harvey552c3582014-03-06 07:46:30 -080041#define CONFIG_POWER_PFUZE100
42#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
Tim Harvey0dff16f2014-05-05 08:22:25 -070043#define CONFIG_POWER_LTC3676
44#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c
Tim Harvey552c3582014-03-06 07:46:30 -080045
46/* Various command support */
Tim Harvey552c3582014-03-06 07:46:30 -080047
Tim Harvey552c3582014-03-06 07:46:30 -080048/* USB Configs */
Tim Harvey552c3582014-03-06 07:46:30 -080049#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
50#define CONFIG_MXC_USB_FLAGS 0
Tim Harvey552c3582014-03-06 07:46:30 -080051#define CONFIG_USBD_HS
Tim Harvey552c3582014-03-06 07:46:30 -080052
Tim Harveyfb64cc72014-04-25 15:39:07 -070053/* Framebuffer and LCD */
Tim Harveyfb64cc72014-04-25 15:39:07 -070054#define CONFIG_IMX_HDMI
55#define CONFIG_IMX_VIDEO_SKIP
Tim Harvey88c93002016-07-15 07:17:20 -070056#define CONFIG_HIDE_LOGO_VERSION /* Custom config to hide U-boot version */
Tim Harveyfb64cc72014-04-25 15:39:07 -070057
Tim Harvey552c3582014-03-06 07:46:30 -080058/* Miscellaneous configurable options */
Tim Harvey552c3582014-03-06 07:46:30 -080059#define CONFIG_HWCONFIG
60
Tim Harvey552c3582014-03-06 07:46:30 -080061/* Memory configuration */
Tim Harvey552c3582014-03-06 07:46:30 -080062
63/* Physical Memory Map */
Tim Harvey552c3582014-03-06 07:46:30 -080064#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
65#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
66#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
67#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
68
Tim Harvey552c3582014-03-06 07:46:30 -080069/*
70 * MTD Command for mtdparts
71 */
Tim Harvey552c3582014-03-06 07:46:30 -080072
73/* Persistent Environment Config */
Tim Harvey552c3582014-03-06 07:46:30 -080074
75/* Environment */
Tim Harvey552c3582014-03-06 07:46:30 -080076#define CONFIG_IPADDR 192.168.1.1
77#define CONFIG_SERVERIP 192.168.1.146
Tim Harvey552c3582014-03-06 07:46:30 -080078
Tim Harvey552c3582014-03-06 07:46:30 -080079#endif /* __CONFIG_H */