blob: ebc5d03d0d5ce00b12be2c2e82c0b7e115545bb2 [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 Harvey59189a82014-03-06 07:46:30 -080016#include "mx6_common.h"
Tim Harvey59189a82014-03-06 07:46:30 -080017
Tim Harvey59189a82014-03-06 07:46:30 -080018/* Serial */
Tom Rini4db38662022-12-04 10:04:55 -050019#define CFG_MXC_UART_BASE UART2_BASE
Tim Harvey59189a82014-03-06 07:46:30 -080020
Tim Harvey777f3332021-03-01 14:33:36 -080021/* NAND */
Tim Harvey59189a82014-03-06 07:46:30 -080022
Tim Harvey59189a82014-03-06 07:46:30 -080023/* MMC Configs */
Tom Rini6cc04542022-10-28 20:27:13 -040024#define CFG_SYS_FSL_ESDHC_ADDR 0
Tim Harvey59189a82014-03-06 07:46:30 -080025
Tim Harvey59189a82014-03-06 07:46:30 -080026/*
Tim Harvey59189a82014-03-06 07:46:30 -080027 * PCI express
28 */
Tim Harvey59189a82014-03-06 07:46:30 -080029
30/*
31 * PMIC
32 */
Tom Riniaa3efb62022-12-04 10:13:35 -050033#define CFG_POWER_PFUZE100_I2C_ADDR 0x08
Tom Rini6d38c692022-12-04 10:13:34 -050034#define CFG_POWER_LTC3676_I2C_ADDR 0x3c
Tim Harvey59189a82014-03-06 07:46:30 -080035
36/* Various command support */
Tim Harvey59189a82014-03-06 07:46:30 -080037
Tim Harvey59189a82014-03-06 07:46:30 -080038/* USB Configs */
Tom Rinidd11fdc2022-12-04 10:04:56 -050039#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
40#define CFG_MXC_USB_FLAGS 0
Tim Harvey59189a82014-03-06 07:46:30 -080041
Tim Harvey59189a82014-03-06 07:46:30 -080042/* Miscellaneous configurable options */
Tim Harvey59189a82014-03-06 07:46:30 -080043
Tim Harvey59189a82014-03-06 07:46:30 -080044/* Memory configuration */
Tim Harvey59189a82014-03-06 07:46:30 -080045
46/* Physical Memory Map */
Tim Harvey59189a82014-03-06 07:46:30 -080047#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
Tom Riniaa6e94d2022-11-16 13:10:37 -050048#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini65cc0e22022-11-16 13:10:41 -050049#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
50#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Tim Harvey59189a82014-03-06 07:46:30 -080051
Tim Harvey59189a82014-03-06 07:46:30 -080052/*
53 * MTD Command for mtdparts
54 */
Tim Harvey59189a82014-03-06 07:46:30 -080055
56/* Persistent Environment Config */
Tim Harvey59189a82014-03-06 07:46:30 -080057
58/* Environment */
Tim Harvey59189a82014-03-06 07:46:30 -080059
Tim Harvey59189a82014-03-06 07:46:30 -080060#endif /* __CONFIG_H */