Tom Rini | af48948 | 2018-05-18 17:54:39 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2018 Simone CIANNI <simone.cianni@bticino.it> |
| 4 | * Copyright (C) 2018 Raffaele RECALCATI <raffaele.recalcati@bticino.it> |
| 5 | * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com> |
| 6 | * |
| 7 | * Configuration settings for the BTicion i.MX6DL Mamoj board. |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __IMX6DL_MAMOJ_CONFIG_H |
| 11 | #define __IMX6DL_MAMOJ_CONFIG_H |
| 12 | |
| 13 | #include <linux/sizes.h> |
| 14 | #include "mx6_common.h" |
| 15 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 16 | /* Total Size of Environment Sector */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 17 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 18 | /* Environment */ |
| 19 | #ifndef CONFIG_ENV_IS_NOWHERE |
| 20 | /* Environment in MMC */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 21 | #endif |
| 22 | |
| 23 | #ifndef CONFIG_SPL_BUILD |
| 24 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 25 | "scriptaddr=0x14000000\0" \ |
| 26 | "fdt_addr_r=0x13000000\0" \ |
| 27 | "kernel_addr_r=0x10008000\0" \ |
| 28 | "fdt_high=0xffffffff\0" \ |
Jagan Teki | ce37014 | 2018-05-07 11:21:38 +0530 | [diff] [blame] | 29 | "dfu_alt_info_spl=spl raw 0x2 0x400\0" \ |
| 30 | "dfu_alt_info_uboot=u-boot raw 0x8a 0x11400\0" \ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 31 | BOOTENV |
| 32 | |
| 33 | #define BOOT_TARGET_DEVICES(func) \ |
| 34 | func(MMC, mmc, 2) |
| 35 | |
| 36 | #include <config_distro_bootcmd.h> |
| 37 | #endif |
| 38 | |
| 39 | /* UART */ |
| 40 | #define CONFIG_MXC_UART_BASE UART3_BASE |
| 41 | |
| 42 | /* MMC */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 43 | |
| 44 | /* Ethernet */ |
| 45 | #define CONFIG_FEC_MXC_PHYADDR 1 |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 46 | |
| 47 | /* USB */ |
| 48 | #define CONFIG_EHCI_HCD_INIT_AFTER_RESET |
| 49 | #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 50 | #define CONFIG_MXC_USB_FLAGS 0 |
| 51 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 |
| 52 | |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 53 | /* Falcon */ |
| 54 | #define CONFIG_SPL_FS_LOAD_ARGS_NAME "args" |
| 55 | #define CONFIG_SPL_FS_LOAD_KERNEL_NAME "uImage" |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 56 | #define CONFIG_SYS_SPL_ARGS_ADDR 0x13000000 |
Jagan Teki | 920decd | 2018-05-07 11:21:39 +0530 | [diff] [blame] | 57 | |
| 58 | /* MMC support: args@1MB kernel@2MB */ |
| 59 | #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x800 /* 1MB */ |
| 60 | #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS (CONFIG_CMD_SPL_WRITE_SIZE / 512) |
| 61 | #define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x1000 /* 2MB */ |
| 62 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 63 | /* Miscellaneous configurable options */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 64 | |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 65 | /* Physical Memory Map */ |
Jagan Teki | e014275 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 66 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 67 | |
| 68 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM |
| 69 | #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 70 | #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE |
| 71 | |
| 72 | #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \ |
| 73 | GENERATED_GBL_DATA_SIZE) |
| 74 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ |
| 75 | CONFIG_SYS_INIT_SP_OFFSET) |
| 76 | |
| 77 | /* SPL */ |
| 78 | #include "imx6_spl.h" |
| 79 | |
| 80 | #endif /* __IMX6DL_MAMOJ_CONFIG_H */ |