]> git.ipfire.org Git - people/ms/u-boot.git/commit
x86: quark: MRC codes clean up
authorBin Meng <bmeng.cn@gmail.com>
Tue, 10 Mar 2015 10:31:20 +0000 (18:31 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 03:22:37 +0000 (21:22 -0600)
commit312cc39e270170b37a992b2d57773c828dcb9c6b
tree6492fdb706088e6835b00772849f3d111666f449
parentb81bdf62e0cf9b5c64d30284d01658a851f142f7
x86: quark: MRC codes clean up

This patch cleans up the quark MRC codes coding style by:
- Remove BIT0/1../31 defines from mrc_util.h
- Create names for the documented BITs and use them
- For undocumented single BITs, use (1 << n) directly
- For undocumented ORed BITs, use the hex number directly
- Remove redundancy parenthesis all over the codes
- Replace to use lower case hex numbers

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/quark/hte.c
arch/x86/cpu/quark/hte.h
arch/x86/cpu/quark/mrc.c
arch/x86/cpu/quark/mrc_util.c
arch/x86/cpu/quark/mrc_util.h
arch/x86/cpu/quark/smc.c
arch/x86/cpu/quark/smc.h