Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2013 Gateworks Corporation | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #ifndef __CONFIG_H | ||||
7 | #define __CONFIG_H | ||||
8 | |||||
Tim Harvey | bfa2dae | 2014-06-02 16:13:27 -0700 | [diff] [blame] | 9 | /* SPL */ |
Tim Harvey | bfa2dae | 2014-06-02 16:13:27 -0700 | [diff] [blame] | 10 | /* Location in NAND to read U-Boot from */ |
Tim Harvey | bfa2dae | 2014-06-02 16:13:27 -0700 | [diff] [blame] | 11 | |
Tim Harvey | fdb5afa | 2015-05-08 18:28:42 -0700 | [diff] [blame] | 12 | /* Falcon Mode */ |
Tim Harvey | fdb5afa | 2015-05-08 18:28:42 -0700 | [diff] [blame] | 13 | |
Tim Harvey | fdb5afa | 2015-05-08 18:28:42 -0700 | [diff] [blame] | 14 | /* Falcon Mode - MMC support: args@1MB kernel@2MB */ |
Tim Harvey | fdb5afa | 2015-05-08 18:28:42 -0700 | [diff] [blame] | 15 | |
Tim Harvey | bfa2dae | 2014-06-02 16:13:27 -0700 | [diff] [blame] | 16 | #include "imx6_spl.h" /* common IMX6 SPL configuration */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 17 | #include "mx6_common.h" |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 18 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 19 | /* Serial */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 20 | #define CONFIG_MXC_UART_BASE UART2_BASE |
21 | |||||
Tim Harvey | 8da219f | 2021-03-01 14:33:36 -0800 | [diff] [blame] | 22 | /* NAND */ |
23 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 24 | |
Tim Harvey | 4de46d2 | 2021-06-11 12:46:20 -0700 | [diff] [blame] | 25 | #undef CONFIG_SYS_BOOTM_LEN |
26 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) | ||||
27 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 28 | /* MMC Configs */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 29 | #define CONFIG_SYS_FSL_ESDHC_ADDR 0 |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 30 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 31 | /* |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 32 | * PCI express |
33 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 34 | #ifdef CONFIG_CMD_PCI |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 35 | #define CONFIG_PCIE_IMX |
36 | #endif | ||||
37 | |||||
38 | /* | ||||
39 | * PMIC | ||||
40 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 41 | #define CONFIG_POWER_PFUZE100 |
42 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 | ||||
Tim Harvey | 0dff16f | 2014-05-05 08:22:25 -0700 | [diff] [blame] | 43 | #define CONFIG_POWER_LTC3676 |
44 | #define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 45 | |
46 | /* Various command support */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 47 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 48 | /* USB Configs */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 49 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
50 | #define CONFIG_MXC_USB_FLAGS 0 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 51 | #define CONFIG_USBD_HS |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 52 | |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 53 | /* Framebuffer and LCD */ |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 54 | #define CONFIG_IMX_HDMI |
55 | #define CONFIG_IMX_VIDEO_SKIP | ||||
Tim Harvey | 88c9300 | 2016-07-15 07:17:20 -0700 | [diff] [blame] | 56 | #define CONFIG_HIDE_LOGO_VERSION /* Custom config to hide U-boot version */ |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 57 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 58 | /* Miscellaneous configurable options */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 59 | #define CONFIG_HWCONFIG |
60 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 61 | /* Memory configuration */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 62 | |
63 | /* Physical Memory Map */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 64 | #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 Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 69 | /* |
70 | * MTD Command for mtdparts | ||||
71 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 72 | |
73 | /* Persistent Environment Config */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 74 | |
75 | /* Environment */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 76 | #define CONFIG_IPADDR 192.168.1.1 |
77 | #define CONFIG_SERVERIP 192.168.1.146 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 78 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 79 | #endif /* __CONFIG_H */ |