This patch fix align error in mkimage_multidtb tools.
if DTB size is aigned to $PAD, $PAD_CNT should be zero not $PAD.
Change-Id: I2bf8343dae9b2bb71a70abf1df61bd215c2996f8
Signed-off-by: Inha Song <ideal.song@samsung.com>
int exynos_init(void)
{
+#ifdef EXYNOS5422_MFC_CPLL_FIX
+ /*
+ * A workaround for MFC crash on Odroid XU3:
+ * 1. set ACLK333 divider to 1
+ * 2. set CPLL rate to 480MHz
+ */
+ writel(0xa0500201, 0x10020120);
+ udelay(10);
+
+ writel(0x03100900, 0x10020504);
+ udelay(10);
+#endif
return 0;
}
"dfu_alt_system="CONFIG_DFU_ALT_SYSTEM \
"dfu_alt_info=Autoset by THOR/DFU command run.\0"
+/* Hacking */
+#define EXYNOS5422_MFC_CPLL_FIX
+
#endif /* __CONFIG_H */
touch padding
if [ $CNT -lt $(($DTB_CNT)) ]; then
- PAD_CNT=$(($PAD - $(($SIZE % $PAD))))
+ PAD_CNT=$(($(($PAD - $(($SIZE % $PAD)))) % $PAD))
if [ $PAD_CNT -ge 0 ]; then
echo -en " | PAD: $PAD_CNT B |"
rm padding