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 | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 25 | /* MMC Configs */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 26 | #define CONFIG_SYS_FSL_ESDHC_ADDR 0 |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 27 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 28 | /* |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 29 | * PCI express |
30 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 31 | |
32 | /* | ||||
33 | * PMIC | ||||
34 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 35 | #define CONFIG_POWER_PFUZE100 |
36 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 | ||||
Tim Harvey | 0dff16f | 2014-05-05 08:22:25 -0700 | [diff] [blame] | 37 | #define CONFIG_POWER_LTC3676 |
38 | #define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 39 | |
40 | /* Various command support */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 41 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 42 | /* USB Configs */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 43 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
44 | #define CONFIG_MXC_USB_FLAGS 0 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 45 | #define CONFIG_USBD_HS |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 46 | |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 47 | /* Framebuffer and LCD */ |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 48 | #define CONFIG_IMX_HDMI |
49 | #define CONFIG_IMX_VIDEO_SKIP | ||||
Tim Harvey | 88c9300 | 2016-07-15 07:17:20 -0700 | [diff] [blame] | 50 | #define CONFIG_HIDE_LOGO_VERSION /* Custom config to hide U-boot version */ |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 51 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 52 | /* Miscellaneous configurable options */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 53 | #define CONFIG_HWCONFIG |
54 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 55 | /* Memory configuration */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 56 | |
57 | /* Physical Memory Map */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 58 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
59 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM | ||||
60 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR | ||||
61 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE | ||||
62 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 63 | /* |
64 | * MTD Command for mtdparts | ||||
65 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 66 | |
67 | /* Persistent Environment Config */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 68 | |
69 | /* Environment */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 70 | #define CONFIG_IPADDR 192.168.1.1 |
71 | #define CONFIG_SERVERIP 192.168.1.146 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 72 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 73 | #endif /* __CONFIG_H */ |