diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/command.h | 2 | ||||
-rw-r--r-- | include/configs/pe2201.h | 16 | ||||
-rw-r--r-- | include/configs/phycore_am62x.h | 15 |
3 files changed, 32 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h index 4cec634545..4158ca11b0 100644 --- a/include/command.h +++ b/include/command.h @@ -186,7 +186,7 @@ int cmd_process_error(struct cmd_tbl *cmdtp, int err); * Return: data size in bytes (1, 2, 4, 8) or CMD_DATA_SIZE_ERR for an invalid * character, or CMD_DATA_SIZE_STR for a string */ -int cmd_get_data_size(char *arg, int default_size); +int cmd_get_data_size(const char *arg, int default_size); #endif #ifdef CONFIG_CMD_BOOTD diff --git a/include/configs/pe2201.h b/include/configs/pe2201.h new file mode 100644 index 0000000000..80f8f17bcd --- /dev/null +++ b/include/configs/pe2201.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2023, Phytium Technology Co., Ltd. + * lixinde <lixinde@phytium.com.cn> + * weichangzheng <weichangzheng@phytium.com.cn> + */ + +#ifndef __PE2201_CONFIG_H +#define __PE2201_CONFIG_H + +/* SDRAM Bank #1 start address */ +#define PHYS_SDRAM_1 0x80000000 +#define PHYS_SDRAM_1_SIZE 0x74000000 +#define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1 + +#endif diff --git a/include/configs/phycore_am62x.h b/include/configs/phycore_am62x.h new file mode 100644 index 0000000000..10b78b6f53 --- /dev/null +++ b/include/configs/phycore_am62x.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Configuration header file for PHYTEC phyCORE-AM62x + * + * Copyright (C) 2023 PHYTEC Messtechnik GmbH + * Author: Wadim Egorov <w.egorov@phytec.de> + */ + +#ifndef __PHYCORE_AM62X_H +#define __PHYCORE_AM62X_H + +/* DDR Configuration */ +#define CFG_SYS_SDRAM_BASE 0x80000000 + +#endif /* __PHYCORE_AM62X_H */ |