blob: a9ef35ebeb6c8e1c9cba647d3c6a81669976e404 [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 */
Tim Harvey552c3582014-03-06 07:46:30 -080023
Tim Harvey552c3582014-03-06 07:46:30 -080024/* MMC Configs */
Tom Rini376b88a2022-10-28 20:27:13 -040025#define CFG_SYS_FSL_ESDHC_ADDR 0
Tim Harvey552c3582014-03-06 07:46:30 -080026
Tim Harvey552c3582014-03-06 07:46:30 -080027/*
Tim Harvey552c3582014-03-06 07:46:30 -080028 * PCI express
29 */
Tim Harvey552c3582014-03-06 07:46:30 -080030
31/*
32 * PMIC
33 */
Tim Harvey552c3582014-03-06 07:46:30 -080034#define CONFIG_POWER_PFUZE100
35#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
Tim Harvey0dff16f2014-05-05 08:22:25 -070036#define CONFIG_POWER_LTC3676
37#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c
Tim Harvey552c3582014-03-06 07:46:30 -080038
39/* Various command support */
Tim Harvey552c3582014-03-06 07:46:30 -080040
Tim Harvey552c3582014-03-06 07:46:30 -080041/* USB Configs */
Tim Harvey552c3582014-03-06 07:46:30 -080042#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
43#define CONFIG_MXC_USB_FLAGS 0
Tim Harvey552c3582014-03-06 07:46:30 -080044#define CONFIG_USBD_HS
Tim Harvey552c3582014-03-06 07:46:30 -080045
Tim Harveyfb64cc72014-04-25 15:39:07 -070046/* Framebuffer and LCD */
Tim Harveyfb64cc72014-04-25 15:39:07 -070047#define CONFIG_IMX_HDMI
48#define CONFIG_IMX_VIDEO_SKIP
49
Tim Harvey552c3582014-03-06 07:46:30 -080050/* Miscellaneous configurable options */
Tim Harvey552c3582014-03-06 07:46:30 -080051#define CONFIG_HWCONFIG
52
Tim Harvey552c3582014-03-06 07:46:30 -080053/* Memory configuration */
Tim Harvey552c3582014-03-06 07:46:30 -080054
55/* Physical Memory Map */
Tim Harvey552c3582014-03-06 07:46:30 -080056#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
57#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
58#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
59#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
60
Tim Harvey552c3582014-03-06 07:46:30 -080061/*
62 * MTD Command for mtdparts
63 */
Tim Harvey552c3582014-03-06 07:46:30 -080064
65/* Persistent Environment Config */
Tim Harvey552c3582014-03-06 07:46:30 -080066
67/* Environment */
Tim Harvey552c3582014-03-06 07:46:30 -080068#define CONFIG_IPADDR 192.168.1.1
69#define CONFIG_SERVERIP 192.168.1.146
Tim Harvey552c3582014-03-06 07:46:30 -080070
Tim Harvey552c3582014-03-06 07:46:30 -080071#endif /* __CONFIG_H */