blob: 30654191a26495529eaa8e6b01f315c6a2630937 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Christoph Fritz730d2542016-11-29 16:13:40 +01002/*
3 * Copyright (C) 2016 samtec automotive software & electronics gmbh
4 *
5 * Configuration settings for the Samtec VIN|ING 2000 board.
Christoph Fritz730d2542016-11-29 16:13:40 +01006 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
11#include "mx6_common.h"
12
Christoph Fritz730d2542016-11-29 16:13:40 +010013#define BOOT_TARGET_DEVICES(func) \
14 func(MMC, mmc, 0) \
15 func(MMC, mmc, 1) \
16 func(USB, usb, 0) \
17 func(PXE, pxe, na) \
18 func(DHCP, dhcp, na)
19#include <config_distro_bootcmd.h>
20
21/* Miscellaneous configurable options */
Christoph Fritz730d2542016-11-29 16:13:40 +010022
Christoph Fritz730d2542016-11-29 16:13:40 +010023/* Physical Memory Map */
Christoph Fritz730d2542016-11-29 16:13:40 +010024#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
25
Tom Riniaa6e94d2022-11-16 13:10:37 -050026#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini65cc0e22022-11-16 13:10:41 -050027#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
28#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Christoph Fritz730d2542016-11-29 16:13:40 +010029
Christoph Fritz730d2542016-11-29 16:13:40 +010030/* MMC Configuration */
Tom Rini6cc04542022-10-28 20:27:13 -040031#define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
Christoph Fritz730d2542016-11-29 16:13:40 +010032
Christoph Fritz730d2542016-11-29 16:13:40 +010033/* PMIC */
Tom Riniaa3efb62022-12-04 10:13:35 -050034#define CFG_POWER_PFUZE100_I2C_ADDR 0x08
Christoph Fritz730d2542016-11-29 16:13:40 +010035
36/* Network */
Tom Rinifa760c32022-12-04 10:03:53 -050037#define CFG_FEC_MXC_PHYADDR 0x0
Christoph Fritz730d2542016-11-29 16:13:40 +010038
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
Christoph Fritz730d2542016-11-29 16:13:40 +010041
Christoph Fritz730d2542016-11-29 16:13:40 +010042#ifdef CONFIG_CMD_PCI
Tom Rini7906f912022-12-04 10:13:25 -050043#define CFG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6)
Christoph Fritz730d2542016-11-29 16:13:40 +010044#endif
45
Tom Rinie6014292022-12-04 10:04:12 -050046#define CFG_IMX6_PWM_PER_CLK 66000000
Christoph Fritz730d2542016-11-29 16:13:40 +010047
Christoph Fritz730d2542016-11-29 16:13:40 +010048#ifdef CONFIG_ENV_IS_IN_MMC
Christoph Fritz730d2542016-11-29 16:13:40 +010049/* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */
Christoph Fritz730d2542016-11-29 16:13:40 +010050#endif
51
Marek Vasut7d84f442019-11-26 09:39:08 +010052#ifdef CONFIG_SPL_BUILD
Tom Rini4db38662022-12-04 10:04:55 -050053#define CFG_MXC_UART_BASE UART1_BASE
Marek Vasut7d84f442019-11-26 09:39:08 +010054#endif
55
Christoph Fritz730d2542016-11-29 16:13:40 +010056#endif /* __CONFIG_H */