rockchip: fixes for the required
authorCaesar Wang <wxt@rock-chips.com>
Tue, 19 Apr 2016 12:42:17 +0000 (20:42 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Mon, 25 Apr 2016 08:53:22 +0000 (16:53 +0800)
This patch has the following change for rk3399.

* Set the uart to 115200 since the loader decide to set
  uart baud to 115200Hz. So the ATF also should set uart baud to 115200.

* We need ensure the bl31 base is greater than 4KB since there are have
  the shared mem for coreboot.(Note: the previous vesion was tested with uboot)

Otherwise, we will happen the exception crash since the ddr area won't
to work from the shared ram address in some cases.

For example, the exception crash:
CBFS: Found @ offset 19c80 size 24074
exception _sync_sp_el0
ELR = 0x0000000000008000
ESR = 0x0000000002000000
SPSR = 0x600003cc
FAR = 0xffffffff00000000
SP = 0x00000000ff8ed230
...
X29 = 0x00000000ff8c1fc0
X30 = 0x000000000030e3b0
exception death

Change-Id: I8bc557c6bcaf6804d2a313b38667d3e2517881d7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
plat/rockchip/rk3368/include/platform_def.h
plat/rockchip/rk3399/include/platform_def.h
plat/rockchip/rk3399/rk3399_def.h

index 876cbfb48a76e1315be6d89b2d39554c4af0f3dd..299704d5696a01501fd93102837e263ec8e36a0f 100644 (file)
 /*
  * Put BL3-1 at the top of the Trusted RAM
  */
-#define BL31_BASE              (TZRAM_BASE + 0x8000)
+#define BL31_BASE              (TZRAM_BASE + 0x10000)
 #define BL31_LIMIT     (TZRAM_BASE + TZRAM_SIZE)
 
 /*******************************************************************************
index 13f3d50087bba61293fe32e295a8c9428b26d4ae..f7da0e70419e5cf51f8f9af62da5fd2dc391586f 100644 (file)
 /*
  * Put BL3-1 at the top of the Trusted RAM
  */
-#define BL31_BASE              (TZRAM_BASE + 0x8000)
+#define BL31_BASE              (TZRAM_BASE + 0x10000)
 #define BL31_LIMIT     (TZRAM_BASE + TZRAM_SIZE)
 
 /*******************************************************************************
index 8562148648ff15f415e712987120ba75c5cdf022..4ddb0ddd73cea2b70cf0d07f7b1af01437eeb2ec 100644 (file)
@@ -79,7 +79,7 @@
 #define RK3399_UART2_BASE      (0xff1a0000)
 #define RK3399_UART2_SIZE      SIZE_K(64)
 
-#define RK3399_BAUDRATE                (1500000)
+#define RK3399_BAUDRATE                (115200)
 #define RK3399_UART_CLOCK      (24000000)
 
 /******************************************************************************