From c93cdf536a086deab0fa696989263a97b4d6c417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 20 May 2020 09:14:02 +0200 Subject: bcm63xx: lzma-loader: rely on CHIP_ID for UART address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lzma-loader uart output wasn't working on BCM3380/BCM6362 because these SoCs have the same processor ID. Let's use CHIP_ID for establishing the UART base address. Signed-off-by: Álvaro Fernández Rojas --- target/linux/bcm63xx/image/lzma-loader/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'target/linux/bcm63xx/image/lzma-loader/Makefile') diff --git a/target/linux/bcm63xx/image/lzma-loader/Makefile b/target/linux/bcm63xx/image/lzma-loader/Makefile index 6100a8c2ea..2be41c875a 100644 --- a/target/linux/bcm63xx/image/lzma-loader/Makefile +++ b/target/linux/bcm63xx/image/lzma-loader/Makefile @@ -1,4 +1,6 @@ # +# Copyright (C) 2020 Álvaro Fernández Rojas +# Copyright (C) 2014 Jonas Gorski # Copyright (C) 2011 OpenWrt.org # Copyright (C) 2011 Gabor Juhos # @@ -14,6 +16,25 @@ LOADER_NAME := $(basename $(notdir $(LOADER))) LOADER_DATA := TARGET_DIR := +UART_BASE_3329 := 0xb0000100 +UART_BASE_3368 := 0xfff8c100 +UART_BASE_3380 := 0xb4e00200 +UART_BASE_3383 := 0xb4e00500 +UART_BASE_3384 := 0xb4e00500 +UART_BASE_6318 := 0xb0000100 +UART_BASE_6328 := 0xb0000100 +UART_BASE_6338 := 0xfffe0300 +UART_BASE_6345 := 0xfffe0300 +UART_BASE_6348 := 0xfffe0300 +UART_BASE_6358 := 0xfffe0100 +UART_BASE_6362 := 0xb0000100 +UART_BASE_6368 := 0xb0000100 +UART_BASE_63268 := 0xb0000180 +UART_BASE_6816 := 0xb0000100 +UART_BASE_6818 := 0xb0000100 +UART_BASE_6828 := 0xb0000180 +UART_BASE := $(if $(UART_BASE_$(CHIP_ID)),$(UART_BASE_$(CHIP_ID)),0) + ifeq ($(TARGET_DIR),) TARGET_DIR := $(KDIR) endif @@ -35,6 +56,7 @@ loader-compile: $(PKG_BUILD_DIR)/.prepared $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)" \ LZMA_TEXT_START=$(LZMA_TEXT_START) \ LOADER_DATA=$(LOADER_DATA) \ + UART_BASE=$(UART_BASE) \ clean all loader.elf: $(PKG_BUILD_DIR)/loader.elf -- cgit v1.2.3