blob: 909453cd66f416ee2530f36f4946a1a9626f8b83 [file] [log] [blame]
Tom Rini855ff8e2018-05-18 17:54:39 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jagan Teki1494cc82018-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 Teki1494cc82018-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 Teki1494cc82018-05-07 11:21:34 +053016/* Total Size of Environment Sector */
Jagan Teki1494cc82018-05-07 11:21:34 +053017
Jagan Teki1494cc82018-05-07 11:21:34 +053018/* Environment */
19#ifndef CONFIG_ENV_IS_NOWHERE
20/* Environment in MMC */
Jagan Teki1494cc82018-05-07 11:21:34 +053021#endif
22
Jagan Teki1494cc82018-05-07 11:21:34 +053023#define CONFIG_EXTRA_ENV_SETTINGS \
24 "scriptaddr=0x14000000\0" \
25 "fdt_addr_r=0x13000000\0" \
26 "kernel_addr_r=0x10008000\0" \
27 "fdt_high=0xffffffff\0" \
Jagan Teki129ceda2018-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 Teki1494cc82018-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 Teki1494cc82018-05-07 11:21:34 +053036
37/* UART */
38#define CONFIG_MXC_UART_BASE UART3_BASE
39
40/* MMC */
Jagan Teki1494cc82018-05-07 11:21:34 +053041
42/* Ethernet */
43#define CONFIG_FEC_MXC_PHYADDR 1
Jagan Teki1494cc82018-05-07 11:21:34 +053044
45/* USB */
Jagan Teki1494cc82018-05-07 11:21:34 +053046#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
47#define CONFIG_MXC_USB_FLAGS 0
Jagan Teki1494cc82018-05-07 11:21:34 +053048
Jagan Teki9e759ce2018-05-07 11:21:39 +053049/* Falcon */
Jagan Teki9e759ce2018-05-07 11:21:39 +053050
51/* MMC support: args@1MB kernel@2MB */
Jagan Teki9e759ce2018-05-07 11:21:39 +053052
Jagan Teki1494cc82018-05-07 11:21:34 +053053/* Miscellaneous configurable options */
Jagan Teki1494cc82018-05-07 11:21:34 +053054
Jagan Teki1494cc82018-05-07 11:21:34 +053055/* Physical Memory Map */
Jagan Teki1494cc82018-05-07 11:21:34 +053056#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
57
58#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
59#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
60#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
61
Jagan Teki1494cc82018-05-07 11:21:34 +053062/* SPL */
63#include "imx6_spl.h"
64
65#endif /* __IMX6DL_MAMOJ_CONFIG_H */