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 */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 23 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 24 | /* MMC Configs */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 25 | #define CFG_SYS_FSL_ESDHC_ADDR 0 |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 26 | |
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 | * PCI express |
29 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 30 | |
31 | /* | ||||
32 | * PMIC | ||||
33 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 34 | #define CONFIG_POWER_PFUZE100 |
35 | #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 | ||||
Tim Harvey | 0dff16f | 2014-05-05 08:22:25 -0700 | [diff] [blame] | 36 | #define CONFIG_POWER_LTC3676 |
37 | #define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 38 | |
39 | /* Various command support */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 40 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 41 | /* USB Configs */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 42 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
43 | #define CONFIG_MXC_USB_FLAGS 0 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 44 | #define CONFIG_USBD_HS |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 45 | |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 46 | /* Framebuffer and LCD */ |
Tim Harvey | fb64cc7 | 2014-04-25 15:39:07 -0700 | [diff] [blame] | 47 | #define CONFIG_IMX_HDMI |
48 | #define CONFIG_IMX_VIDEO_SKIP | ||||
49 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 50 | /* Miscellaneous configurable options */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 51 | #define CONFIG_HWCONFIG |
52 | |||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 53 | /* Memory configuration */ |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 54 | |
55 | /* Physical Memory Map */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 56 | #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 Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 61 | /* |
62 | * MTD Command for mtdparts | ||||
63 | */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 64 | |
65 | /* Persistent Environment Config */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 66 | |
67 | /* Environment */ | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 68 | #define CONFIG_IPADDR 192.168.1.1 |
69 | #define CONFIG_SERVERIP 192.168.1.146 | ||||
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 70 | |
Tim Harvey | 552c358 | 2014-03-06 07:46:30 -0800 | [diff] [blame] | 71 | #endif /* __CONFIG_H */ |