blob: 8abb58b069186f22d88c4aff79c54ea25ab6cd76 [file] [log] [blame]
Tom Riniaf489482018-05-18 17:54:39 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jagan Tekie0142752018-05-07 11:21:34 +05302/*
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 Tekie0142752018-05-07 11:21:34 +05308 */
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 Tekie0142752018-05-07 11:21:34 +053016/* Total Size of Environment Sector */
Jagan Tekie0142752018-05-07 11:21:34 +053017
Jagan Tekie0142752018-05-07 11:21:34 +053018/* Environment */
19#ifndef CONFIG_ENV_IS_NOWHERE
20/* Environment in MMC */
Jagan Tekie0142752018-05-07 11:21:34 +053021#endif
22
Tom Rinic9edebe2022-12-04 10:03:50 -050023#define CFG_EXTRA_ENV_SETTINGS \
Jagan Tekie0142752018-05-07 11:21:34 +053024 "scriptaddr=0x14000000\0" \
25 "fdt_addr_r=0x13000000\0" \
26 "kernel_addr_r=0x10008000\0" \
27 "fdt_high=0xffffffff\0" \
Jagan Tekice370142018-05-07 11:21:38 +053028 "dfu_alt_info_spl=spl raw 0x2 0x400\0" \
29 "dfu_alt_info_uboot=u-boot raw 0x8a 0x11400\0" \
Jagan Tekie0142752018-05-07 11:21:34 +053030 BOOTENV
31
32#define BOOT_TARGET_DEVICES(func) \
33 func(MMC, mmc, 2)
34
35#include <config_distro_bootcmd.h>
Jagan Tekie0142752018-05-07 11:21:34 +053036
37/* UART */
Tom Rinia17aa192022-12-04 10:04:55 -050038#define CFG_MXC_UART_BASE UART3_BASE
Jagan Tekie0142752018-05-07 11:21:34 +053039
40/* MMC */
Jagan Tekie0142752018-05-07 11:21:34 +053041
42/* Ethernet */
Tom Rini4e3c8a62022-12-04 10:03:53 -050043#define CFG_FEC_MXC_PHYADDR 1
Jagan Tekie0142752018-05-07 11:21:34 +053044
Jagan Teki920decd2018-05-07 11:21:39 +053045/* Falcon */
Jagan Teki920decd2018-05-07 11:21:39 +053046
47/* MMC support: args@1MB kernel@2MB */
Jagan Teki920decd2018-05-07 11:21:39 +053048
Jagan Tekie0142752018-05-07 11:21:34 +053049/* Miscellaneous configurable options */
Jagan Tekie0142752018-05-07 11:21:34 +053050
Jagan Tekie0142752018-05-07 11:21:34 +053051/* Physical Memory Map */
Jagan Tekie0142752018-05-07 11:21:34 +053052#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
53
Tom Rinibb4dd962022-11-16 13:10:37 -050054#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini6a5dccc2022-11-16 13:10:41 -050055#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
56#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Jagan Tekie0142752018-05-07 11:21:34 +053057
Jagan Tekie0142752018-05-07 11:21:34 +053058#endif /* __IMX6DL_MAMOJ_CONFIG_H */