Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757425AbbEVOEd (ORCPT ); Fri, 22 May 2015 10:04:33 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:34534 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756891AbbEVOE0 convert rfc822-to-8bit (ORCPT ); Fri, 22 May 2015 10:04:26 -0400 MIME-Version: 1.0 In-Reply-To: <555E559F.8040403@suse.de> References: <1431158038-3813-1-git-send-email-mcoquelin.stm32@gmail.com> <1431158038-3813-8-git-send-email-mcoquelin.stm32@gmail.com> <555D1C7D.1060205@suse.de> <555E1CC4.9090605@suse.de> <555E559F.8040403@suse.de> Date: Fri, 22 May 2015 16:04:24 +0200 Message-ID: Subject: Re: [PATCH v8 07/16] drivers: reset: Add STM32 reset driver From: Maxime Coquelin To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: Kamil Lulko , Rob Herring , Arnd Bergmann , Mark Rutland , "linux-doc@vger.kernel.org" , Linus Walleij , Will Deacon , Stefan Agner , Nikolay Borisov , Peter Meerwald , Lee Jones , Linux-Arch , Daniel Thompson , Russell King , Pawel Moll , Jonathan Corbet , Jiri Slaby , Daniel Lezcano , Chanwoo Choi , Andy Shevchenko , Antti Palosaari , Geert Uytterhoeven , "linux-serial@vger.kernel.org" , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , "devicetree@vger.kernel.org" , Kees Cook , Mauro Carvalho Chehab , Rusty Russell , "linux-gpio@vger.kernel.org" , Kumar Gala , Thomas Gleixner , Ian Campbell , Nicolae Rosia , "linux-arm-kernel@lists.infradead.org" , Michal Marek , Paul Bolle , Peter Hurley , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Philipp Zabel , Greg Kroah-Hartman , Joe Perches , Tejun Heo , Andrew Morton , "David S. Miller" , Vladimir Zapolskiy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1971 Lines: 47 2015-05-22 0:01 GMT+02:00 Andreas Färber : > Am 21.05.2015 um 21:57 schrieb Maxime Coquelin: >> Note that for now, I still use your bootloader. >> I have done the changes to reset the timers in the afboot-stm32. >> That's the reason why I asked you under which licence it is delivered >> few months ago. > > Sorry, too many mails... The stm32 one is GPL-2.0, as parts of it were > derived from a U-Boot fork. (Personally I prefer GPL-2.0+; fm4 and > xmc4000 are MIT/X11.) Not a problem, thanks for providing the licence. >> I can share you the patch if you want, even if I understand it is more >> about the concept that you are reluctant. >> >> On my side, I plan to move to U-Boot soon, as Kamil Lulko added STM32 >> support in mainline [1]. > > You're free to use any bootloader you like, but you will find it > difficult to build in USB etc. drivers given the sheer size of U-Boot. > That was my motivation for writing the tiny one. ;) I think the two bootloaders make sense. Indeed, using U-Boot restricts the size of the Kernel. I also have the stm32429i-eval board, with 32MB NOR and 32MB SD-Ram. At least on this one I will use U-Boot, as tftp could be used to load Kernel since it has Ethernet port. >> In case of U-Boot, the timer reset should be de-asserted when jumping >> into the Kernel, as Rob mentionned [0]. > > Thanks, I've updated the xmc4000 one accordingly and can do the same for > stm32. But you are right that I consider that an ugly workaround, > although on the other hand my earlyprintk patches also depend on the > bootloader setting up GPIOs and UART. Yes, the Kernel always need to rely on the bootloader to provide a minimal setup (clock/ddr/muxing...). Regards, Maxime -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/