Skip to content

Commit e7ada8d

Browse files
committed
Merge tag 'zynq-soc-for-4.6' of https://github.com/Xilinx/linux-xlnx into next/soc
Merge "ARM: Xilinx Zynq patches for v4.6" from Michal Simek: - SLCR early init - Fix L2 cache data corruption - Fix early printk uart setting * tag 'zynq-soc-for-4.6' of https://github.com/Xilinx/linux-xlnx: ARM: zynq: Move early printk virtual address to vmalloc area ARM: zynq: address L2 cache data corruption ARM: zynq: initialize slcr mapping earlier
2 parents 8bba98a + 8fff2f7 commit e7ada8d

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎arch/arm/include/debug/zynq.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
#define UART_SR_TXEMPTY 0x00000008 /* TX FIFO empty */
2121

2222
#define UART0_PHYS 0xE0000000
23-
#define UART0_VIRT 0xF0000000
23+
#define UART0_VIRT 0xF0800000
2424
#define UART1_PHYS 0xE0001000
25-
#define UART1_VIRT 0xF0001000
25+
#define UART1_VIRT 0xF0801000
2626

2727
#if IS_ENABLED(CONFIG_DEBUG_ZYNQ_UART1)
2828
# define LL_UART_PADDR UART1_PHYS

‎arch/arm/mach-zynq/common.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ static void __init zynq_init_machine(void)
150150

151151
static void __init zynq_timer_init(void)
152152
{
153-
zynq_early_slcr_init();
154-
155153
zynq_clock_init();
156154
of_clk_init(NULL);
157155
clocksource_probe();
@@ -186,6 +184,7 @@ static void __init zynq_map_io(void)
186184

187185
static void __init zynq_irq_init(void)
188186
{
187+
zynq_early_slcr_init();
189188
irqchip_init();
190189
}
191190

‎arch/arm/mach-zynq/slcr.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#define SLCR_A9_CPU_RST_CTRL_OFFSET 0x244 /* CPU Software Reset Control */
2929
#define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */
3030
#define SLCR_PSS_IDCODE 0x530 /* PS IDCODE */
31+
#define SLCR_L2C_RAM 0xA1C /* L2C_RAM in AR#54190 */
3132

3233
#define SLCR_UNLOCK_MAGIC 0xDF0D
3334
#define SLCR_A9_CPU_CLKSTOP 0x10
@@ -227,6 +228,9 @@ int __init zynq_early_slcr_init(void)
227228
/* unlock the SLCR so that registers can be changed */
228229
zynq_slcr_unlock();
229230

231+
/* See AR#54190 design advisory */
232+
regmap_update_bits(zynq_slcr_regmap, SLCR_L2C_RAM, 0x70707, 0x20202);
233+
230234
register_restart_handler(&zynq_slcr_restart_nb);
231235

232236
pr_info("%s mapped to %p\n", np->name, zynq_slcr_base);

0 commit comments

Comments
 (0)