Jean-Christophe PLAGNIOL-VILLARD wrote: > > - mov r1, #0xFFFFFFF0 > > + /* > > + * Disable the clocks for most devices on this chip. > > + * They will be enabled again on demand > > + */ > > +#ifdef CONFIG_S3C24XX_NAND_BOOT > > + ldr r1, =0x6010 /* (CLK_RTC | CLK_GPIO | CLK_NAND) */ > > +#else > > + mov r1, #0x6000 /* (CLK_RTC | CLK_GPIO) */ > > how about use the macro and define a macro to avoid the ifdef I tried with macros, but the assembler failed. Can't remember why. But I tried again a few minutes ago .... and now it works (????). Do you mean something like this instead? [...] #ifdef CONFIG_S3C24XX_NAND_BOOT # define FORCED_CLOCKS (CLK_RTC | CLK_GPIO | CLK_NAND) #else # define FORCED_CLOCKS (CLK_RTC | CLK_GPIO) #endif /* * Disable the clocks for most devices on this chip. * They will be enabled again on demand */ ldr r1, =FORCED_CLOCKS [...] jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-8766-939 228 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox