Skip to content

Commit 6207604

Browse files
Hyungwon HwangMinkyuKang
Hyungwon Hwang
authored andcommitted
Odroid-XU3: Add support for Odroid-XU3
This patch adds support for Odroid-XU3. Signed-off-by: Hyungwon Hwang <[email protected]> Reviewed-by: Sjoerd Simons <[email protected]> Tested-by: Sjoerd Simons <[email protected]> Acked-by: Simon Glass <[email protected]> Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Minkyu Kang <[email protected]>
1 parent 43900da commit 6207604

File tree

6 files changed

+119
-1
lines changed

6 files changed

+119
-1
lines changed

Diff for: arch/arm/cpu/armv7/exynos/Kconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config TARGET_TRATS2
2424
config TARGET_ODROID
2525
bool "Exynos4412 Odroid board"
2626

27+
config TARGET_ODROID_XU3
28+
bool "Exynos5422 Odroid board"
29+
select OF_CONTROL
30+
2731
config TARGET_ARNDALE
2832
bool "Exynos5250 Arndale board"
2933
select CPU_V7_HAS_NONSEC

Diff for: arch/arm/dts/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \
1313
exynos5250-smdk5250.dtb \
1414
exynos5420-smdk5420.dtb \
1515
exynos5420-peach-pit.dtb \
16-
exynos5800-peach-pi.dtb
16+
exynos5800-peach-pi.dtb \
17+
exynos5422-odroidxu3.dtb
1718
dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \
1819
tegra20-medcom-wide.dtb \
1920
tegra20-paz00.dtb \

Diff for: arch/arm/dts/exynos5422-odroidxu3.dts

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Odroid XU3 device tree source
3+
*
4+
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
5+
* http://www.samsung.com
6+
*
7+
* SPDX-License-Identifier: GPL-2.0+
8+
*/
9+
10+
/dts-v1/;
11+
#include "exynos54xx.dtsi"
12+
13+
/ {
14+
model = "Odroid XU3 based on EXYNOS5422";
15+
compatible = "samsung,odroidxu3", "samsung,exynos5";
16+
17+
aliases {
18+
serial0 = "/serial@12C00000";
19+
console = "/serial@12C20000";
20+
};
21+
22+
memory {
23+
device_type = "memory";
24+
reg = <0x40000000 0x10000000
25+
0x50000000 0x10000000
26+
0x60000000 0x10000000
27+
0x70000000 0x10000000
28+
0x80000000 0x10000000
29+
0x90000000 0x10000000
30+
0xa0000000 0x10000000
31+
0xb0000000 0xea00000>;
32+
};
33+
34+
serial@12C20000 {
35+
status="okay";
36+
};
37+
38+
mmc@12200000 {
39+
fifoth_val = <0x201f0020>;
40+
};
41+
42+
mmc@12220000 {
43+
fifoth_val = <0x201f0020>;
44+
};
45+
};

Diff for: board/samsung/smdk5420/Kconfig

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
if TARGET_ODROID_XU3
2+
3+
config SYS_BOARD
4+
default "smdk5420"
5+
6+
config SYS_VENDOR
7+
default "samsung"
8+
9+
config SYS_CONFIG_NAME
10+
default "odroid_xu3"
11+
12+
endif
13+
114
if TARGET_PEACH_PI
215

316
config SYS_BOARD

Diff for: configs/odroid-xu3_defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_ARM=y
2+
CONFIG_ARCH_EXYNOS=y
3+
CONFIG_TARGET_ODROID_XU3=y
4+
CONFIG_DEFAULT_DEVICE_TREE="exynos5422-odroidxu3"

Diff for: include/configs/odroid_xu3.h

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright (C) 2013 Samsung Electronics
3+
* Hyungwon Hwang <[email protected]>
4+
*
5+
* SPDX-License-Identifier: GPL-2.0+
6+
*/
7+
8+
#ifndef __CONFIG_ODROID_XU3_H
9+
#define __CONFIG_ODROID_XU3_H
10+
11+
#include "exynos5420-common.h"
12+
13+
#define CONFIG_SYS_PROMPT "ODROID-XU3 # "
14+
#define CONFIG_IDENT_STRING " for ODROID-XU3"
15+
16+
#define CONFIG_BOARD_COMMON
17+
18+
#define CONFIG_SYS_SDRAM_BASE 0x40000000
19+
#define CONFIG_SYS_TEXT_BASE 0x43E00000
20+
21+
/* select serial console configuration */
22+
#define CONFIG_SERIAL2 /* use SERIAL 2 */
23+
24+
#define TZPC_BASE_OFFSET 0x10000
25+
26+
#define CONFIG_CMD_MMC
27+
28+
/*
29+
* FIXME: The number of bank is actually 8. But there is no way to reserve the
30+
* last 16 Mib in the last bank now. So I just excluded the last bank
31+
* temporally.
32+
*/
33+
#define CONFIG_NR_DRAM_BANKS 7
34+
#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
35+
36+
#define CONFIG_ENV_IS_IN_MMC
37+
38+
#undef CONFIG_ENV_SIZE
39+
#undef CONFIG_ENV_OFFSET
40+
#define CONFIG_ENV_SIZE 4096
41+
#define CONFIG_ENV_OFFSET (SZ_1K * 1280) /* 1.25 MiB offset */
42+
43+
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)
44+
45+
#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
46+
47+
/* FIXME: MUST BE REMOVED AFTER TMU IS TURNED ON */
48+
#undef CONFIG_EXYNOS_TMU
49+
#undef CONFIG_TMU_CMD_DTT
50+
51+
#endif /* __CONFIG_H */

0 commit comments

Comments
 (0)