1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration for Amlogic Meson 64bits SoCs
4 * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
7 #ifndef __MESON64_CONFIG_H
8 #define __MESON64_CONFIG_H
10 /* Tizen Specific configuration for Amlogic */
11 #include <samsung/tizen_amlogic.h>
13 /* Generic Interrupt Controller Definitions */
14 #if (defined(CONFIG_MESON_AXG) || defined(CONFIG_MESON_G12A))
15 #define GICD_BASE 0xffc01000
16 #define GICC_BASE 0xffc02000
17 #elif defined(CONFIG_MESON_A1)
18 #define GICD_BASE 0xff901000
19 #define GICC_BASE 0xff902000
20 #else /* MESON GXL and GXBB */
21 #define GICD_BASE 0xc4301000
22 #define GICC_BASE 0xc4302000
26 /* The following table includes the supported baudrates */
27 #define CFG_SYS_BAUDRATE_TABLE \
28 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, \
29 230400, 250000, 460800, 500000, 1000000, 2000000, 4000000, \
32 /* For splashscreen */
34 #define STDOUT_CFG "vidconsole,serial"
36 #define STDOUT_CFG "serial"
39 #ifdef CONFIG_USB_KEYBOARD
40 #define STDIN_CFG "usbkbd,serial"
42 #define STDIN_CFG "serial"
45 #define CFG_SYS_SDRAM_BASE 0
47 /* ROM USB boot support, auto-execute boot.scr at scriptaddr */
48 #define BOOTENV_DEV_ROMUSB(devtypeu, devtypel, instance) \
50 "if test \"${boot_source}\" = \"usb\" && " \
51 "test -n \"${scriptaddr}\"; then " \
52 "echo '(ROM USB boot)'; " \
53 "source ${scriptaddr}; " \
56 #define BOOTENV_DEV_NAME_ROMUSB(devtypeu, devtypel, instance) \
60 #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
62 #define BOOT_TARGET_DEVICES_USB(func)
65 #ifdef CONFIG_CMD_NVME
66 #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
68 #define BOOT_TARGET_NVME(func)
71 #ifdef CONFIG_CMD_SCSI
72 #define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
74 #define BOOT_TARGET_SCSI(func)
77 #ifndef BOOT_TARGET_DEVICES
78 #define BOOT_TARGET_DEVICES(func) \
79 func(ROMUSB, romusb, na) \
83 BOOT_TARGET_DEVICES_USB(func) \
84 BOOT_TARGET_NVME(func) \
85 BOOT_TARGET_SCSI(func) \
90 #include <config_distro_bootcmd.h>
92 #ifndef CFG_EXTRA_ENV_SETTINGS
93 #define CFG_EXTRA_ENV_SETTINGS \
94 "stdin=" STDIN_CFG "\0" \
95 "stdout=" STDOUT_CFG "\0" \
96 "stderr=" STDOUT_CFG "\0" \
97 "kernel_comp_addr_r=0x0d080000\0" \
98 "kernel_comp_size=0x2000000\0" \
99 "fdt_addr_r=0x08008000\0" \
100 "scriptaddr=0x08000000\0" \
101 "kernel_addr_r=0x08080000\0" \
102 "pxefile_addr_r=0x01080000\0" \
103 "fdtoverlay_addr_r=0x01000000\0" \
104 "ramdisk_addr_r=0x13000000\0" \
109 #endif /* __MESON64_CONFIG_H */