
Dear Jiří Prchal,
On 09/16/2013 11:36 AM, Jiří Prchal wrote:
Dne 16.9.2013 10:27, Andreas Bießmann napsal(a):
On 09/13/2013 04:41 PM, Jiří Prchal wrote:
Dne 13.9.2013 16:10, Andreas Bießmann napsal(a):
On 09/13/2013 03:00 PM, Jiri Prchal wrote:
<snip>
diff --git a/arch/arm/include/asm/mach-types.h b/arch/arm/include/asm/mach-types.h index 440b041..9b274ba 100644 --- a/arch/arm/include/asm/mach-types.h +++ b/arch/arm/include/asm/mach-types.h @@ -986,6 +986,7 @@ extern unsigned int __machine_arch_type; #define MACH_TYPE_VIT_IBOX 3371 #define MACH_TYPE_DM6441_ESP 3372 #define MACH_TYPE_AT91SAM9X5EK 3373 +#define MACH_TYPE_CDU9G25 3373
NAK, please obtain a mach type: http://www.arm.linux.org.uk/developer/machines/?action=new
Should I register machine? I develop DT only: "NOTE 1:If you are developing a DT-only platform, you do not need to register a machine type for it. Please do not register a machine type. Thanks." Do I need this MACH_TYPE_* at all?
I'm not really familiar with FDT only boards, but I think it is sane to just use a zero machid then. Could you please check this and if working just omit the machid setting?
I'm not really familiar with FDT too, but I tested with 0 and it works.
so eliminate the MACH id in your patch then.
+#define CONFIG_CMD_BOOTZ +#define CONFIG_OF_LIBFDT
+/* general purpose I/O */ +#define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */
I doubt you need this for gpio. Could you please check, if it is really required?
Yes, it's required.
Yes, I knew that, but I have looked many other board files and they use both GPIO and PIO in one file. If is necessary I'll re-base it to PIO.
No, nand is not yet prepared for the generic gpio framework. I'll try to post patches next weeks (for 2014.01), but I'm quite busy right now. Since your board will also end up in 2014.01 this should go together.
I'll wait for that.
My changes are in u-boot-atmel/master now. If you send a rebased version of your patch I'll apply it for 2014.01 release.
Best regards
Andreas Bießmann