Merge branch '2020-07-28-Kconfig-migrations'
[platform/kernel/u-boot.git] / include / configs / imx6dl-mamoj.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
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.
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
16 /* Size of malloc() pool */
17 #define CONFIG_SYS_MALLOC_LEN           (35 * SZ_1M)
18
19 /* Total Size of Environment Sector */
20
21 /* Environment */
22 #ifndef CONFIG_ENV_IS_NOWHERE
23 /* Environment in MMC */
24 #endif
25
26 #ifndef CONFIG_SPL_BUILD
27 #define CONFIG_EXTRA_ENV_SETTINGS       \
28         "scriptaddr=0x14000000\0"       \
29         "fdt_addr_r=0x13000000\0"       \
30         "kernel_addr_r=0x10008000\0"    \
31         "fdt_high=0xffffffff\0"         \
32         "dfu_alt_info_spl=spl raw 0x2 0x400\0" \
33         "dfu_alt_info_uboot=u-boot raw 0x8a 0x11400\0" \
34         BOOTENV
35
36 #define BOOT_TARGET_DEVICES(func) \
37         func(MMC, mmc, 2)
38
39 #include <config_distro_bootcmd.h>
40 #endif
41
42 /* UART */
43 #define CONFIG_MXC_UART_BASE            UART3_BASE
44
45 /* MMC */
46 #define CONFIG_SYS_MMC_ENV_DEV          2
47
48 /* Ethernet */
49 #define CONFIG_FEC_MXC_PHYADDR          1
50
51 /* USB */
52 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
53 #define CONFIG_MXC_USB_PORTSC                   (PORT_PTS_UTMI | PORT_PTS_PTW)
54 #define CONFIG_MXC_USB_FLAGS                    0
55 #define CONFIG_USB_MAX_CONTROLLER_COUNT         2
56
57 /* Falcon */
58 #define CONFIG_SPL_FS_LOAD_ARGS_NAME    "args"
59 #define CONFIG_SPL_FS_LOAD_KERNEL_NAME  "uImage"
60 #define CONFIG_SYS_SPL_ARGS_ADDR        0x13000000
61
62 /* MMC support: args@1MB kernel@2MB */
63 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR           0x800   /* 1MB */
64 #define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS          (CONFIG_CMD_SPL_WRITE_SIZE / 512)
65 #define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR         0x1000  /* 2MB */
66
67 /* Miscellaneous configurable options */
68
69 #define CONFIG_SYS_LOAD_ADDR            CONFIG_LOADADDR
70 #define CONFIG_SYS_HZ                   1000
71
72 /* Physical Memory Map */
73 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
74
75 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
76 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
77 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
78
79 #define CONFIG_SYS_INIT_SP_OFFSET       (CONFIG_SYS_INIT_RAM_SIZE - \
80                                         GENERATED_GBL_DATA_SIZE)
81 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_INIT_RAM_ADDR + \
82                                         CONFIG_SYS_INIT_SP_OFFSET)
83
84 /* SPL */
85 #include "imx6_spl.h"
86
87 #endif /* __IMX6DL_MAMOJ_CONFIG_H */