[RFC] S3C24xx: Enable only the clocks of used units
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Mon Oct 18 21:42:46 EDT 2010
> - 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
Best Regards,
J.
More information about the barebox
mailing list