Re: [RFC] S3C24xx: Enable only the clocks of used units

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -	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.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux