dtb-y += g12b_a311d_w400_buildroot.dtb
endif
dtb-$(CONFIG_ARCH_MESON64_ODROIDC4) += meson64_odroidc4.dtb
+dtb-$(CONFIG_ARCH_MESON64_ODROIDC4) += meson64_odroidhc4.dtb
dtb-$(CONFIG_ARCH_MESON64_ODROIDN2) += meson64_odroidn2.dtb
dtb-$(CONFIG_ARCH_MESON64_ODROIDN2) += meson64_odroidn2_plus.dtb
dtb-$(CONFIG_ARCH_MESON64_ODROIDN2) += meson64_odroidn2_drm.dtb
--- /dev/null
+/*
+ * arch/arm64/boot/dts/amlogic/meson64_odroidhc4.dts
+ *
+ * Copyright (C) 2019 Hardkernel Co., Ltd. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ */
+
+#include "meson64_odroidc4.dts"
+
+/ {
+ model = "Hardkernel ODROID-HC4";
+};
+
+&pcie_A {
+ reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
+&sd_emmc_c {
+ status = "disabled";
+};
+
+&dwc2_a {
+ port-type = <1>;
+ port-id-mode = <1>; /** 0: hardware, 1: sw_host, 2: sw_slave*/
+ controller-type = <1>;
+};
system_rev = 0x0500;
__odroid_model = BOARD_ODROIDC4;
__odroid_amlogic_usb3 = false;
+ } else if (!strcmp(machine_name, "Hardkernel ODROID-HC4")) {
+ system_rev = 0x0600;
+ __odroid_model = BOARD_ODROIDHC4;
+ __odroid_amlogic_usb3 = false;
}
#endif
}
#define BOARD_ODROIDN2 0x09221000
#define BOARD_ODROIDC4 0x09051000
+#define BOARD_ODROIDHC4 0x09052000
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
#define board_is_odroidn2() __board_is_odroid(BOARD_ODROIDN2)
#define board_is_odroidc4() __board_is_odroid(BOARD_ODROIDC4)
+#define board_is_odroidhc4() __board_is_odroid(BOARD_ODROIDHC4)
#endif