From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antony Pavlov Date: Fri, 18 Dec 2015 15:54:04 +0300 Subject: [U-Boot] [PATCH] mips: add base support for atheros ar71xx based SOCs In-Reply-To: References: Message-ID: <20151218155404.abbd4343f49ecc1f8af36949@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 18 Dec 2015 15:34:29 +0800 Wills Wang wrote: > This patch enable work for ar933x SOC, tested on ar9331 > > Signed-off-by: Wills Wang > --- > > arch/mips/Makefile | 1 + > arch/mips/include/asm/ar71xx.h | 1144 +++++++++++++++++++++++++++ > arch/mips/mach-ath79/Makefile | 8 + > arch/mips/mach-ath79/ar933x/Makefile | 11 + > arch/mips/mach-ath79/ar933x/dram.c | 27 + > arch/mips/mach-ath79/ar933x/lowlevel_init.S | 784 ++++++++++++++++++ > arch/mips/mach-ath79/ar933x/reset.c | 29 + > arch/mips/mach-ath79/ar933x/serial.c | 348 ++++++++ > arch/mips/mach-ath79/config.mk | 8 + > 9 files changed, 2360 insertions(+) > create mode 100644 arch/mips/include/asm/ar71xx.h > create mode 100644 arch/mips/mach-ath79/Makefile > create mode 100644 arch/mips/mach-ath79/ar933x/Makefile > create mode 100644 arch/mips/mach-ath79/ar933x/dram.c > create mode 100644 arch/mips/mach-ath79/ar933x/lowlevel_init.S > create mode 100644 arch/mips/mach-ath79/ar933x/reset.c > create mode 100644 arch/mips/mach-ath79/ar933x/serial.c > create mode 100644 arch/mips/mach-ath79/config.mk 1. Your lowlevel_init routine duplicates cache maintenance functions by Paul Burton (please see commit 4a5d8898bca3e442b6 'MIPS: unify cache initialization code'). 2. Can we select build for ar71xx from .config? I suppose 'No', because the patch does not add any Kconfig option. 3. Can we put your arch/mips/mach-ath79/ar933x/serial.c into drivers/serial? 4. The patch is suffering from very very many unused macros in ar71xx.h. 5. The patch has whitespace errors, please see this git-am log: Applying: mips: add base support for atheros ar71xx based SOCs .git/rebase-apply/patch:1180: new blank line at EOF. + .git/rebase-apply/patch:2069: new blank line at EOF. + warning: 2 lines add whitespace errors. --? Best regards, ? Antony Pavlov