linux/bitops.h: Add BIT macro
Subsystems (60)
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
---
Changes for v2:
- v1 has made changes only on spi stuff https://patchwork.ozlabs.org/patch/463462/
arch/arc/lib/cache.c | 10 +- arch/arc/lib/interrupts.c | 4 +- arch/arc/lib/timer.c | 2 +- arch/arm/cpu/arm1136/mx31/timer.c | 4 +- arch/arm/cpu/arm1136/mx35/generic.c | 8 +- arch/arm/cpu/arm920t/ep93xx/timer.c | 4 +- arch/arm/cpu/arm920t/s3c24x0/speed.c | 4 +- arch/arm/cpu/arm926ejs/mx25/generic.c | 2 +- arch/arm/cpu/arm926ejs/mx27/timer.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 6 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 8 +- arch/arm/cpu/armv7/am33xx/board.c | 10 +- arch/arm/cpu/armv7/am33xx/clock_ti814x.c | 30 +- arch/arm/cpu/armv7/exynos/clock.c | 2 +- arch/arm/cpu/armv7/exynos/common_setup.h | 12 +- arch/arm/cpu/armv7/exynos/exynos4_setup.h | 30 +- arch/arm/cpu/armv7/exynos/exynos5_setup.h | 152 ++-- arch/arm/cpu/armv7/exynos/sec_boot.S | 4 +- arch/arm/cpu/armv7/exynos/spl_boot.c | 2 +- arch/arm/cpu/armv7/exynos/system.c | 4 +- arch/arm/cpu/armv7/ls102xa/cpu.c | 8 +- arch/arm/cpu/armv7/mx5/lowlevel_init.S | 2 +- arch/arm/cpu/armv7/mx6/clock.c | 4 +- arch/arm/cpu/armv7/mx6/ddr.c | 18 +- arch/arm/cpu/armv7/mx6/soc.c | 2 +- arch/arm/cpu/armv7/omap-common/mem-common.c | 2 +- arch/arm/cpu/armv7/sunxi/dram_sun4i.c | 2 +- arch/arm/cpu/armv7/sunxi/dram_sun6i.c | 2 +- arch/arm/cpu/armv7/sunxi/psci.S | 10 +- arch/arm/cpu/armv7/sunxi/usbc.c | 8 +- arch/arm/cpu/armv7/u8500/prcmu.c | 12 +- arch/arm/cpu/armv7/zynq/clk.c | 2 +- arch/arm/cpu/armv7m/stm32f4/clock.c | 36 +- arch/arm/cpu/armv7m/stm32f4/timer.c | 6 +- arch/arm/imx-common/misc.c | 4 +- arch/arm/imx-common/spl.c | 2 +- arch/arm/imx-common/timer.c | 8 +- arch/arm/include/asm/arch-am33xx/clock.h | 10 +- arch/arm/include/asm/arch-am33xx/gpio.h | 2 +- arch/arm/include/asm/arch-am33xx/hardware_am43xx.h | 12 +- arch/arm/include/asm/arch-armada100/armada100.h | 4 +- arch/arm/include/asm/arch-armada100/config.h | 2 +- arch/arm/include/asm/arch-armada100/spi.h | 32 +- .../include/asm/arch-armada100/utmi-armada100.h | 6 +- arch/arm/include/asm/arch-armv7/sysctrl.h | 8 +- arch/arm/include/asm/arch-armv7/systimer.h | 8 +- arch/arm/include/asm/arch-ep93xx/ep93xx.h | 166 ++--- arch/arm/include/asm/arch-exynos/dmc.h | 6 +- arch/arm/include/asm/arch-exynos/dsim.h | 24 +- arch/arm/include/asm/arch-exynos/ehci.h | 26 +- arch/arm/include/asm/arch-exynos/fb.h | 166 ++--- arch/arm/include/asm/arch-exynos/i2s-regs.h | 28 +- arch/arm/include/asm/arch-exynos/mmc.h | 40 +- arch/arm/include/asm/arch-exynos/power.h | 14 +- arch/arm/include/asm/arch-exynos/pwm.h | 2 +- arch/arm/include/asm/arch-exynos/spi.h | 36 +- arch/arm/include/asm/arch-exynos/system.h | 2 +- arch/arm/include/asm/arch-exynos/xhci-exynos.h | 6 +- arch/arm/include/asm/arch-lpc32xx/clk.h | 74 +- arch/arm/include/asm/arch-lpc32xx/emc.h | 12 +- arch/arm/include/asm/arch-lpc32xx/timer.h | 4 +- arch/arm/include/asm/arch-lpc32xx/uart.h | 56 +- arch/arm/include/asm/arch-lpc32xx/wdt.h | 20 +- arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 4 +- arch/arm/include/asm/arch-mvebu/spi.h | 14 +- arch/arm/include/asm/arch-mx25/imx-regs.h | 66 +- arch/arm/include/asm/arch-mx25/macro.h | 2 +- arch/arm/include/asm/arch-mx27/imx-regs.h | 268 +++---- arch/arm/include/asm/arch-mx31/imx-regs.h | 44 +- arch/arm/include/asm/arch-mx35/crm_regs.h | 52 +- arch/arm/include/asm/arch-mx35/imx-regs.h | 34 +- arch/arm/include/asm/arch-mx35/lowlevel_macro.S | 2 +- arch/arm/include/asm/arch-mx5/crm_regs.h | 6 +- arch/arm/include/asm/arch-mx5/imx-regs.h | 50 +- arch/arm/include/asm/arch-mx6/crm_regs.h | 158 ++--- arch/arm/include/asm/arch-mx6/imx-regs.h | 22 +- arch/arm/include/asm/arch-mx6/iomux.h | 12 +- arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h | 142 ++-- arch/arm/include/asm/arch-mxs/regs-clkctrl-mx28.h | 188 ++--- arch/arm/include/asm/arch-mxs/regs-i2c.h | 196 ++--- arch/arm/include/asm/arch-mxs/regs-lcdif.h | 112 +-- arch/arm/include/asm/arch-mxs/regs-lradc.h | 138 ++-- arch/arm/include/asm/arch-mxs/regs-ocotp.h | 82 +-- arch/arm/include/asm/arch-mxs/regs-pinctrl.h | 638 ++++++++--------- arch/arm/include/asm/arch-mxs/regs-power-mx23.h | 224 +++--- arch/arm/include/asm/arch-mxs/regs-power-mx28.h | 272 +++---- arch/arm/include/asm/arch-mxs/regs-rtc.h | 62 +- arch/arm/include/asm/arch-mxs/regs-ssp.h | 166 ++--- arch/arm/include/asm/arch-mxs/regs-timrot.h | 44 +- arch/arm/include/asm/arch-mxs/regs-uartapp.h | 166 ++--- arch/arm/include/asm/arch-mxs/regs-usb.h | 16 +- arch/arm/include/asm/arch-mxs/regs-usbphy.h | 116 +-- arch/arm/include/asm/arch-omap3/am35x_def.h | 28 +- arch/arm/include/asm/arch-omap3/dma.h | 10 +- arch/arm/include/asm/arch-omap3/dss.h | 30 +- arch/arm/include/asm/arch-omap3/ehci.h | 20 +- arch/arm/include/asm/arch-omap3/mmc_host_def.h | 20 +- arch/arm/include/asm/arch-omap3/mux.h | 12 +- arch/arm/include/asm/arch-omap3/omap3-regs.h | 32 +- arch/arm/include/asm/arch-omap4/clock.h | 26 +- arch/arm/include/asm/arch-omap4/ehci.h | 16 +- arch/arm/include/asm/arch-omap4/mux_omap4.h | 12 +- arch/arm/include/asm/arch-omap4/omap.h | 6 +- arch/arm/include/asm/arch-omap5/clock.h | 78 +- arch/arm/include/asm/arch-omap5/ehci.h | 14 +- arch/arm/include/asm/arch-omap5/mux_dra7xx.h | 10 +- arch/arm/include/asm/arch-omap5/mux_omap5.h | 12 +- arch/arm/include/asm/arch-omap5/omap.h | 14 +- arch/arm/include/asm/arch-omap5/sata.h | 2 +- arch/arm/include/asm/arch-pxa/pxa-regs.h | 788 ++++++++++----------- arch/arm/include/asm/arch-pxa/regs-mmc.h | 80 +-- arch/arm/include/asm/arch-pxa/regs-uart.h | 96 +-- arch/arm/include/asm/arch-pxa/regs-usb.h | 110 +-- arch/arm/include/asm/arch-rmobile/ehci-rmobile.h | 66 +- arch/arm/include/asm/arch-rmobile/r8a7740-gpio.h | 6 +- arch/arm/include/asm/arch-rmobile/sh_sdhi.h | 118 +-- arch/arm/include/asm/arch-s3c24x0/iomux.h | 44 +- arch/arm/include/asm/arch-s5pc1xx/mmc.h | 38 +- arch/arm/include/asm/arch-s5pc1xx/power.h | 4 +- arch/arm/include/asm/arch-s5pc1xx/pwm.h | 2 +- arch/arm/include/asm/arch-socfpga/clock_manager.h | 26 +- arch/arm/include/asm/arch-socfpga/system_manager.h | 22 +- arch/arm/include/asm/arch-spear/hardware.h | 8 +- arch/arm/include/asm/arch-spear/spr_emi.h | 4 +- arch/arm/include/asm/arch-stm32f4/fmc.h | 6 +- arch/arm/include/asm/arch-stm32f4/stm32.h | 10 +- arch/arm/include/asm/arch-stv0991/stv0991_cgu.h | 2 +- arch/arm/include/asm/arch-stv0991/stv0991_gpt.h | 2 +- arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 14 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 10 +- arch/arm/include/asm/arch-sunxi/clock_sun9i.h | 4 +- arch/arm/include/asm/arch-sunxi/display.h | 88 +-- arch/arm/include/asm/arch-sunxi/dram_sun4i.h | 6 +- arch/arm/include/asm/arch-sunxi/dram_sun6i.h | 40 +- arch/arm/include/asm/arch-sunxi/mmc.h | 4 +- arch/arm/include/asm/arch-sunxi/rsb.h | 12 +- arch/arm/include/asm/arch-tegra/ap.h | 8 +- arch/arm/include/asm/arch-tegra/clk_rst.h | 114 +-- arch/arm/include/asm/arch-tegra/pmc.h | 76 +- arch/arm/include/asm/arch-tegra/scu.h | 2 +- arch/arm/include/asm/arch-tegra/tegra_mmc.h | 58 +- arch/arm/include/asm/arch-tegra/usb.h | 68 +- arch/arm/include/asm/arch-tegra114/sysctr.h | 4 +- arch/arm/include/asm/arch-tegra124/ahb.h | 12 +- arch/arm/include/asm/arch-tegra124/flow.h | 8 +- arch/arm/include/asm/arch-tegra124/mc.h | 2 +- arch/arm/include/asm/arch-tegra124/sysctr.h | 4 +- arch/arm/include/asm/arch-vf610/crm_regs.h | 60 +- arch/arm/include/asm/arch-vf610/imx-regs.h | 42 +- arch/arm/include/asm/armv7.h | 4 +- arch/arm/include/asm/armv7m.h | 10 +- arch/arm/include/asm/armv8/mmu.h | 14 +- arch/arm/include/asm/ehci-omap.h | 26 +- arch/arm/include/asm/emif.h | 100 +-- arch/arm/include/asm/imx-common/dma.h | 28 +- arch/arm/include/asm/imx-common/iomux-v3.h | 44 +- arch/arm/include/asm/imx-common/regs-apbh.h | 176 ++--- arch/arm/include/asm/imx-common/regs-bch.h | 50 +- arch/arm/include/asm/imx-common/regs-gpmi.h | 88 +-- arch/arm/include/asm/imx-common/regs-usbphy.h | 10 +- arch/arm/include/asm/macro.h | 4 +- arch/arm/include/asm/omap_mmc.h | 4 +- arch/arm/include/asm/pl310.h | 6 +- arch/arm/include/asm/proc-armv/ptrace.h | 8 +- arch/arm/include/asm/system.h | 68 +- arch/arm/include/asm/ti-common/davinci_nand.h | 10 +- arch/arm/include/asm/ti-common/keystone_nav.h | 2 +- arch/arm/include/asm/ti-common/ti-edma3.h | 2 +- arch/arm/lib/_divsi3.S | 8 +- arch/arm/lib/gic_64.S | 2 +- arch/arm/lib/memset.S | 2 +- arch/arm/lib/relocate.S | 2 +- arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c | 32 +- arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c | 32 +- arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c | 32 +- .../mach-at91/arm926ejs/at91sam9m10g45_devices.c | 32 +- arch/arm/mach-at91/arm926ejs/at91sam9n12_devices.c | 16 +- arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c | 16 +- arch/arm/mach-at91/arm926ejs/at91sam9x5_devices.c | 32 +- arch/arm/mach-at91/armv7/clock.c | 2 +- arch/arm/mach-at91/armv7/sama5d3_devices.c | 8 +- arch/arm/mach-at91/include/mach/at91_matrix.h | 8 +- arch/arm/mach-at91/include/mach/at91_pmc.h | 28 +- arch/arm/mach-at91/include/mach/at91_rstc.h | 2 +- arch/arm/mach-at91/include/mach/at91_spi.h | 8 +- .../mach-at91/include/mach/at91sam9260_matrix.h | 24 +- .../mach-at91/include/mach/at91sam9261_matrix.h | 22 +- .../mach-at91/include/mach/at91sam9263_matrix.h | 22 +- arch/arm/mach-at91/include/mach/at91sam9_sdramc.h | 18 +- .../mach-at91/include/mach/at91sam9g45_matrix.h | 42 +- .../arm/mach-at91/include/mach/at91sam9rl_matrix.h | 22 +- .../arm/mach-at91/include/mach/at91sam9x5_matrix.h | 42 +- arch/arm/mach-bcm283x/include/mach/mbox.h | 8 +- arch/arm/mach-bcm283x/include/mach/timer.h | 8 +- arch/arm/mach-davinci/dm355.c | 2 +- arch/arm/mach-davinci/dm644x.c | 6 +- arch/arm/mach-davinci/et1011c.c | 2 +- arch/arm/mach-davinci/include/mach/aintc_defs.h | 2 +- .../arm/mach-davinci/include/mach/da850_lowlevel.h | 4 +- arch/arm/mach-davinci/include/mach/da8xx-usb.h | 30 +- arch/arm/mach-davinci/include/mach/ddr2_defs.h | 4 +- arch/arm/mach-davinci/include/mach/hardware.h | 38 +- arch/arm/mach-davinci/include/mach/pll_defs.h | 38 +- arch/arm/mach-davinci/include/mach/psc_defs.h | 4 +- arch/arm/mach-davinci/include/mach/sdmmc_defs.h | 102 +-- arch/arm/mach-davinci/include/mach/syscfg_defs.h | 12 +- arch/arm/mach-davinci/misc.c | 4 +- arch/arm/mach-kirkwood/cpu.c | 18 +- arch/arm/mach-kirkwood/include/mach/gpio.h | 4 +- arch/arm/mach-orion5x/cpu.c | 10 +- arch/arm/mach-orion5x/timer.c | 2 +- arch/arm/mach-tegra/cpu.h | 8 +- arch/arm/mach-tegra/pinmux-common.c | 2 +- arch/arm/mach-tegra/powergate.c | 2 +- arch/arm/mach-tegra/tegra124/clock.c | 26 +- arch/arm/mach-tegra/tegra124/xusb-padctl.c | 30 +- arch/arm/mach-tegra/tegra20/clock.c | 20 +- arch/arm/mach-tegra/tegra20/warmboot_avp.h | 42 +- arch/arm/mach-tegra/tegra30/clock.c | 20 +- arch/arm/mach-uniphier/include/mach/ddrphy-regs.h | 56 +- arch/arm/mach-versatile/timer.c | 14 +- arch/arm/mvebu-common/dram.c | 4 +- arch/arm/mvebu-common/serdes/board_env_spec.h | 6 +- arch/arm/mvebu-common/serdes/high_speed_env_lib.c | 32 +- arch/avr32/cpu/at32ap700x/portmux.c | 222 +++--- arch/avr32/include/asm/arch-at32ap700x/addrspace.h | 6 +- arch/avr32/include/asm/arch-at32ap700x/portmux.h | 22 +- arch/avr32/include/asm/arch-common/portmux-pio.h | 8 +- arch/blackfin/cpu/cpu.c | 2 +- arch/blackfin/include/asm/mach-bf561/ports.h | 64 +- arch/blackfin/include/asm/mach-common/bits/cgu.h | 34 +- arch/blackfin/include/asm/mach-common/bits/eppi.h | 2 +- .../include/asm/mach-common/bits/ports-a.h | 32 +- .../include/asm/mach-common/bits/ports-b.h | 32 +- .../include/asm/mach-common/bits/ports-c.h | 32 +- .../include/asm/mach-common/bits/ports-d.h | 32 +- .../include/asm/mach-common/bits/ports-e.h | 32 +- .../include/asm/mach-common/bits/ports-f.h | 32 +- .../include/asm/mach-common/bits/ports-g.h | 32 +- .../include/asm/mach-common/bits/ports-h.h | 32 +- .../include/asm/mach-common/bits/ports-i.h | 32 +- .../include/asm/mach-common/bits/ports-j.h | 32 +- arch/blackfin/include/asm/mach-common/bits/uart4.h | 92 +-- arch/m68k/cpu/mcf5227x/speed.c | 4 +- arch/m68k/cpu/mcf532x/speed.c | 6 +- arch/m68k/cpu/mcf5445x/speed.c | 4 +- arch/m68k/include/asm/cache.h | 106 +-- arch/m68k/include/asm/coldfire/flexbus.h | 10 +- arch/mips/include/asm/jz4740.h | 594 ++++++++-------- arch/mips/include/asm/malta.h | 8 +- arch/mips/mach-au1x00/au1x00_usb_ohci.h | 54 +- arch/nios2/cpu/interrupts.c | 12 +- arch/powerpc/cpu/mpc5xxx/cpu_init.c | 26 +- arch/powerpc/cpu/mpc5xxx/interrupts.c | 2 +- arch/powerpc/cpu/mpc5xxx/pci_mpc5200.c | 14 +- arch/powerpc/cpu/mpc5xxx/speed.c | 6 +- arch/powerpc/cpu/mpc5xxx/usb_ohci.h | 54 +- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- arch/powerpc/cpu/mpc85xx/cpu_init.c | 2 +- arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c | 6 +- arch/powerpc/cpu/ppc4xx/4xx_pcie.c | 8 +- arch/powerpc/cpu/ppc4xx/usb_ohci.h | 54 +- arch/powerpc/include/asm/fsl_mpc83xx_serdes.h | 2 +- arch/powerpc/include/asm/fsl_tgec.h | 14 +- arch/powerpc/include/asm/immap_512x.h | 12 +- arch/powerpc/include/asm/ppc4xx-sdram.h | 34 +- arch/sh/cpu/sh4/watchdog.c | 6 +- arch/sparc/cpu/leon3/usb_uhci.c | 2 +- arch/sparc/cpu/leon3/usb_uhci.h | 22 +- arch/x86/cpu/cpu.c | 4 +- arch/x86/cpu/ivybridge/bd82x6x.c | 4 +- arch/x86/cpu/ivybridge/early_init.c | 10 +- arch/x86/cpu/ivybridge/gma.c | 38 +- arch/x86/cpu/ivybridge/gma.h | 14 +- arch/x86/cpu/ivybridge/lpc.c | 90 +-- arch/x86/cpu/ivybridge/model_206ax.c | 36 +- arch/x86/cpu/ivybridge/northbridge.c | 20 +- arch/x86/cpu/ivybridge/report_platform.c | 6 +- arch/x86/cpu/ivybridge/usb_xhci.c | 8 +- arch/x86/cpu/quark/hte.c | 10 +- arch/x86/cpu/quark/mrc_util.c | 24 +- arch/x86/cpu/quark/smc.c | 98 +-- arch/x86/cpu/quark/smc.h | 66 +- arch/x86/cpu/start.S | 4 +- arch/x86/include/asm/arch-ivybridge/model_206ax.h | 20 +- arch/x86/include/asm/arch-ivybridge/pch.h | 174 ++--- arch/x86/include/asm/arch-ivybridge/sandybridge.h | 22 +- arch/x86/include/asm/ioapic.h | 10 +- arch/x86/include/asm/lapic.h | 2 +- arch/x86/include/asm/lapic_def.h | 20 +- arch/x86/include/asm/msr-index.h | 32 +- arch/x86/include/asm/mtrr.h | 8 +- arch/x86/include/asm/turbo.h | 4 +- arch/x86/lib/bios.c | 6 +- arch/x86/lib/bios_interrupts.c | 4 +- arch/x86/lib/cmd_mtrr.c | 2 +- arch/x86/lib/init_helpers.c | 2 +- arch/x86/lib/physmem.c | 2 +- board/BuR/common/common.c | 2 +- board/BuS/eb_cpu5282/eb_cpu5282.c | 8 +- board/BuS/eb_cpux9k2/cpux9k2.c | 6 +- board/BuS/vl_ma2sc/vl_ma2sc.c | 4 +- board/LaCie/common/common.c | 4 +- board/Marvell/dreamplug/dreamplug.h | 4 +- board/Marvell/guruplug/guruplug.h | 4 +- board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c | 2 +- board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h | 12 +- board/Marvell/openrd/openrd.h | 6 +- board/Marvell/rd6281a/rd6281a.c | 2 +- board/Marvell/rd6281a/rd6281a.h | 8 +- board/Marvell/sheevaplug/sheevaplug.h | 8 +- board/Seagate/dockstar/dockstar.c | 4 +- board/Seagate/dockstar/dockstar.h | 8 +- board/Seagate/goflexhome/goflexhome.c | 4 +- board/a3m071/a3m071.c | 18 +- board/a4m072/a4m072.c | 2 +- board/afeb9260/afeb9260.c | 2 +- board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c | 2 +- board/armltd/integrator/integrator-sc.h | 28 +- board/armltd/integrator/pci_v3.h | 54 +- .../armadillo-800eva/armadillo-800eva.c | 22 +- board/atmel/at91sam9260ek/at91sam9260ek.c | 2 +- board/atmel/at91sam9261ek/at91sam9261ek.c | 2 +- board/atmel/at91sam9263ek/at91sam9263ek.c | 6 +- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 4 +- board/atmel/at91sam9n12ek/at91sam9n12ek.c | 4 +- board/atmel/at91sam9rlek/at91sam9rlek.c | 2 +- board/atmel/at91sam9x5ek/at91sam9x5ek.c | 4 +- board/atmel/sama5d3xek/sama5d3xek.c | 4 +- board/bf527-ezkit/video.c | 10 +- board/birdland/bav335x/board.c | 2 +- board/bluewater/snapper9260/snapper9260.c | 2 +- board/calao/tny_a9260/tny_a9260.c | 2 +- board/calao/usb_a9263/usb_a9263.c | 2 +- board/canmb/canmb.c | 4 +- board/cloudengines/pogo_e02/pogo_e02.h | 6 +- board/cm-bf537e/gpio_cfi_flash.c | 6 +- board/cm5200/cm5200.c | 2 +- board/cm5200/cmd_cm5200.c | 24 +- board/cmi/flash.c | 2 +- board/comelit/dig297/dig297.c | 2 +- board/compulab/cm_fx6/cm_fx6.c | 2 +- board/compulab/cm_t335/cm_t335.c | 2 +- board/compulab/common/omap3_display.c | 16 +- board/d-link/dns325/dns325.h | 4 +- board/davedenx/qong/lowlevel_init.S | 34 +- board/davedenx/qong/qong_fpga.h | 2 +- board/davinci/da8xxevm/da850evm.c | 2 +- board/davinci/dm355leopard/dm355leopard.c | 20 +- board/davinci/dm365evm/dm365evm.c | 6 +- board/davinci/sonata/sonata.c | 2 +- board/egnite/ethernut5/ethernut5.c | 2 +- board/esd/cpci405/flash.c | 4 +- board/esd/meesc/meesc.c | 2 +- board/esd/otc570/otc570.c | 2 +- board/esd/pmc440/pmc440.h | 26 +- board/esg/ima3-mx53/ima3-mx53.c | 2 +- board/freescale/common/dcu_sii9022a.c | 16 +- board/freescale/common/sleep.h | 2 +- board/freescale/mx31ads/lowlevel_init.S | 18 +- board/freescale/mx6qarm2/mx6qarm2.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- board/gdsys/405ex/io64.c | 4 +- board/gdsys/common/ihs_mdio.c | 4 +- board/gdsys/common/mclink.c | 6 +- board/gdsys/common/osd.c | 2 +- board/gumstix/pepper/board.c | 2 +- board/ifm/ac14xx/ac14xx.c | 12 +- board/ifm/o2dnt2/o2dnt2.c | 8 +- board/in-circuit/grasshopper/grasshopper.c | 2 +- board/inka4x0/inka4x0.c | 2 +- board/intercontrol/digsy_mtc/digsy_mtc.c | 34 +- board/iomega/iconnect/iconnect.h | 10 +- board/ipek01/ipek01.c | 2 +- board/isee/igep0033/board.c | 2 +- board/jornada/jornada.c | 4 +- board/jornada/setup.S | 16 +- board/jupiter/jupiter.c | 8 +- board/karo/tk71/tk71.c | 4 +- board/karo/tx25/lowlevel_init.S | 4 +- board/kmc/kzm9g/kzm9g.c | 32 +- board/kosagi/novena/video.c | 26 +- board/logicpd/am3517evm/am3517evm.c | 2 +- board/logicpd/imx27lite/imx27lite.c | 2 +- board/micronas/vct/ebi.h | 14 +- board/mimc/mimc200/mimc200.c | 4 +- board/motionpro/motionpro.c | 6 +- board/mpl/common/usb_uhci.c | 2 +- board/mpl/common/usb_uhci.h | 22 +- board/mpl/pati/cmd_pati.c | 20 +- board/munices/munices.c | 2 +- board/omicron/calimain/calimain.c | 2 +- board/pandora/pandora.c | 6 +- board/pdm360ng/pdm360ng.c | 4 +- board/phytec/pcm030/pcm030.c | 2 +- board/phytec/pcm051/board.c | 2 +- board/raidsonic/ib62x0/ib62x0.h | 6 +- board/renesas/alt/alt.c | 14 +- board/renesas/ecovec/ecovec.c | 10 +- board/renesas/gose/gose.c | 14 +- board/renesas/koelsch/koelsch.c | 14 +- board/renesas/lager/lager.c | 14 +- board/renesas/porter/porter.c | 12 +- board/renesas/r0p7734/r0p7734.c | 2 +- board/renesas/silk/silk.c | 14 +- board/ronetix/pm9261/pm9261.c | 2 +- board/ronetix/pm9263/pm9263.c | 2 +- board/samsung/goni/lowlevel_init.S | 18 +- board/samsung/smdkc100/onenand.c | 10 +- board/samsung/universal_c210/universal.c | 8 +- board/sbc8641d/sbc8641d.c | 2 +- board/siemens/corvus/board.c | 4 +- board/siemens/draco/board.c | 2 +- board/siemens/pxm2/board.c | 2 +- board/siemens/rut/board.c | 2 +- board/silica/pengwyn/board.c | 2 +- board/socrates/socrates.c | 2 +- board/st/stm32f429-discovery/stm32f429-discovery.c | 2 +- board/synopsys/axs101/axs101.c | 2 +- board/synopsys/axs101/nand.c | 12 +- board/syteco/zmx25/lowlevel_init.S | 6 +- board/ti/am335x/board.c | 2 +- board/ti/am335x/mux.c | 16 +- board/ti/am43xx/board.c | 2 +- board/ti/beagle_x15/board.c | 2 +- board/ti/dra7xx/evm.c | 2 +- board/ti/ks2_evm/ddr3_cfg.c | 16 +- board/ti/ti814x/evm.c | 2 +- board/tqc/tqm5200/cmd_stk52xx.c | 44 +- board/tqc/tqm5200/tqm5200.c | 8 +- board/trizepsiv/conxs.c | 4 +- board/v38b/v38b.c | 4 +- board/woodburn/woodburn.c | 2 +- board/zipitz2/zipitz2.c | 22 +- common/bedbug.c | 8 +- common/bootm.c | 2 +- common/cli_hush.c | 4 +- common/cmd_nvedit.c | 2 +- common/usb_kbd.c | 24 +- common/usb_storage.c | 2 +- drivers/bios_emulator/atibios.c | 2 +- drivers/block/ahci.c | 44 +- drivers/block/dwc_ahsata.c | 26 +- drivers/block/ftide020.h | 104 +-- drivers/block/pata_bfin.c | 8 +- drivers/block/sata_dwc.c | 16 +- drivers/block/sata_dwc.h | 236 +++--- drivers/block/sata_sil.c | 12 +- drivers/block/sata_sil.h | 84 +-- drivers/block/sata_sil3114.c | 2 +- drivers/crypto/ace_sha.h | 190 ++--- drivers/crypto/fsl/desc.h | 14 +- drivers/crypto/fsl/desc_constr.h | 2 +- drivers/ddr/mvebu/ddr3_dfs.c | 18 +- drivers/ddr/mvebu/ddr3_init.c | 6 +- drivers/ddr/mvebu/ddr3_sdram.c | 4 +- drivers/ddr/mvebu/ddr3_spd.c | 8 +- drivers/gpio/mxs_gpio.c | 4 +- drivers/gpio/sandbox.c | 4 +- drivers/i2c/davinci_i2c.h | 48 +- drivers/i2c/i2c-uniphier-f.c | 42 +- drivers/i2c/i2c-uniphier.c | 18 +- drivers/i2c/i2c_core.c | 6 +- drivers/i2c/mxc_i2c.c | 28 +- drivers/i2c/omap24xx_i2c.c | 4 +- drivers/i2c/omap24xx_i2c.h | 68 +- drivers/i2c/pca9564_i2c.c | 2 +- drivers/i2c/sh_i2c.c | 22 +- drivers/i2c/sh_sh7734_i2c.c | 56 +- drivers/input/tegra-kbc.c | 10 +- drivers/mmc/mmc_spi.c | 16 +- drivers/mmc/mxcmmc.c | 88 +-- drivers/mmc/omap_hsmmc.c | 4 +- drivers/mmc/pxa_mmc_gen.c | 2 +- drivers/mmc/s3c_sdi.c | 46 +- drivers/mmc/sh_mmcif.h | 200 +++--- drivers/mmc/sh_sdhi.c | 2 +- drivers/mmc/tegra_mmc.c | 8 +- drivers/mtd/nand/atmel_nand_ecc.h | 40 +- drivers/mtd/nand/davinci_nand.c | 8 +- drivers/mtd/nand/kb9202_nand.c | 16 +- drivers/mtd/nand/kirkwood_nand.c | 4 +- drivers/mtd/nand/kmeter1_nand.c | 14 +- drivers/mtd/nand/mpc5121_nfc.c | 46 +- drivers/mtd/nand/mxc_nand.h | 52 +- drivers/mtd/nand/nand_base.c | 14 +- drivers/mtd/nand/nomadik.c | 4 +- drivers/mtd/nand/omap_gpmc.c | 2 +- drivers/mtd/nand/s3c2410_nand.c | 2 +- drivers/mtd/nand/tegra_nand.h | 128 ++-- drivers/mtd/onenand/onenand_spl.c | 2 +- drivers/mtd/spi/sandbox.c | 4 +- drivers/mtd/spi/sf_internal.h | 8 +- drivers/mtd/ubi/eba.c | 2 +- drivers/net/bcm-sf2-eth-gmac.h | 4 +- drivers/net/davinci_emac.c | 2 +- drivers/net/davinci_emac.h | 10 +- drivers/net/designware.h | 112 +-- drivers/net/dnet.c | 2 +- drivers/net/dnet.h | 106 +-- drivers/net/e1000.c | 36 +- drivers/net/eepro100.c | 6 +- drivers/net/ep93xx_eth.c | 4 +- drivers/net/ep93xx_eth.h | 2 +- drivers/net/ethoc.c | 64 +- drivers/net/fec_mxc.h | 12 +- drivers/net/ftgmac100.h | 154 ++-- drivers/net/ftmac100.h | 94 +-- drivers/net/ftmac110.h | 74 +- drivers/net/keystone_net.c | 2 +- drivers/net/ks8851_mll.h | 292 ++++---- drivers/net/mvgbe.h | 176 ++--- drivers/net/mvneta.c | 6 +- drivers/net/phy/micrel.c | 14 +- drivers/net/phy/mv88e61xx.c | 10 +- drivers/net/phy/vitesse.c | 10 +- drivers/net/sunxi_emac.c | 2 +- drivers/net/tsi108_eth.c | 94 +-- drivers/net/vsc9953.c | 4 +- drivers/net/xilinx_ll_temac.h | 116 +-- drivers/net/xilinx_ll_temac_fifo.h | 36 +- drivers/net/xilinx_ll_temac_sdma.h | 86 +-- drivers/pci/pci_tegra.c | 64 +- drivers/pci/pcie_imx.c | 10 +- drivers/power/as3722.c | 4 +- drivers/power/exynos-tmu.c | 22 +- drivers/qe/uec_phy.c | 4 +- drivers/qe/uec_phy.h | 54 +- drivers/rtc/ftrtc010.c | 10 +- drivers/rtc/imxdi.c | 28 +- drivers/rtc/m41t62.c | 18 +- drivers/rtc/mc146818.c | 4 +- drivers/rtc/pl031.c | 2 +- drivers/rtc/rv3029.c | 18 +- drivers/serial/altera_jtag_uart.c | 12 +- drivers/serial/altera_uart.c | 50 +- drivers/serial/arm_dcc.c | 12 +- drivers/serial/ns16550.c | 2 +- drivers/serial/opencores_yanu.c | 4 +- drivers/serial/serial_arc.c | 6 +- drivers/serial/serial_lpuart.c | 46 +- drivers/serial/serial_max3100.c | 20 +- drivers/serial/serial_pl01x_internal.h | 88 +-- drivers/serial/serial_pxa.c | 2 +- drivers/serial/serial_s5p.c | 4 +- drivers/serial/serial_stm32.c | 12 +- drivers/spi/altera_spi.c | 26 +- drivers/spi/atmel_spi.h | 52 +- drivers/spi/bfin_spi6xx.c | 8 +- drivers/spi/cadence_qspi_apb.c | 28 +- drivers/spi/designware_spi.c | 14 +- drivers/spi/exynos_spi.c | 4 +- drivers/spi/fsl_dspi.c | 2 +- drivers/spi/fsl_espi.c | 20 +- drivers/spi/fsl_qspi.c | 4 +- drivers/spi/ftssp010_spi.c | 50 +- drivers/spi/ich.c | 4 +- drivers/spi/mpc8xxx_spi.c | 2 +- drivers/spi/omap3_spi.h | 48 +- drivers/spi/sh_qspi.c | 16 +- drivers/spi/tegra114_spi.c | 64 +- drivers/spi/tegra20_sflash.c | 50 +- drivers/spi/tegra20_slink.c | 56 +- drivers/spi/ti_qspi.c | 10 +- drivers/spi/xilinx_spi.h | 70 +- drivers/spi/zynq_spi.c | 16 +- drivers/thermal/imx_thermal.c | 8 +- drivers/tpm/tpm_tis_lpc.c | 28 +- drivers/usb/dwc3/core.h | 160 ++--- drivers/usb/dwc3/dwc3-omap.c | 48 +- drivers/usb/dwc3/gadget.h | 20 +- drivers/usb/eth/asix88179.c | 156 ++-- drivers/usb/gadget/atmel_usba_udc.h | 34 +- drivers/usb/gadget/ci_udc.c | 4 +- drivers/usb/gadget/ci_udc.h | 38 +- drivers/usb/gadget/designware_udc.c | 16 +- drivers/usb/gadget/pxa27x_udc.c | 2 +- drivers/usb/host/dwc2.h | 484 ++++++------- drivers/usb/host/ehci-hcd.c | 6 +- drivers/usb/host/ehci-mx5.c | 48 +- drivers/usb/host/ehci-mx6.c | 8 +- drivers/usb/host/ehci-mxc.c | 52 +- drivers/usb/host/ehci-mxs.c | 4 +- drivers/usb/host/ehci-vf.c | 10 +- drivers/usb/host/ehci.h | 70 +- drivers/usb/host/isp116x.h | 136 ++-- drivers/usb/host/ohci-s3c24xx.c | 18 +- drivers/usb/host/ohci-s3c24xx.h | 54 +- drivers/usb/host/ohci.h | 56 +- drivers/usb/host/r8a66597.h | 10 +- drivers/usb/host/xhci-uniphier.c | 4 +- drivers/usb/host/xhci.h | 146 ++-- drivers/usb/musb-new/musb_core.h | 2 +- drivers/usb/musb-new/musb_regs.h | 6 +- drivers/usb/musb-new/omap2430.h | 14 +- drivers/usb/musb-new/sunxi.c | 2 +- drivers/usb/musb/am35x.c | 4 +- drivers/usb/musb/am35x.h | 20 +- drivers/usb/musb/davinci.h | 16 +- drivers/usb/phy/twl4030.c | 14 +- drivers/usb/ulpi/omap-ulpi-viewport.c | 2 +- drivers/usb/ulpi/ulpi-viewport.c | 8 +- drivers/video/am335x-fb.c | 4 +- drivers/video/da8xx-fb.c | 68 +- drivers/video/exynos_mipi_dsi_common.c | 10 +- drivers/video/fsl_dcu_fb.c | 20 +- drivers/video/imx25lcdc.c | 10 +- drivers/video/mx3fb.c | 16 +- drivers/video/ssd2828.c | 26 +- fs/ext4/ext4_common.c | 8 +- fs/reiserfs/reiserfs_private.h | 4 +- include/SA-1100.h | 22 +- include/ahci.h | 80 +-- include/ambapp.h | 2 +- include/asm-generic/gpio.h | 10 +- include/atmel_lcdc.h | 58 +- include/axp152.h | 2 +- include/axp209.h | 10 +- include/axp221.h | 42 +- include/bouncebuf.h | 4 +- include/cli_hush.h | 6 +- include/configs/ac14xx.h | 18 +- include/configs/afeb9260.h | 4 +- include/configs/amcc-common.h | 2 +- include/configs/aria.h | 22 +- include/configs/at91sam9260ek.h | 4 +- include/configs/at91sam9261ek.h | 4 +- include/configs/at91sam9263ek.h | 6 +- include/configs/at91sam9m10g45ek.h | 4 +- include/configs/at91sam9n12ek.h | 4 +- include/configs/at91sam9rlek.h | 4 +- include/configs/at91sam9x5ek.h | 4 +- include/configs/bf537-pnav.h | 4 +- include/configs/bf537-stamp.h | 4 +- include/configs/bf561-acvilon.h | 4 +- include/configs/br4.h | 4 +- include/configs/cam_enc_4xx.h | 2 +- include/configs/corvus.h | 4 +- include/configs/cpu9260.h | 4 +- include/configs/crownbay.h | 2 +- include/configs/davinci_dm355evm.h | 2 +- include/configs/davinci_dm355leopard.h | 2 +- include/configs/davinci_dm365evm.h | 2 +- include/configs/davinci_dm6467evm.h | 2 +- include/configs/db-mv784mp-gp.h | 2 +- include/configs/ethernut5.h | 6 +- include/configs/galileo.h | 2 +- include/configs/goflexhome.h | 8 +- include/configs/ids8313.h | 2 +- include/configs/io64.h | 2 +- include/configs/ip04.h | 4 +- include/configs/kilauea.h | 2 +- include/configs/km_kirkwood.h | 4 +- include/configs/ls1021aqds.h | 2 +- include/configs/ls1021atwr.h | 2 +- include/configs/luan.h | 2 +- include/configs/lwmon5.h | 2 +- include/configs/maxbcm.h | 4 +- include/configs/meesc.h | 4 +- include/configs/minnowmax.h | 2 +- include/configs/mpc5121ads.h | 10 +- include/configs/mx51_efikamx.h | 2 +- include/configs/nas220.h | 8 +- include/configs/origen.h | 2 +- include/configs/otc570.h | 4 +- include/configs/pm9261.h | 6 +- include/configs/pm9263.h | 4 +- include/configs/pm9g45.h | 4 +- include/configs/pr1.h | 4 +- include/configs/qong.h | 4 +- include/configs/s5pc210_universal.h | 6 +- include/configs/sama5d3_xplained.h | 4 +- include/configs/sama5d3xek.h | 4 +- include/configs/sama5d4_xplained.h | 4 +- include/configs/sama5d4ek.h | 4 +- include/configs/sbc35_a9g20.h | 4 +- include/configs/siemens-am33x-common.h | 4 +- include/configs/smdkc100.h | 2 +- include/configs/snapper9260.h | 6 +- include/configs/stamp9g20.h | 4 +- include/configs/taurus.h | 6 +- include/configs/tegra-common.h | 2 +- include/configs/tny_a9260.h | 4 +- include/configs/trats.h | 6 +- include/configs/trats2.h | 6 +- include/configs/tricorder.h | 6 +- include/configs/tx25.h | 2 +- include/configs/usb_a9263.h | 4 +- include/configs/vct.h | 2 +- include/configs/versatile.h | 2 +- include/configs/vexpress_common.h | 14 +- include/configs/vf610twr.h | 2 +- include/configs/vl_ma2sc.h | 4 +- include/configs/x86-chromebook.h | 2 +- include/configs/xpedite517x.h | 4 +- include/configs/xpedite520x.h | 4 +- include/dialog_pmic.h | 20 +- include/dm/device.h | 12 +- include/dm/uclass.h | 2 +- include/dp83848.h | 96 +-- include/dt-bindings/pinctrl/am33xx.h | 6 +- include/dt-bindings/pinctrl/omap.h | 22 +- include/dwmmc.h | 90 +-- include/ec_commands.h | 46 +- include/faraday/ftahbc020s.h | 6 +- include/faraday/ftpci100.h | 8 +- include/faraday/ftpmu010.h | 86 +-- include/faraday/ftsdc010.h | 146 ++-- include/faraday/ftsdmc020.h | 22 +- include/faraday/ftsdmc021.h | 24 +- include/faraday/ftsmc020.h | 12 +- include/faraday/fttmr010.h | 42 +- include/faraday/ftwdt010_wdt.h | 12 +- include/fsl_ddr.h | 14 +- include/fsl_ddr_sdram.h | 2 +- include/fsl_debug_server.h | 2 +- include/fsl_memac.h | 20 +- include/fsl_pmic.h | 32 +- include/fsl_usb.h | 28 +- include/i2s.h | 4 +- include/libata.h | 208 +++--- include/linux/bitops.h | 1 + include/linux/edd.h | 24 +- include/linux/ethtool.h | 136 ++-- include/linux/mtd/fsmc_nand.h | 24 +- include/linux/mtd/nand.h | 22 +- include/linux/mtd/onenand_regs.h | 58 +- include/linux/mtd/samsung_onenand.h | 30 +- include/linux/screen_info.h | 2 +- include/linux/serial_reg.h | 36 +- include/linux/usb/cdc.h | 10 +- include/linux/usb/ch9.h | 52 +- include/linux/usb/dwc3.h | 22 +- include/linux/usb/xhci-omap.h | 40 +- include/mc13783.h | 96 +-- include/mc13892.h | 122 ++-- include/mc34704.h | 8 +- include/mmc.h | 62 +- include/mpc83xx.h | 38 +- include/mvebu_mmc.h | 178 ++--- include/nand.h | 4 +- include/netdev.h | 4 +- include/palmas.h | 22 +- include/power/as3722.h | 4 +- include/power/max17042_fg.h | 2 +- include/power/max77686_pmic.h | 10 +- include/power/max77693_fg.h | 2 +- include/power/max77693_pmic.h | 4 +- include/power/max8997_pmic.h | 26 +- include/power/max8998_pmic.h | 12 +- include/radeon.h | 262 +++---- include/sdhci.h | 18 +- include/search.h | 18 +- include/sh_pfc.h | 4 +- include/spi.h | 22 +- include/tsec.h | 6 +- include/tsi108.h | 8 +- include/twl4030.h | 36 +- include/twl6030.h | 70 +- include/usb/ehci-fsl.h | 92 +-- include/usb/fotg210.h | 264 +++---- include/usb/fusbh200.h | 26 +- include/usb/s3c_udc.h | 2 +- include/usb/ulpi.h | 96 +-- include/zfs/spa.h | 2 +- lib/lzma/LzmaDec.c | 4 +- lib/lzma/Types.h | 2 +- post/drivers/memory.c | 2 +- tools/ifdtool.c | 38 +- tools/mxsimage.c | 4 +- tools/mxsimage.h | 4 +- 773 files changed, 11020 insertions(+), 11019 deletions(-)
arch/arc/lib/cache.c +5 -5
@@ -9,14 +9,14 @@#include <asm/cache.h> /* Bit values in IC_CTRL */ -#define IC_CTRL_CACHE_DISABLE (1 << 0) +#define IC_CTRL_CACHE_DISABLE BIT(0)/* Bit values in DC_CTRL */ -#define DC_CTRL_CACHE_DISABLE (1 << 0) -#define DC_CTRL_INV_MODE_FLUSH (1 << 6) -#define DC_CTRL_FLUSH_STATUS (1 << 8) +#define DC_CTRL_CACHE_DISABLE BIT(0) +#define DC_CTRL_INV_MODE_FLUSH BIT(6) +#define DC_CTRL_FLUSH_STATUS BIT(8)#define CACHE_VER_NUM_MASK 0xF -#define SLC_CTRL_SB (1 << 2) +#define SLC_CTRL_SB BIT(2)int icache_status (void ) {
arch/arc/lib/interrupts.c +2 -2
@@ -9,8 +9,8 @@#include <asm/ptrace.h> /* Bit values in STATUS32 */ -#define E1_MASK (1 << 1)/* Level 1 interrupts enable */ -#define E2_MASK (1 << 2)/* Level 2 interrupts enable */ +#define E1_MASK BIT(1)/* Level 1 interrupts enable */ +#define E2_MASK BIT(2)/* Level 2 interrupts enable */ int interrupt_init (void ) {
arch/arc/lib/timer.c +1 -1
@@ -6,7 +6,7 @@#include <asm/arcregs.h> -#define NH_MODE (1 << 1)/* Disable timer if CPU is halted */ +#define NH_MODE BIT(1)/* Disable timer if CPU is halted */ int timer_init (void ) {
arch/arm/cpu/arm1136/mx31/timer.c +2 -2
@@ -18,8 +18,8 @@#define GPTCNT __REG(TIMER_BASE + 0x24)/* Counter register */ /* General purpose timers bitfields */ -#define GPTCR_SWR (1 << 15)/* Software reset */ -#define GPTCR_FRR (1 << 9)/* Freerun / restart */ +#define GPTCR_SWR BIT(15)/* Software reset */ +#define GPTCR_FRR BIT(9)/* Freerun / restart */ #define GPTCR_CLKSOURCE_32 (4 << 6)/* Clock source */ #define GPTCR_TEN 1/* Timer enable */
arch/arm/cpu/arm1136/mx35/generic.c +4 -4
@@ -261,7 +261,7 @@ unsigned int mxc_get_peri_clock(enum mxc_peri_clock clk)case UART1_BAUD :case UART2_BAUD :case UART3_BAUD : - clk_sel = mpdr3 & (1 <<14 ); + clk_sel = mpdr3 &BIT (14 ); pdf = (mpdr4 >>10 ) &0x3F ; ret_val = ((clk_sel !=0 ) ?mxc_get_main_clock (CPU_CLK ) :decode_pll (readl (&ccm->ppctl),MXC_HCLK )) / (pdf +1 );
@@ -269,7 +269,7 @@ unsigned int mxc_get_peri_clock(enum mxc_peri_clock clk)case SSI1_BAUD : pre_pdf = (mpdr2 >>24 ) &0x7 ; pdf = mpdr2 &0x3F ; - clk_sel = mpdr2 & (1 <<6 ); + clk_sel = mpdr2 &BIT (6 ); ret_val = ((clk_sel !=0 ) ?mxc_get_main_clock (CPU_CLK ) :decode_pll (readl (&ccm->ppctl),MXC_HCLK )) / ((pre_pdf +1 ) * (pdf +1 ));
@@ -277,13 +277,13 @@ unsigned int mxc_get_peri_clock(enum mxc_peri_clock clk)case SSI2_BAUD : pre_pdf = (mpdr2 >>27 ) &0x7 ; pdf = (mpdr2 >>8 ) &0x3F ; - clk_sel = mpdr2 & (1 <<6 ); + clk_sel = mpdr2 &BIT (6 ); ret_val = ((clk_sel !=0 ) ?mxc_get_main_clock (CPU_CLK ) :decode_pll (readl (&ccm->ppctl),MXC_HCLK )) / ((pre_pdf +1 ) * (pdf +1 ));break ;case CSI_BAUD : - clk_sel = mpdr2 & (1 <<7 ); + clk_sel = mpdr2 &BIT (7 ); pdf = (mpdr2 >>16 ) &0x3F ; ret_val = ((clk_sel !=0 ) ?mxc_get_main_clock (CPU_CLK ) :decode_pll (readl (&ccm->ppctl),MXC_HCLK )) / (pdf +1 );
arch/arm/cpu/arm920t/ep93xx/timer.c +2 -2
@@ -18,8 +18,8 @@#include <asm/io.h> #include <div64.h> -#define TIMER_CLKSEL (1 << 3) -#define TIMER_ENABLE (1 << 7) +#define TIMER_CLKSEL BIT(3) +#define TIMER_ENABLE BIT(7)#define TIMER_FREQ 508469/* ticks / second */ #define TIMER_MAX_VAL 0xFFFFFFFF
arch/arm/cpu/arm920t/s3c24x0/speed.c +2 -2
@@ -74,10 +74,10 @@ ulong get_HCLK(void)case 2 :return get_FCLK () /2 ;case 4 : -return (readl (&clk_power->camdivn) & (1 <<9 )) ? +return (readl (&clk_power->camdivn) &BIT (9 )) ?get_FCLK () /8 :get_FCLK () /4 ;case 6 : -return (readl (&clk_power->camdivn) & (1 <<8 )) ? +return (readl (&clk_power->camdivn) &BIT (8 )) ? get_FCLK() / 6 : get_FCLK() / 3; }#else
arch/arm/cpu/arm926ejs/mx25/generic.c +1 -1
@@ -205,7 +205,7 @@ int cpu_eth_init(bd_t *bis)ulong val; val =readl (&ccm->cgr0); - val |= (1 <<23 ); + val |=BIT (23 );writel (val, &ccm->cgr0);return fecmxc_initialize (bis); }
arch/arm/cpu/arm926ejs/mx27/timer.c +2 -2
@@ -22,8 +22,8 @@#include <asm/arch/imx-regs.h> /* General purpose timers bitfields */ -#define GPTCR_SWR (1 << 15)/* Software reset */ -#define GPTCR_FRR (1 << 8)/* Freerun / restart */ +#define GPTCR_SWR BIT(15)/* Software reset */ +#define GPTCR_FRR BIT(8)/* Freerun / restart */ #define GPTCR_CLKSOURCE_32 (4 << 1)/* Clock source */ #define GPTCR_TEN 1/* Timer enable */
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c +3 -3
@@ -58,7 +58,7 @@ void mxs_lradc_enable_batt_measurement(void)writel (LRADC_CONVERSION_AUTOMATIC , ®s->hw_lradc_conversion_set);/* Configure the channel. */ -writel ((1 <<7 ) <<LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET , +writel (BIT (7 ) <<LRADC_CTRL2_DIVIDE_BY_TWO_OFFSET , ®s->hw_lradc_ctrl2_clr);writel (0xffffffff , ®s->hw_lradc_ch7_clr);clrbits_le32 (®s->hw_lradc_ch7,LRADC_CH_NUM_SAMPLES_MASK );
@@ -68,8 +68,8 @@ void mxs_lradc_enable_batt_measurement(void)writel (1 <<7 , ®s->hw_lradc_ctrl0_set);/* Start the channel sampling. */ -writel (((1 <<7 ) <<LRADC_DELAY_TRIGGER_LRADCS_OFFSET ) | - ((1 <<3 ) <<LRADC_DELAY_TRIGGER_DELAYS_OFFSET ) | +writel ((BIT (7 ) <<LRADC_DELAY_TRIGGER_LRADCS_OFFSET ) | + (BIT (3 ) <<LRADC_DELAY_TRIGGER_DELAYS_OFFSET ) |100 , ®s->hw_lradc_delay3);writel (0xffffffff , ®s->hw_lradc_ch7_clr);
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +4 -4
@@ -135,7 +135,7 @@ static void initialize_dram_values(void)* Enable tRAS lockout in HW_DRAM_CTL08 ; it must be the last * element to be set */ - writel((1 << 24), MXS_DRAM_BASE + (4 * 8)); + writel(BIT(24), MXS_DRAM_BASE + (4 * 8)); }#endif
@@ -282,7 +282,7 @@ static void mx23_mem_init(void)*/ /* Clear START and SREFRESH bit from DRAM_CTL8 */ -clrbits_le32 (MXS_DRAM_BASE +0x20 , (1 <<16 ) | (1 <<8 )); +clrbits_le32 (MXS_DRAM_BASE +0x20 ,BIT (16 ) |BIT (8 ));initialize_dram_values ();
@@ -293,7 +293,7 @@ static void mx23_mem_init(void)/* Wait for EMI_STAT bit DRAM_HALTED */ for (;;) { -if (!(readl (MXS_EMI_BASE +0x10 ) & (1 <<1 ))) +if (!(readl (MXS_EMI_BASE +0x10 ) &BIT (1 )))break ;early_delay (1000 ); }
@@ -335,7 +335,7 @@ static void mx28_mem_init(void)setbits_le32 (MXS_DRAM_BASE +0x40 ,1 );/* Wait for bit 20 (DRAM init complete) in DRAM_CTL58 */ -while (!(readl (MXS_DRAM_BASE +0xe8 ) & (1 <<20 ))) +while (!(readl (MXS_DRAM_BASE +0xe8 ) &BIT (20 ))) ; }#endif
arch/arm/cpu/armv7/am33xx/board.c +5 -5
@@ -129,10 +129,10 @@ int cpu_mmc_init(bd_t *bis)static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE ;/* USB 2.0 PHY Control */ -#define CM_PHY_PWRDN (1 << 0) -#define CM_PHY_OTG_PWRDN (1 << 1) -#define OTGVDET_EN (1 << 19) -#define OTGSESSENDEN (1 << 20) +#define CM_PHY_PWRDN BIT(0) +#define CM_PHY_OTG_PWRDN BIT(1) +#define OTGVDET_EN BIT(19) +#define OTGSESSENDEN BIT(20)static void am33xx_usb_set_phy_power (u8 on,u32 *reg_addr) {
@@ -241,7 +241,7 @@ static void rtc32k_enable(void)writel (RTC_KICK1R_WE , &rtc->kick1r);/* Enable the RTC 32K OSC by setting bits 3 and 6. */ - writel((1 << 3) | (1 << 6), &rtc->osc); + writel(BIT(3) | BIT(6), &rtc->osc); }#endif
arch/arm/cpu/armv7/am33xx/clock_ti814x.c +15 -15
@@ -51,31 +51,31 @@/* ADPLLJ register values */ #define ADPLLJ_CLKCTRL_HS2 0x00000801/* HS2 mode, TINT2 = 1 */ #define ADPLLJ_CLKCTRL_HS1 0x00001001/* HS1 mode, TINT2 = 1 */ -#define ADPLLJ_CLKCTRL_CLKDCOLDOEN (1 << 29) -#define ADPLLJ_CLKCTRL_IDLE (1 << 23) -#define ADPLLJ_CLKCTRL_CLKOUTEN (1 << 20) -#define ADPLLJ_CLKCTRL_CLKOUTLDOEN (1 << 19) -#define ADPLLJ_CLKCTRL_CLKDCOLDOPWDNZ (1 << 17) -#define ADPLLJ_CLKCTRL_LPMODE (1 << 12) -#define ADPLLJ_CLKCTRL_DRIFTGUARDIAN (1 << 11) -#define ADPLLJ_CLKCTRL_REGM4XEN (1 << 10) -#define ADPLLJ_CLKCTRL_TINITZ (1 << 0) +#define ADPLLJ_CLKCTRL_CLKDCOLDOEN BIT(29) +#define ADPLLJ_CLKCTRL_IDLE BIT(23) +#define ADPLLJ_CLKCTRL_CLKOUTEN BIT(20) +#define ADPLLJ_CLKCTRL_CLKOUTLDOEN BIT(19) +#define ADPLLJ_CLKCTRL_CLKDCOLDOPWDNZ BIT(17) +#define ADPLLJ_CLKCTRL_LPMODE BIT(12) +#define ADPLLJ_CLKCTRL_DRIFTGUARDIAN BIT(11) +#define ADPLLJ_CLKCTRL_REGM4XEN BIT(10) +#define ADPLLJ_CLKCTRL_TINITZ BIT(0)#define ADPLLJ_CLKCTRL_CLKDCO (ADPLLJ_CLKCTRL_CLKDCOLDOEN | \ ADPLLJ_CLKCTRL_CLKOUTEN | \ ADPLLJ_CLKCTRL_CLKOUTLDOEN | \ ADPLLJ_CLKCTRL_CLKDCOLDOPWDNZ) -#define ADPLLJ_STATUS_PHASELOCK (1 << 10) -#define ADPLLJ_STATUS_FREQLOCK (1 << 9) +#define ADPLLJ_STATUS_PHASELOCK BIT(10) +#define ADPLLJ_STATUS_FREQLOCK BIT(9)#define ADPLLJ_STATUS_PHSFRQLOCK (ADPLLJ_STATUS_PHASELOCK | \ ADPLLJ_STATUS_FREQLOCK) -#define ADPLLJ_STATUS_BYPASSACK (1 << 8) -#define ADPLLJ_STATUS_BYPASS (1 << 0) +#define ADPLLJ_STATUS_BYPASSACK BIT(8) +#define ADPLLJ_STATUS_BYPASS BIT(0)#define ADPLLJ_STATUS_BYPASSANDACK (ADPLLJ_STATUS_BYPASSACK | \ ADPLLJ_STATUS_BYPASS) -#define ADPLLJ_TENABLE_ENB (1 << 0) -#define ADPLLJ_TENABLEDIV_ENB (1 << 0) +#define ADPLLJ_TENABLE_ENB BIT(0) +#define ADPLLJ_TENABLEDIV_ENB BIT(0)#define ADPLLJ_M2NDIV_M2SHIFT 16
arch/arm/cpu/armv7/exynos/clock.c +1 -1
@@ -1008,7 +1008,7 @@ static unsigned long exynos5420_get_lcd_clk(void)* 1: SCLK_SPLL */ sel =readl (&clk->src_disp10); - sel &= (1 <<4 ); + sel &=BIT (4 );if (sel) sclk =get_pll_clk (SPLL );
arch/arm/cpu/armv7/exynos/common_setup.h +6 -6
@@ -49,14 +49,14 @@ void sdelay(unsigned long);enum l2_cache_params {CACHE_DATA_RAM_LATENCY_2_CYCLES = (2 <<0 ),CACHE_DATA_RAM_LATENCY_3_CYCLES = (3 <<0 ), -CACHE_DISABLE_CLEAN_EVICT = (1 <<3 ), -CACHE_DATA_RAM_SETUP = (1 <<5 ), +CACHE_DISABLE_CLEAN_EVICT =BIT (3 ), +CACHE_DATA_RAM_SETUP =BIT (5 ),CACHE_TAG_RAM_LATENCY_2_CYCLES = (2 <<6 ),CACHE_TAG_RAM_LATENCY_3_CYCLES = (3 <<6 ), -CACHE_ENABLE_HAZARD_DETECT = (1 <<7 ), -CACHE_TAG_RAM_SETUP = (1 <<9 ), -CACHE_ECC_AND_PARITY = (1 <<21 ), -CACHE_ENABLE_FORCE_L2_LOGIC = (1 <<27 ) +CACHE_ENABLE_HAZARD_DETECT =BIT (7 ), +CACHE_TAG_RAM_SETUP =BIT (9 ), +CACHE_ECC_AND_PARITY =BIT (21 ), +CACHE_ENABLE_FORCE_L2_LOGIC =BIT (27 ) };
arch/arm/cpu/armv7/exynos/exynos4_setup.h +15 -15
@@ -396,12 +396,12 @@/* DMC */ #define DIRECT_CMD_NOP 0x07000000#define DIRECT_CMD_ZQ 0x0a000000 -#define DIRECT_CMD_CHIP1_SHIFT (1 << 20) +#define DIRECT_CMD_CHIP1_SHIFT BIT(20)#define MEM_TIMINGS_MSR_COUNT 4 -#define CTRL_START (1 << 0) -#define CTRL_DLL_ON (1 << 1) -#define AREF_EN (1 << 5) -#define DRV_TYPE (1 << 6) +#define CTRL_START BIT(0) +#define CTRL_DLL_ON BIT(1) +#define AREF_EN BIT(5) +#define DRV_TYPE BIT(6)struct mem_timings {unsigned direct_cmd_msr[MEM_TIMINGS_MSR_COUNT ];
@@ -481,9 +481,9 @@ struct mem_timings { | CTRL_ZQ_FORCE_IMPP | CTRL_DCC)#define ASYNC (0 << 0) -#define CLK_RATIO (1 << 1) -#define DIV_PIPE (1 << 3) -#define AWR_ON (1 << 4) +#define CLK_RATIO BIT(1) +#define DIV_PIPE BIT(3) +#define AWR_ON BIT(4)#define AREF_DISABLE (0 << 5)#define DRV_TYPE_DISABLE (0 << 6)#define CHIP0_NOT_EMPTY (0 << 8)
@@ -503,10 +503,10 @@ struct mem_timings {#define DPWRDN_TYPE (0 << 3)#define TP_DISABLE (0 << 4)#define DSREF_DIABLE (0 << 5) -#define ADD_LAT_PALL (1 << 6) +#define ADD_LAT_PALL BIT(6)#define MEM_TYPE_DDR3 (0x6 << 8)#define MEM_WIDTH_32 (0x2 << 12) -#define NUM_CHIP_2 (1 << 16) +#define NUM_CHIP_2 BIT(16)#define BL_8 (0x3 << 20)#define MEMCONTROL_VAL (CLK_STOP_DISABLE | DPWRDN_DISABLE\ | DPWRDN_TYPE | TP_DISABLE | DSREF_DIABLE\
@@ -517,7 +517,7 @@ struct mem_timings {#define CHIP_BANK_8 (0x3 << 0)#define CHIP_ROW_14 (0x2 << 4)#define CHIP_COL_10 (0x3 << 8) -#define CHIP_MAP_INTERLEAVED (1 << 12) +#define CHIP_MAP_INTERLEAVED BIT(12)#define CHIP_MASK (0xe0 << 16)#ifdef CONFIG_MIU_LINEAR #define CHIP0_BASE (0x40 << 24)
@@ -537,7 +537,7 @@ struct mem_timings {#define CTRL_OFF (0 << 0)#define CTRL_DLL_OFF (0 << 1)#define CTRL_HALF (0 << 2) -#define CTRL_DFDQS (1 << 3) +#define CTRL_DFDQS BIT(3)#define DQS_DELAY (0 << 4)#define CTRL_START_POINT (0x10 << 8)#define CTRL_INC (0x10 << 16)
@@ -548,9 +548,9 @@ struct mem_timings {#define CTRL_SHIFTC (0x6 << 0)#define CTRL_REF (8 << 4) -#define CTRL_SHGATE (1 << 29) -#define TERM_READ_EN (1 << 30) -#define TERM_WRITE_EN (1 << 31) +#define CTRL_SHGATE BIT(29) +#define TERM_READ_EN BIT(30) +#define TERM_WRITE_EN BIT(31)#define CONTROL1_VAL (CTRL_SHIFTC | CTRL_REF | CTRL_SHGATE\ | TERM_READ_EN | TERM_WRITE_EN)
arch/arm/cpu/armv7/exynos/exynos5_setup.h +76 -76
284 lines not on this page · raw message
arch/arm/cpu/armv7/exynos/sec_boot.S +2 -2
@@ -102,7 +102,7 @@ _gic_state: /* Read the current cpu state */ ldr r10, [r0, r7, lsl #2] svc_entry: - tst r10, #(1 << 4) + tst r10, #BIT(4) adrne r0, _switch_addr bne wait_for_addr /* Clear INFORM1 */
@@ -114,7 +114,7 @@ svc_entry: /* Get INFORM0 */ ldrne r1, =(0x10040000 + 0x800) ldrne pc, [r1] - tst r10, #(1 << 0) + tst r10, #BIT(0) ldrne pc, =0x23e00000 adr r0, _hotplug_addr wait_for_addr:
arch/arm/cpu/armv7/exynos/spl_boot.c +1 -1
@@ -151,7 +151,7 @@ static void exynos_spi_copy(unsigned int uboot_size, unsigned int uboot_addr) }for (upto =0 , i =0 ; upto < uboot_size; upto += todo, i++) { - todo =min (uboot_size - upto, (unsigned int )(1 <<15 )); + todo =min (uboot_size - upto, (unsigned int )BIT (15 ));spi_rx_tx (regs, todo, (void *)(uboot_addr), (void *)(SPI_FLASH_UBOOT_POS ), i); }
arch/arm/cpu/armv7/exynos/system.c +2 -2
@@ -42,7 +42,7 @@ static void exynos4_set_system_display(void)* 1: FIMD Bypass */ cfg =readl (&sysreg->display_ctrl); - cfg |= (1 <<1 ); + cfg |=BIT (1 );writel (cfg, &sysreg->display_ctrl); }
@@ -58,7 +58,7 @@ static void exynos5_set_system_display(void)* 1: FIMD Bypass */ cfg =readl (&sysreg->disp1blk_cfg); - cfg |= (1 <<15 ); + cfg |=BIT (15 );writel (cfg, &sysreg->disp1blk_cfg); }
arch/arm/cpu/armv7/ls102xa/cpu.c +4 -4
@@ -38,23 +38,23 @@ DECLARE_GLOBAL_DATA_PTR;#define PMD_ATTRINDX (t) ((t) << 2)/* Section */ -#define PMD_SECT_AF (1 << 10) +#define PMD_SECT_AF BIT(10)#define BLOCK_SIZE_L1 (1UL << 30)#define BLOCK_SIZE_L2 (1UL << 21)/* TTBCR flags */ -#define TTBCR_EAE (1 << 31) +#define TTBCR_EAE BIT(31)#define TTBCR_T0SZ (x) ((x) << 0)#define TTBCR_T1SZ (x) ((x) << 16)#define TTBCR_USING_TTBR0 (TTBCR_T0SZ(0) | TTBCR_T1SZ(0))#define TTBCR_IRGN0_NC (0 << 8) -#define TTBCR_IRGN0_WBWA (1 << 8) +#define TTBCR_IRGN0_WBWA BIT(8)#define TTBCR_IRGN0_WT (2 << 8)#define TTBCR_IRGN0_WBNWA (3 << 8)#define TTBCR_IRGN0_MASK (3 << 8)#define TTBCR_ORGN0_NC (0 << 10) -#define TTBCR_ORGN0_WBWA (1 << 10) +#define TTBCR_ORGN0_WBWA BIT(10)#define TTBCR_ORGN0_WT (2 << 10)#define TTBCR_ORGN0_WBNWA (3 << 10)#define TTBCR_ORGN0_MASK (3 << 10)
arch/arm/cpu/armv7/mx5/lowlevel_init.S +1 -1
@@ -16,7 +16,7 @@ .macro init_arm_erratum /* ARM erratum ID #468414 */ mrc 15, 0, r1, c1, c0, 1 - orr r1, r1, #(1 << 5) /* enable L1NEON bit */ + orr r1, r1, #BIT(5) /* enable L1NEON bit */ mcr 15, 0, r1, c1, c0, 1 .endm
arch/arm/cpu/armv7/mx6/clock.c +2 -2
@@ -675,8 +675,8 @@ int enable_pcie_clock(void)* mx6sx, disable clock INPUT and enable clock OUTPUT. This is important * for PCI express link that is clocked from the i.MX6. */ -#define ANADIG_ANA_MISC1_LVDSCLK1_IBEN (1 << 12) -#define ANADIG_ANA_MISC1_LVDSCLK1_OBEN (1 << 10) +#define ANADIG_ANA_MISC1_LVDSCLK1_IBEN BIT(12) +#define ANADIG_ANA_MISC1_LVDSCLK1_OBEN BIT(10)#define ANADIG_ANA_MISC1_LVDS1_CLK_SEL_MASK 0x0000001F#define ANADIG_ANA_MISC1_LVDS1_CLK_SEL_PCIE_REF 0xa#define ANADIG_ANA_MISC1_LVDS1_CLK_SEL_SATA_REF 0xb
arch/arm/cpu/armv7/mx6/ddr.c +9 -9
@@ -242,7 +242,7 @@ void mx6sdl_dram_iocfg(unsigned width,* section titled MMDC initialization */ #define MR (val, ba, cmd, cs1) \ - ((val << 16) | (1 << 15) | (cmd << 4) | (cs1 << 3) | ba) + ((val << 16) | BIT(15) | (cmd << 4) | (cs1 << 3) | ba)#ifdef CONFIG_MX6SX #define MMDC1 (entry, value) do {} while (0)#else
@@ -460,19 +460,19 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,MMDC1 (mpodtctrl, val);/* complete calibration */ - val = (1 <<11 );/* Force measurement on delay-lines */ + val =BIT (11 );/* Force measurement on delay-lines */ mmdc0->mpmur0 = val;if (sysinfo->dsize >1 )MMDC1 (mpmur0, val);/* Step 1: configuration request */ - mmdc0->mdscr = (u32)(1 <<15 );/* config request */ + mmdc0->mdscr = (u32 )BIT (15 );/* config request */ /* Step 2: Timing configuration */ mmdc0->mdcfg0 = (trfc <<24 ) | (txs <<16 ) | (txp <<13 ) | (txpdll <<9 ) | (tfaw <<4 ) | tcl; mmdc0->mdcfg1 = (trcd <<29 ) | (trp <<26 ) | (trc <<21 ) | - (tras <<16 ) | (1 <<15 )/* trpa */ | + (tras <<16 ) |BIT (15 )/* trpa */ | (twr <<9 ) | (tmrd <<5 ) | tcwl; mmdc0->mdcfg2 = (tdllk <<16 ) | (trtp <<6 ) | (twtr <<3 ) | trrd; mmdc0->mdotc = (taofpd << 27) | (taonpd << 24) | (tanpd << 20) |
@@ -496,7 +496,7 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo, coladdr +=1 ; mmdc0->mdctl = (ddr3_cfg->rowaddr -11 ) <<24 |/* ROW */ (coladdr -9 ) <<20 |/* COL */ - (1 <<19 ) |/* Burst Length = 8 for DDR3 */ +BIT (19 ) |/* Burst Length = 8 for DDR3 */ (sysinfo->dsize <<16 );/* DDR data bus size */ /* Step 6: Perform ZQ calibration */
@@ -506,7 +506,7 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,MMDC1 (mpzqhwctrl, val);/* Step 7: Enable MMDC with desired chip select */ - mmdc0->mdctl |= (1 <<31 ) |/* SDE_0 for CS0 */ + mmdc0->mdctl |=BIT (31 ) |/* SDE_0 for CS0 */ ((sysinfo->ncs ==2 ) ?1 :0 ) <<30 ;/* SDE_1 for CS1 */ /* Step 8: Write Mode Registers to Init DDR3 devices */
@@ -523,11 +523,11 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo, mmdc0->mdscr =MR (val,1 ,3 , cs);/* MR0 */ val = ((tcl -1 ) <<4 ) |/* CAS */ - (1 <<8 ) |/* DLL Reset */ +BIT (8 ) |/* DLL Reset */ ((twr -3 ) <<9 );/* Write Recovery */ mmdc0->mdscr =MR (val,0 ,3 , cs);/* ZQ calibration */ - val = (1 <<10 ); + val =BIT (10 ); mmdc0->mdscr =MR (val,0 ,4 , cs); }
@@ -548,7 +548,7 @@ void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,MMDC1 (mpzqhwctrl, val);/* Step 12: Configure and activate periodic refresh */ - mmdc0->mdref = (1 <<14 ) |/* REF_SEL: Periodic refresh cycle: 32kHz */ + mmdc0->mdref =BIT (14 ) |/* REF_SEL: Periodic refresh cycle: 32kHz */ (7 <<11 );/* REFR: Refresh Rate - 8 refreshes */ /* Step 13: Deassert config request - init complete */
arch/arm/cpu/armv7/mx6/soc.c +1 -1
@@ -405,7 +405,7 @@ void boot_mode_apply(unsigned cfg_val)if (cfg_val) reg |=1 <<28 ;else - reg &= ~(1 <<28 ); + reg &= ~BIT (28 );writel (reg, &psrc->gpr10); }/*
arch/arm/cpu/armv7/omap-common/mem-common.c +1 -1
@@ -64,7 +64,7 @@ void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs *cs, u32 base,writel (gpmc_config[5 ], &cs->config6);/* Enable the config */ writel ((((size &0xF ) <<8 ) | ((base >>24 ) &0x3F ) | - (1 <<6 )), &cs->config7); +BIT (6 )), &cs->config7);sdelay (2000 ); }
arch/arm/cpu/armv7/sunxi/dram_sun4i.c +1 -1
@@ -533,7 +533,7 @@ static void mctl_set_impedance(u32 zq, u32 odt_en)* be related to periodic impedance re-calibration. This particular * magic value is borrowed from the Allwinner boot0 bootloader, and * using it helps to avoid troubles */ -writel ((1 <<24 ) | (1 <<1 ), &dram->zqcr1); +writel (BIT (24 ) |BIT (1 ), &dram->zqcr1);#endif /* Needed at least for sun5i, because it does not self clear there */
arch/arm/cpu/armv7/sunxi/dram_sun6i.c +1 -1
@@ -275,7 +275,7 @@ static void mctl_com_init(struct dram_sun6i_para *para) MCTL_CR_BANK(1) | MCTL_CR_RANK(para->rank), &mctl_com->cr);/* Unknown magic performed by boot0 */ -setbits_le32 (&mctl_com->dbgcr, (1 <<6 )); +setbits_le32 (&mctl_com->dbgcr,BIT (6 ));if (para->chan ==1 ) {/* Shutdown channel 1 */
arch/arm/cpu/armv7/sunxi/psci.S +5 -5
@@ -98,7 +98,7 @@ psci_fiq_enter: add r11, r11, r8 1: ldr r10, [r11, #0x48] - tst r10, #(1 << 2) + tst r10, #BIT(2) bne 2f timer_wait r10, ONE_MS b 1b
@@ -263,7 +263,7 @@ _sunxi_cpu_entry: .globl psci_cpu_off psci_cpu_off: mrc p15, 0, r0, c1, c0, 0 @ SCTLR - bic r0, r0, #(1 << 2) @ Clear C bit + bic r0, r0, #BIT(2) @ Clear C bit mcr p15, 0, r0, c1, c0, 0 @ SCTLR isb dsb
@@ -273,7 +273,7 @@ psci_cpu_off: clrex @ Why??? mrc p15, 0, r0, c1, c0, 1 @ ACTLR - bic r0, r0, #(1 << 6) @ Clear SMP bit + bic r0, r0, #BIT(6) @ Clear SMP bit mcr p15, 0, r0, c1, c0, 1 @ ACTLR isb dsb
@@ -295,7 +295,7 @@ psci_arch_init: movt r4, #(GICD_BASE >> 16) ldr r5, [r4, #GICD_IGROUPRn] - bic r5, r5, #(1 << 15) @ SGI15 as Group-0 + bic r5, r5, #BIT(15) @ SGI15 as Group-0 str r5, [r4, #GICD_IGROUPRn] mov r5, #0 @ Set SGI15 priority to 0
@@ -307,7 +307,7 @@ psci_arch_init: str r5, [r4, #GICC_PMR] @ Be cool with non-secure ldr r5, [r4, #GICC_CTLR] - orr r5, r5, #(1 << 3) @ Switch FIQEn on + orr r5, r5, #BIT(3) @ Switch FIQEn on str r5, [r4, #GICC_CTLR] mrc p15, 0, r5, c1, c1, 0 @ Read SCR
arch/arm/cpu/armv7/sunxi/usbc.c +4 -4
@@ -31,10 +31,10 @@#define SUNXI_USB_CSR 0x404#define SUNXI_USB_PASSBY_EN 1 -#define SUNXI_EHCI_AHB_ICHR8_EN (1 << 10) -#define SUNXI_EHCI_AHB_INCR4_BURST_EN (1 << 9) -#define SUNXI_EHCI_AHB_INCRX_ALIGN_EN (1 << 8) -#define SUNXI_EHCI_ULPI_BYPASS_EN (1 << 0) +#define SUNXI_EHCI_AHB_ICHR8_EN BIT(10) +#define SUNXI_EHCI_AHB_INCR4_BURST_EN BIT(9) +#define SUNXI_EHCI_AHB_INCRX_ALIGN_EN BIT(8) +#define SUNXI_EHCI_ULPI_BYPASS_EN BIT(0) static struct sunxi_usbc_hcd { struct usb_hcd *hcd;
arch/arm/cpu/armv7/u8500/prcmu.c +6 -6
@@ -22,11 +22,11 @@/* CPU mailbox registers */ #define PRCMU_I2C_WRITE (slave) \ - (((slave) << 1) | I2CWRITE | (1 << 6)) + (((slave) << 1) | I2CWRITE | BIT(6))#define PRCMU_I2C_READ (slave) \ - (((slave) << 1) | I2CREAD | (1 << 6)) + (((slave) << 1) | I2CREAD | BIT(6)) -#define I2C_MBOX_BIT (1 << 5) +#define I2C_MBOX_BIT BIT(5)static int prcmu_is_ready (void ) {
@@ -99,7 +99,7 @@ int prcmu_i2c_read(u8 reg, u16 slave)/* prepare the data for mailbox 5 */ writeb (PRCMU_I2C_READ (reg),PRCM_REQ_MB5_I2COPTYPE_REG ); -writeb ((1 <<3 ) |0x0 ,PRCM_REQ_MB5_BIT_FIELDS ); +writeb (BIT (3 ) |0x0 ,PRCM_REQ_MB5_BIT_FIELDS );writeb (slave,PRCM_REQ_MB5_I2CSLAVE );writeb (0 ,PRCM_REQ_MB5_I2CVAL );
@@ -155,7 +155,7 @@ int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data)/* prepare the data for mailbox 5 */ writeb (PRCMU_I2C_WRITE (reg),PRCM_REQ_MB5_I2COPTYPE_REG ); -writeb ((1 <<3 ) |0x0 ,PRCM_REQ_MB5_BIT_FIELDS ); +writeb (BIT (3 ) |0x0 ,PRCM_REQ_MB5_BIT_FIELDS );writeb (slave,PRCM_REQ_MB5_I2CSLAVE );writeb (reg_data,PRCM_REQ_MB5_I2CVAL );
@@ -187,7 +187,7 @@ int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data)void u8500_prcmu_enable (u32 *reg) { -writel (readl (reg) | (1 <<8 ), reg); +writel (readl (reg) |BIT (8 ), reg); }void db8500_prcmu_init (void )
arch/arm/cpu/armv7/zynq/clk.c +1 -1
@@ -19,7 +19,7 @@/* Register bitfield defines */ #define PLLCTRL_FBDIV_MASK 0x7f000#define PLLCTRL_FBDIV_SHIFT 12 -#define PLLCTRL_BPFORCE_MASK (1 << 4) +#define PLLCTRL_BPFORCE_MASK BIT(4)#define PLLCTRL_PWRDWN_MASK 2#define PLLCTRL_PWRDWN_SHIFT 1#define PLLCTRL_RESET_MASK 1
arch/arm/cpu/armv7m/stm32f4/clock.c +18 -18
@@ -12,19 +12,19 @@#include <asm/io.h> #include <asm/arch/stm32.h> -#define RCC_CR_HSION (1 << 0) -#define RCC_CR_HSEON (1 << 16) -#define RCC_CR_HSERDY (1 << 17) -#define RCC_CR_HSEBYP (1 << 18) -#define RCC_CR_CSSON (1 << 19) -#define RCC_CR_PLLON (1 << 24) -#define RCC_CR_PLLRDY (1 << 25) +#define RCC_CR_HSION BIT(0) +#define RCC_CR_HSEON BIT(16) +#define RCC_CR_HSERDY BIT(17) +#define RCC_CR_HSEBYP BIT(18) +#define RCC_CR_CSSON BIT(19) +#define RCC_CR_PLLON BIT(24) +#define RCC_CR_PLLRDY BIT(25)#define RCC_PLLCFGR_PLLM_MASK 0x3F#define RCC_PLLCFGR_PLLN_MASK 0x7FC0#define RCC_PLLCFGR_PLLP_MASK 0x30000#define RCC_PLLCFGR_PLLQ_MASK 0xF000000 -#define RCC_PLLCFGR_PLLSRC (1 << 22) +#define RCC_PLLCFGR_PLLSRC BIT(22)#define RCC_PLLCFGR_PLLN_SHIFT 6#define RCC_PLLCFGR_PLLP_SHIFT 16#define RCC_PLLCFGR_PLLQ_SHIFT 24
@@ -32,14 +32,14 @@#define RCC_CFGR_AHB_PSC_MASK 0xF0#define RCC_CFGR_APB1_PSC_MASK 0x1C00#define RCC_CFGR_APB2_PSC_MASK 0xE000 -#define RCC_CFGR_SW0 (1 << 0) -#define RCC_CFGR_SW1 (1 << 1) +#define RCC_CFGR_SW0 BIT(0) +#define RCC_CFGR_SW1 BIT(1)#define RCC_CFGR_SW_MASK 0x3#define RCC_CFGR_SW_HSI 0#define RCC_CFGR_SW_HSE RCC_CFGR_SW0#define RCC_CFGR_SW_PLL RCC_CFGR_SW1 -#define RCC_CFGR_SWS0 (1 << 2) -#define RCC_CFGR_SWS1 (1 << 3) +#define RCC_CFGR_SWS0 BIT(2) +#define RCC_CFGR_SWS1 BIT(3)#define RCC_CFGR_SWS_MASK 0xC#define RCC_CFGR_SWS_HSI 0#define RCC_CFGR_SWS_HSE RCC_CFGR_SWS0
@@ -48,19 +48,19 @@#define RCC_CFGR_PPRE1_SHIFT 10#define RCC_CFGR_PPRE2_SHIFT 13 -#define RCC_APB1ENR_PWREN (1 << 28) +#define RCC_APB1ENR_PWREN BIT(28) -#define PWR_CR_VOS0 (1 << 14) -#define PWR_CR_VOS1 (1 << 15) +#define PWR_CR_VOS0 BIT(14) +#define PWR_CR_VOS1 BIT(15)#define PWR_CR_VOS_MASK 0xC000#define PWR_CR_VOS_SCALE_MODE_1 (PWR_CR_VOS0 | PWR_CR_VOS1)#define PWR_CR_VOS_SCALE_MODE_2 (PWR_CR_VOS1)#define PWR_CR_VOS_SCALE_MODE_3 (PWR_CR_VOS0)#define FLASH_ACR_WS (n) n -#define FLASH_ACR_PRFTEN (1 << 8) -#define FLASH_ACR_ICEN (1 << 9) -#define FLASH_ACR_DCEN (1 << 10) +#define FLASH_ACR_PRFTEN BIT(8) +#define FLASH_ACR_ICEN BIT(9) +#define FLASH_ACR_DCEN BIT(10)struct pll_psc {u8 pll_m;
arch/arm/cpu/armv7m/stm32f4/timer.c +3 -3
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;#define STM32_TIM2_BASE (STM32_APB1PERIPH_BASE + 0x0000) -#define RCC_APB1ENR_TIM2EN (1 << 0) +#define RCC_APB1ENR_TIM2EN BIT(0)struct stm32_tim2_5 {u32 cr1;
@@ -40,9 +40,9 @@ struct stm32_tim2_5 {u32 or; }; -#define TIM_CR1_CEN (1 << 0) +#define TIM_CR1_CEN BIT(0) -#define TIM_EGR_UG (1 << 0) +#define TIM_EGR_UG BIT(0)int timer_init (void ) {
arch/arm/imx-common/misc.c +2 -2
@@ -13,8 +13,8 @@/* 1 second delay should be plenty of time for block reset. */ #define RESET_MAX_TIMEOUT 1000000 -#define MXS_BLOCK_SFTRST (1 << 31) -#define MXS_BLOCK_CLKGATE (1 << 30) +#define MXS_BLOCK_SFTRST BIT(31) +#define MXS_BLOCK_CLKGATE BIT(30)int mxs_wait_mask_set (struct mxs_register_32 *reg,uint32_t mask,unsigned int timeout)
arch/arm/imx-common/spl.c +1 -1
@@ -18,7 +18,7 @@u32 spl_boot_device (void ) {struct src *psrc = (struct src *)SRC_BASE_ADDR ; -unsigned int gpr10_boot =readl (&psrc->gpr10) & (1 <<28 ); +unsigned int gpr10_boot =readl (&psrc->gpr10) &BIT (28 );unsigned reg = gpr10_boot ?readl (&psrc->gpr9) :readl (&psrc->sbmr1);/* BOOT_CFG1[7:4] - see IMX6DQRM Table 8-8 */
arch/arm/imx-common/timer.c +4 -4
@@ -26,12 +26,12 @@ struct mxc_gpt {static struct mxc_gpt *cur_gpt = (struct mxc_gpt *)GPT1_BASE_ADDR ;/* General purpose timers bitfields */ -#define GPTCR_SWR (1 << 15)/* Software reset */ -#define GPTCR_24MEN (1 << 10)/* Enable 24MHz clock input */ -#define GPTCR_FRR (1 << 9)/* Freerun / restart */ +#define GPTCR_SWR BIT(15)/* Software reset */ +#define GPTCR_24MEN BIT(10)/* Enable 24MHz clock input */ +#define GPTCR_FRR BIT(9)/* Freerun / restart */ #define GPTCR_CLKSOURCE_32 (4 << 6)/* Clock source 32khz */ #define GPTCR_CLKSOURCE_OSC (5 << 6)/* Clock source OSC */ -#define GPTCR_CLKSOURCE_PRE (1 << 6)/* Clock source PRECLK */ +#define GPTCR_CLKSOURCE_PRE BIT(6)/* Clock source PRECLK */ #define GPTCR_CLKSOURCE_MASK (0x7 << 6)#define GPTCR_TEN 1/* Timer enable */
arch/arm/include/asm/arch-am33xx/clock.h +5 -5
@@ -43,15 +43,15 @@/* CM_CLKMODE_DPLL */ #define CM_CLKMODE_DPLL_SSC_EN_SHIFT 12 -#define CM_CLKMODE_DPLL_SSC_EN_MASK (1 << 12) +#define CM_CLKMODE_DPLL_SSC_EN_MASK BIT(12)#define CM_CLKMODE_DPLL_REGM4XEN_SHIFT 11 -#define CM_CLKMODE_DPLL_REGM4XEN_MASK (1 << 11) +#define CM_CLKMODE_DPLL_REGM4XEN_MASK BIT(11)#define CM_CLKMODE_DPLL_LPMODE_EN_SHIFT 10 -#define CM_CLKMODE_DPLL_LPMODE_EN_MASK (1 << 10) +#define CM_CLKMODE_DPLL_LPMODE_EN_MASK BIT(10)#define CM_CLKMODE_DPLL_RELOCK_RAMP_EN_SHIFT 9 -#define CM_CLKMODE_DPLL_RELOCK_RAMP_EN_MASK (1 << 9) +#define CM_CLKMODE_DPLL_RELOCK_RAMP_EN_MASK BIT(9)#define CM_CLKMODE_DPLL_DRIFTGUARD_EN_SHIFT 8 -#define CM_CLKMODE_DPLL_DRIFTGUARD_EN_MASK (1 << 8) +#define CM_CLKMODE_DPLL_DRIFTGUARD_EN_MASK BIT(8)#define CM_CLKMODE_DPLL_RAMP_RATE_SHIFT 5#define CM_CLKMODE_DPLL_RAMP_RATE_MASK (0x7 << 5)#define CM_CLKMODE_DPLL_EN_SHIFT 0
arch/arm/include/asm/arch-am33xx/gpio.h +1 -1
@@ -17,7 +17,7 @@/* GPIO CTRL register */ #define GPIO_CTRL_DISABLEMODULE_SHIFT 0 -#define GPIO_CTRL_DISABLEMODULE_MASK (1 << 0) +#define GPIO_CTRL_DISABLEMODULE_MASK BIT(0)#define GPIO_CTRL_ENABLEMODULE GPIO_CTRL_DISABLEMODULE_MASK/* GPIO OUTPUT ENABLE register */
arch/arm/include/asm/arch-am33xx/hardware_am43xx.h +6 -6
@@ -73,20 +73,20 @@/* USB Clock Control */ #define PRM_PER_USB_OTG_SS0_CLKCTRL (CM_PER + 0x260)#define PRM_PER_USB_OTG_SS1_CLKCTRL (CM_PER + 0x268) -#define USBOTGSSX_CLKCTRL_MODULE_EN (1 << 1) -#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8) +#define USBOTGSSX_CLKCTRL_MODULE_EN BIT(1) +#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 BIT(8)#define PRM_PER_USBPHYOCP2SCP0_CLKCTRL (CM_PER + 0x5b8)#define PRM_PER_USBPHYOCP2SCP1_CLKCTRL (CM_PER + 0x5c0) -#define USBPHYOCPSCP_MODULE_EN (1 << 1) +#define USBPHYOCPSCP_MODULE_EN BIT(1)#define CM_DEVICE_INST 0x44df4100#define PRM_DEVICE_INST 0x44df4000 -#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8) -#define USBPHY0_CLKCTRL_OPTFCLKEN_CLK32K (1 << 8) +#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 BIT(8) +#define USBPHY0_CLKCTRL_OPTFCLKEN_CLK32K BIT(8)/* Control status register */ -#define CTRL_CRYSTAL_FREQ_SRC_MASK (1 << 31) +#define CTRL_CRYSTAL_FREQ_SRC_MASK BIT(31)#define CTRL_CRYSTAL_FREQ_SRC_SHIFT 31#define CTRL_CRYSTAL_FREQ_SELECTION_MASK (0x3 << 29)#define CTRL_CRYSTAL_FREQ_SELECTION_SHIFT 29
arch/arm/include/asm/arch-armada100/armada100.h +2 -2
@@ -32,8 +32,8 @@#define USB_SPH_AXI_RST 0x02/* MPMU Clocks */ -#define APB2_26M_EN (1 << 20) -#define AP_26M (1 << 4) +#define APB2_26M_EN BIT(20) +#define AP_26M BIT(4)/* Register Base Addresses */ #define ARMD1_DRAM_BASE 0xB0000000
arch/arm/include/asm/arch-armada100/config.h +1 -1
@@ -24,7 +24,7 @@#define CONFIG_MARVELL_MFP /* Enable mvmfp driver */ #define MV_MFPR_BASE ARMD1_MFPR_BASE#define MV_UART_CONSOLE_BASE ARMD1_UART1_BASE -#define CONFIG_SYS_NS16550_IER (1 << 6)/* Bit 6 in UART_IER register +#define CONFIG_SYS_NS16550_IER BIT(6)/* Bit 6 in UART_IER register represents UART Unit Enable */ /* * I2C definition
arch/arm/include/asm/arch-armada100/spi.h +16 -16
@@ -41,19 +41,19 @@ struct ssp_reg {#define TX_THRESH_DEF 8#define TIMEOUT_DEF 1000 -#define SSCR1_RIE (1 << 0)/* Receive FIFO Interrupt Enable */ -#define SSCR1_TIE (1 << 1)/* Transmit FIFO Interrupt Enable */ -#define SSCR1_LBM (1 << 2)/* Loop-Back Mode */ -#define SSCR1_SPO (1 << 3)/* Motorola SPI SSPSCLK polarity +#define SSCR1_RIE BIT(0)/* Receive FIFO Interrupt Enable */ +#define SSCR1_TIE BIT(1)/* Transmit FIFO Interrupt Enable */ +#define SSCR1_LBM BIT(2)/* Loop-Back Mode */ +#define SSCR1_SPO BIT(3)/* Motorola SPI SSPSCLK polarity setting */ -#define SSCR1_SPH (1 << 4)/* Motorola SPI SSPSCLK phase setting */ -#define SSCR1_MWDS (1 << 5)/* Microwire Transmit Data Size */ +#define SSCR1_SPH BIT(4)/* Motorola SPI SSPSCLK phase setting */ +#define SSCR1_MWDS BIT(5)/* Microwire Transmit Data Size */ #define SSCR1_TFT 0x03c0/* Transmit FIFO Threshold (mask) */ #define SSCR1_RFT 0x3c00/* Receive FIFO Threshold (mask) */ #define SSCR1_TXTRESH (x) ((x - 1) << 6)/* level [1..16] */ #define SSCR1_RXTRESH (x) ((x - 1) << 10)/* level [1..16] */ -#define SSCR1_TINTE (1 << 19)/* Receiver Time-out +#define SSCR1_TINTE BIT(19)/* Receiver Time-out Interrupt enable */ #define SSCR0_DSS 0x0f/* Data Size Select (mask) */
@@ -64,16 +64,16 @@ struct ssp_reg {#define SSCR0_TI (0x1 << 4)/* TI's Synchronous Serial Protocol (SSP) */ #define SSCR0_NATIONAL (0x2 << 4)/* National Microwire */ -#define SSCR0_ECS (1 << 6)/* External clock select */ -#define SSCR0_SSE (1 << 7)/* Synchronous Serial Port +#define SSCR0_ECS BIT(6)/* External clock select */ +#define SSCR0_SSE BIT(7)/* Synchronous Serial Port Enable */ -#define SSSR_TNF (1 << 2)/* Transmit FIFO Not Full */ -#define SSSR_RNE (1 << 3)/* Receive FIFO Not Empty */ -#define SSSR_BSY (1 << 4)/* SSP Busy */ -#define SSSR_TFS (1 << 5)/* Transmit FIFO Service Request */ -#define SSSR_RFS (1 << 6)/* Receive FIFO Service Request */ -#define SSSR_ROR (1 << 7)/* Receive FIFO Overrun */ -#define SSSR_TINT (1 << 19)/* Receiver Time-out Interrupt */ +#define SSSR_TNF BIT(2)/* Transmit FIFO Not Full */ +#define SSSR_RNE BIT(3)/* Receive FIFO Not Empty */ +#define SSSR_BSY BIT(4)/* SSP Busy */ +#define SSSR_TFS BIT(5)/* Transmit FIFO Service Request */ +#define SSSR_RFS BIT(6)/* Receive FIFO Service Request */ +#define SSSR_ROR BIT(7)/* Receive FIFO Overrun */ +#define SSSR_TINT BIT(19)/* Receiver Time-out Interrupt */ #endif /* __ARMADA100_SPI_H_ */
arch/arm/include/asm/arch-armada100/utmi-armada100.h +3 -3
@@ -15,7 +15,7 @@#define UTMI_PHY_BASE 0xD4206000/* utmi_ctrl - bits */ -#define INPKT_DELAY_SOF (1 << 28) +#define INPKT_DELAY_SOF BIT(28)#define PLL_PWR_UP 2#define PHY_PWR_UP 1
@@ -25,7 +25,7 @@#define PLL_REFDIV_MASK 0x0000000F#define PLL_REFDIV 0#define PLL_READY 0x800000 -#define VCOCAL_START (1 << 21) +#define VCOCAL_START BIT(21)#define N_DIVIDER 0xEE#define M_DIVIDER 0x0B
@@ -33,7 +33,7 @@/* utmi_tx - bits */ #define CK60_PHSEL 17#define PHSEL_VAL 0x4 -#define RCAL_START (1 << 12) +#define RCAL_START BIT(12)/* * USB PHY registers
arch/arm/include/asm/arch-armv7/sysctrl.h +4 -4
@@ -8,10 +8,10 @@#define _SYSCTRL_H_/* System controller (SP810) register definitions */ -#define SP810_TIMER0_ENSEL (1 << 15) -#define SP810_TIMER1_ENSEL (1 << 17) -#define SP810_TIMER2_ENSEL (1 << 19) -#define SP810_TIMER3_ENSEL (1 << 21) +#define SP810_TIMER0_ENSEL BIT(15) +#define SP810_TIMER1_ENSEL BIT(17) +#define SP810_TIMER2_ENSEL BIT(19) +#define SP810_TIMER3_ENSEL BIT(21)struct sysctrl {u32 scctrl;/* 0x000 */
arch/arm/include/asm/arch-armv7/systimer.h +4 -4
@@ -12,10 +12,10 @@#define SYSHZ_CLOCK 1000000/* Timers -> 1Mhz */ #define SYSTIMER_RELOAD 0xFFFFFFFF -#define SYSTIMER_EN (1 << 7) -#define SYSTIMER_32BIT (1 << 1) -#define SYSTIMER_PRESC_16 (1 << 2) -#define SYSTIMER_PRESC_256 (1 << 3) +#define SYSTIMER_EN BIT(7) +#define SYSTIMER_32BIT BIT(1) +#define SYSTIMER_PRESC_16 BIT(2) +#define SYSTIMER_PRESC_256 BIT(3)struct systimer {u32 timer0load;/* 0x00 */
arch/arm/include/asm/arch-ep93xx/ep93xx.h +83 -83
219 lines not on this page · raw message
arch/arm/include/asm/arch-exynos/dmc.h +3 -3
@@ -450,7 +450,7 @@ enum mem_manuf {#define CONCONTROL_RD_FETCH_SHIFT 12#define CONCONTROL_RD_FETCH_MASK (0x7 << CONCONTROL_RD_FETCH_SHIFT)#define CONCONTROL_AREF_EN_SHIFT 5 -#define CONCONTROL_UPDATE_MODE (1 << 3) +#define CONCONTROL_UPDATE_MODE BIT(3)/* PRECHCONFIG register field */ #define PRECHCONFIG_TP_CNT_SHIFT 24
@@ -469,7 +469,7 @@ enum mem_manuf {#define PHY_CON1_RDLVL_RDDATA_ADJ_SHIFT 0/* PHY_CON4 rgister fields */ -#define PHY_CON10_CTRL_OFFSETR3 (1 << 24) +#define PHY_CON10_CTRL_OFFSETR3 BIT(24)/* PHY_CON12 register fields */ #define PHY_CON12_CTRL_START_POINT_SHIFT 24
@@ -488,7 +488,7 @@ enum mem_manuf {#define PHY_CON16_ZQ_MODE_TERM_SHIFT 21#define PHY_CON16_ZQ_MODE_TERM_MASK (0x7 << PHY_CON16_ZQ_MODE_TERM_SHIFT) -#define PHY_CON16_ZQ_MODE_NOTERM_MASK (1 << 19) +#define PHY_CON16_ZQ_MODE_NOTERM_MASK BIT(19)/* PHY_CON42 register fields */ #define PHY_CON42_CTRL_BSTLEN_SHIFT 8
arch/arm/include/asm/arch-exynos/dsim.h +12 -12
@@ -45,13 +45,13 @@ struct exynos_mipi_dsim {*/ /* DSIM_STATUS */ #define DSIM_STOP_STATE_DAT (x) (((x) & 0xf) << 0) -#define DSIM_STOP_STATE_CLK (1 << 8) -#define DSIM_TX_READY_HS_CLK (1 << 10) -#define DSIM_PLL_STABLE (1 << 31) +#define DSIM_STOP_STATE_CLK BIT(8) +#define DSIM_TX_READY_HS_CLK BIT(10) +#define DSIM_PLL_STABLE BIT(31)/* DSIM_SWRST */ -#define DSIM_FUNCRST (1 << 16) -#define DSIM_SWRST (1 << 0) +#define DSIM_FUNCRST BIT(16) +#define DSIM_SWRST BIT(0)/* EXYNOS_DSIM_TIMEOUT */ #define DSIM_LPDR_TOUT_SHIFT (0)
@@ -100,7 +100,7 @@ struct exynos_mipi_dsim {#define DSIM_FORCE_STOP_STATE_SHIFT (20)/* EXYNOS_DSIM_MDRESOL */ -#define DSIM_MAIN_STAND_BY (1 << 31) +#define DSIM_MAIN_STAND_BY BIT(31)#define DSIM_MAIN_VRESOL (x) (((x) & 0x7ff) << 16)#define DSIM_MAIN_HRESOL (x) (((x) & 0X7ff) << 0)
@@ -133,15 +133,15 @@ struct exynos_mipi_dsim {#define DSIM_SUB_HRESOL_MASK ((0x7ff) << DSIM_SUB_HRESOL_SHIFT)/* EXYNOS_DSIM_INTSRC */ -#define INTSRC_FRAME_DONE (1 << 24) -#define INTSRC_PLL_STABLE (1 << 31) -#define INTSRC_SWRST_RELEASE (1 << 30) +#define INTSRC_FRAME_DONE BIT(24) +#define INTSRC_PLL_STABLE BIT(31) +#define INTSRC_SWRST_RELEASE BIT(30)/* EXYNOS_DSIM_INTMSK */ -#define INTMSK_FRAME_DONE (1 << 24) +#define INTMSK_FRAME_DONE BIT(24)/* EXYNOS_DSIM_FIFOCTRL */ -#define SFR_HEADER_EMPTY (1 << 22) +#define SFR_HEADER_EMPTY BIT(22)/* EXYNOS_DSIM_PKTHDR */ #define DSIM_PKTHDR_DI (x) (((x) & 0x3f) << 0)
@@ -151,7 +151,7 @@ struct exynos_mipi_dsim {/* EXYNOS_DSIM_PHYACCHR */ #define DSIM_AFC_CTL (x) (((x) & 0x7) << 5)#define DSIM_AFC_CTL_SHIFT (5) -#define DSIM_AFC_EN (1 << 14) +#define DSIM_AFC_EN BIT(14)/* EXYNOS_DSIM_PHYACCHR1 */ #define DSIM_DPDN_SWAP_DATA_SHIFT (0)
arch/arm/include/asm/arch-exynos/ehci.h +13 -13
@@ -19,22 +19,22 @@#define RSTCON_HOSTPHY_SWRST (0xf << 3)#define RSTCON_SWRST (0x1 << 0) -#define HOST_CTRL0_PHYSWRSTALL (1 << 31) -#define HOST_CTRL0_COMMONON_N (1 << 9) -#define HOST_CTRL0_SIDDQ (1 << 6) -#define HOST_CTRL0_FORCESLEEP (1 << 5) -#define HOST_CTRL0_FORCESUSPEND (1 << 4) -#define HOST_CTRL0_WORDINTERFACE (1 << 3) -#define HOST_CTRL0_UTMISWRST (1 << 2) -#define HOST_CTRL0_LINKSWRST (1 << 1) -#define HOST_CTRL0_PHYSWRST (1 << 0) +#define HOST_CTRL0_PHYSWRSTALL BIT(31) +#define HOST_CTRL0_COMMONON_N BIT(9) +#define HOST_CTRL0_SIDDQ BIT(6) +#define HOST_CTRL0_FORCESLEEP BIT(5) +#define HOST_CTRL0_FORCESUSPEND BIT(4) +#define HOST_CTRL0_WORDINTERFACE BIT(3) +#define HOST_CTRL0_UTMISWRST BIT(2) +#define HOST_CTRL0_LINKSWRST BIT(1) +#define HOST_CTRL0_PHYSWRST BIT(0)#define HOST_CTRL0_FSEL_MASK (7 << 16) -#define EHCICTRL_ENAINCRXALIGN (1 << 29) -#define EHCICTRL_ENAINCR4 (1 << 28) -#define EHCICTRL_ENAINCR8 (1 << 27) -#define EHCICTRL_ENAINCR16 (1 << 26) +#define EHCICTRL_ENAINCRXALIGN BIT(29) +#define EHCICTRL_ENAINCR4 BIT(28) +#define EHCICTRL_ENAINCR8 BIT(27) +#define EHCICTRL_ENAINCR16 BIT(26)#define HSIC_CTRL_REFCLKSEL (0x2)#define HSIC_CTRL_REFCLKSEL_MASK (0x3)
arch/arm/include/asm/arch-exynos/fb.h +83 -83
290 lines not on this page · raw message
arch/arm/include/asm/arch-exynos/i2s-regs.h +14 -14
@@ -8,10 +8,10 @@#ifndef __I2S_REGS_H__#define __I2S_REGS_H__ -#define CON_RESET (1 << 31) -#define CON_TXFIFO_FULL (1 << 8) -#define CON_TXCH_PAUSE (1 << 4) -#define CON_ACTIVE (1 << 0) +#define CON_RESET BIT(31) +#define CON_TXFIFO_FULL BIT(8) +#define CON_TXCH_PAUSE BIT(4) +#define CON_ACTIVE BIT(0)#define MOD_OP_CLK (3 << 30)#define MOD_BLCP_SHIFT 24
@@ -21,36 +21,36 @@#define MOD_BLCP_MASK (3 << MOD_BLCP_SHIFT)#define MOD_BLC_16BIT (0 << 13) -#define MOD_BLC_8BIT (1 << 13) +#define MOD_BLC_8BIT BIT(13)#define MOD_BLC_24BIT (2 << 13)#define MOD_BLC_MASK (3 << 13) -#define MOD_SLAVE (1 << 11) +#define MOD_SLAVE BIT(11)#define MOD_RCLKSRC (0 << 10)#define MOD_MASK (3 << 8)#define MOD_LR_LLOW (0 << 7) -#define MOD_LR_RLOW (1 << 7) +#define MOD_LR_RLOW BIT(7)#define MOD_SDF_IIS (0 << 5) -#define MOD_SDF_MSB (1 << 5) +#define MOD_SDF_MSB BIT(5)#define MOD_SDF_LSB (2 << 5)#define MOD_SDF_MASK (3 << 5)#define MOD_RCLK_256FS (0 << 3) -#define MOD_RCLK_512FS (1 << 3) +#define MOD_RCLK_512FS BIT(3)#define MOD_RCLK_384FS (2 << 3)#define MOD_RCLK_768FS (3 << 3)#define MOD_RCLK_MASK (3 << 3)#define MOD_BCLK_32FS (0 << 1) -#define MOD_BCLK_48FS (1 << 1) +#define MOD_BCLK_48FS BIT(1)#define MOD_BCLK_16FS (2 << 1)#define MOD_BCLK_24FS (3 << 1)#define MOD_BCLK_MASK (3 << 1) -#define MOD_CDCLKCON (1 << 12) +#define MOD_CDCLKCON BIT(12) -#define FIC_TXFLUSH (1 << 15) -#define FIC_RXFLUSH (1 << 7) +#define FIC_TXFLUSH BIT(15) +#define FIC_RXFLUSH BIT(7) -#define PSREN (1 << 15) +#define PSREN BIT(15)#define PSVAL (3 << 8)#endif /* __I2S_REGS_H__ */
arch/arm/include/asm/arch-exynos/mmc.h +20 -20
@@ -14,10 +14,10 @@#define SDHCI_CONTROL3 0x84#define SDHCI_CONTROL4 0x8C -#define SDHCI_CTRL2_ENSTAASYNCCLR (1 << 31) -#define SDHCI_CTRL2_ENCMDCNFMSK (1 << 30) -#define SDHCI_CTRL2_CDINVRXD3 (1 << 29) -#define SDHCI_CTRL2_SLCARDOUT (1 << 28) +#define SDHCI_CTRL2_ENSTAASYNCCLR BIT(31) +#define SDHCI_CTRL2_ENCMDCNFMSK BIT(30) +#define SDHCI_CTRL2_CDINVRXD3 BIT(29) +#define SDHCI_CTRL2_SLCARDOUT BIT(28)#define SDHCI_CTRL2_FLTCLKSEL_MASK (0xf << 24)#define SDHCI_CTRL2_FLTCLKSEL_SHIFT (24)
@@ -27,28 +27,28 @@#define SDHCI_CTRL2_LVLDAT_SHIFT (16)#define SDHCI_CTRL2_LVLDAT (_x) ((_x) << 16) -#define SDHCI_CTRL2_ENFBCLKTX (1 << 15) -#define SDHCI_CTRL2_ENFBCLKRX (1 << 14) -#define SDHCI_CTRL2_SDCDSEL (1 << 13) -#define SDHCI_CTRL2_SDSIGPC (1 << 12) -#define SDHCI_CTRL2_ENBUSYCHKTXSTART (1 << 11) +#define SDHCI_CTRL2_ENFBCLKTX BIT(15) +#define SDHCI_CTRL2_ENFBCLKRX BIT(14) +#define SDHCI_CTRL2_SDCDSEL BIT(13) +#define SDHCI_CTRL2_SDSIGPC BIT(12) +#define SDHCI_CTRL2_ENBUSYCHKTXSTART BIT(11)#define SDHCI_CTRL2_DFCNT_MASK (_x) ((_x) << 9)#define SDHCI_CTRL2_DFCNT_SHIFT (9) -#define SDHCI_CTRL2_ENCLKOUTHOLD (1 << 8) -#define SDHCI_CTRL2_RWAITMODE (1 << 7) -#define SDHCI_CTRL2_DISBUFRD (1 << 6) +#define SDHCI_CTRL2_ENCLKOUTHOLD BIT(8) +#define SDHCI_CTRL2_RWAITMODE BIT(7) +#define SDHCI_CTRL2_DISBUFRD BIT(6)#define SDHCI_CTRL2_SELBASECLK_MASK (_x) ((_x) << 4)#define SDHCI_CTRL2_SELBASECLK_SHIFT (4) -#define SDHCI_CTRL2_PWRSYNC (1 << 3) -#define SDHCI_CTRL2_ENCLKOUTMSKCON (1 << 1) -#define SDHCI_CTRL2_HWINITFIN (1 << 0) - -#define SDHCI_CTRL3_FCSEL3 (1 << 31) -#define SDHCI_CTRL3_FCSEL2 (1 << 23) -#define SDHCI_CTRL3_FCSEL1 (1 << 15) -#define SDHCI_CTRL3_FCSEL0 (1 << 7) +#define SDHCI_CTRL2_PWRSYNC BIT(3) +#define SDHCI_CTRL2_ENCLKOUTMSKCON BIT(1) +#define SDHCI_CTRL2_HWINITFIN BIT(0) + +#define SDHCI_CTRL3_FCSEL3 BIT(31) +#define SDHCI_CTRL3_FCSEL2 BIT(23) +#define SDHCI_CTRL3_FCSEL1 BIT(15) +#define SDHCI_CTRL3_FCSEL0 BIT(7)#define SDHCI_CTRL4_DRIVE_MASK (_x) ((_x) << 16)#define SDHCI_CTRL4_DRIVE_SHIFT (16)
arch/arm/include/asm/arch-exynos/power.h +7 -7
@@ -1700,28 +1700,28 @@ unsigned int get_boot_mode(void);void set_mipi_phy_ctrl (unsigned int dev_index,unsigned int enable); -#define EXYNOS_MIPI_PHY_ENABLE (1 << 0) -#define EXYNOS_MIPI_PHY_SRESETN (1 << 1) -#define EXYNOS_MIPI_PHY_MRESETN (1 << 2) +#define EXYNOS_MIPI_PHY_ENABLE BIT(0) +#define EXYNOS_MIPI_PHY_SRESETN BIT(1) +#define EXYNOS_MIPI_PHY_MRESETN BIT(2)void set_usbhost_phy_ctrl (unsigned int enable);/* Enables hardware tripping to power off the system when TMU fails */ void set_hw_thermal_trip (void ); -#define POWER_USB_HOST_PHY_CTRL_EN (1 << 0) +#define POWER_USB_HOST_PHY_CTRL_EN BIT(0)#define POWER_USB_HOST_PHY_CTRL_DISABLE (0 << 0)void set_usbdrd_phy_ctrl (unsigned int enable); -#define POWER_USB_DRD_PHY_CTRL_EN (1 << 0) +#define POWER_USB_DRD_PHY_CTRL_EN BIT(0)#define POWER_USB_DRD_PHY_CTRL_DISABLE (0 << 0)void set_dp_phy_ctrl (unsigned int enable); -#define EXYNOS_DP_PHY_ENABLE (1 << 0) +#define EXYNOS_DP_PHY_ENABLE BIT(0) -#define EXYNOS_PS_HOLD_CONTROL_DATA_HIGH (1 << 8) +#define EXYNOS_PS_HOLD_CONTROL_DATA_HIGH BIT(8)#define POWER_ENABLE_HW_TRIP (1UL << 31)/*
arch/arm/include/asm/arch-exynos/pwm.h +1 -1
@@ -27,7 +27,7 @@#define TCON_UPDATE (x) (1 << (TCON_OFFSET(x) + 1))#define TCON_INVERTER (x) (1 << (TCON_OFFSET(x) + 2))#define TCON_AUTO_RELOAD (x) (1 << (TCON_OFFSET(x) + 3)) -#define TCON4_AUTO_RELOAD (1 << 22) +#define TCON4_AUTO_RELOAD BIT(22)#ifndef __ASSEMBLY__ struct s5p_timer {
arch/arm/include/asm/arch-exynos/spi.h +18 -18
@@ -33,44 +33,44 @@ struct exynos_spi {#define SF_READ_DATA_CMD 0x3/* SPI_CHCFG */ -#define SPI_CH_HS_EN (1 << 6) -#define SPI_CH_RST (1 << 5) -#define SPI_SLAVE_MODE (1 << 4) -#define SPI_CH_CPOL_L (1 << 3) -#define SPI_CH_CPHA_B (1 << 2) -#define SPI_RX_CH_ON (1 << 1) -#define SPI_TX_CH_ON (1 << 0) +#define SPI_CH_HS_EN BIT(6) +#define SPI_CH_RST BIT(5) +#define SPI_SLAVE_MODE BIT(4) +#define SPI_CH_CPOL_L BIT(3) +#define SPI_CH_CPHA_B BIT(2) +#define SPI_RX_CH_ON BIT(1) +#define SPI_TX_CH_ON BIT(0)/* SPI_MODECFG */ #define SPI_MODE_CH_WIDTH_WORD (0x2 << 29)#define SPI_MODE_BUS_WIDTH_WORD (0x2 << 17)/* SPI_CSREG */ -#define SPI_SLAVE_SIG_INACT (1 << 0) +#define SPI_SLAVE_SIG_INACT BIT(0)/* SPI_STS */ -#define SPI_ST_TX_DONE (1 << 25) +#define SPI_ST_TX_DONE BIT(25)#define SPI_FIFO_LVL_MASK 0x1ff#define SPI_TX_LVL_OFFSET 6#define SPI_RX_LVL_OFFSET 15/* Feedback Delay */ #define SPI_CLK_BYPASS (0 << 0) -#define SPI_FB_DELAY_90 (1 << 0) +#define SPI_FB_DELAY_90 BIT(0)#define SPI_FB_DELAY_180 (2 << 0)#define SPI_FB_DELAY_270 (3 << 0)/* Packet Count */ -#define SPI_PACKET_CNT_EN (1 << 16) +#define SPI_PACKET_CNT_EN BIT(16)/* Swap config */ -#define SPI_TX_SWAP_EN (1 << 0) -#define SPI_TX_BYTE_SWAP (1 << 2) -#define SPI_TX_HWORD_SWAP (1 << 3) -#define SPI_TX_BYTE_SWAP (1 << 2) -#define SPI_RX_SWAP_EN (1 << 4) -#define SPI_RX_BYTE_SWAP (1 << 6) -#define SPI_RX_HWORD_SWAP (1 << 7) +#define SPI_TX_SWAP_EN BIT(0) +#define SPI_TX_BYTE_SWAP BIT(2) +#define SPI_TX_HWORD_SWAP BIT(3) +#define SPI_TX_BYTE_SWAP BIT(2) +#define SPI_RX_SWAP_EN BIT(4) +#define SPI_RX_BYTE_SWAP BIT(6) +#define SPI_RX_HWORD_SWAP BIT(7)#endif /* __ASSEMBLY__ */ #endif
arch/arm/include/asm/arch-exynos/system.h +1 -1
@@ -35,7 +35,7 @@ struct exynos5_sysreg { };#endif -#define USB20_PHY_CFG_HOST_LINK_EN (1 << 0) +#define USB20_PHY_CFG_HOST_LINK_EN BIT(0)/* * Data Synchronization Barrier acts as a special kind of memory barrier.
arch/arm/include/asm/arch-exynos/xhci-exynos.h +3 -3
@@ -14,9 +14,9 @@#define LINKSYSTEM_FLADJ (_x) ((_x) << 1)#define LINKSYSTEM_XHCI_VERSION_CONTROL (0x1 << 27) -#define PHYUTMI_OTGDISABLE (1 << 6) -#define PHYUTMI_FORCESUSPEND (1 << 1) -#define PHYUTMI_FORCESLEEP (1 << 0) +#define PHYUTMI_OTGDISABLE BIT(6) +#define PHYUTMI_FORCESUSPEND BIT(1) +#define PHYUTMI_FORCESLEEP BIT(0)#define PHYCLKRST_SSC_REFCLKSEL_MASK (0xff << 23)#define PHYCLKRST_SSC_REFCLKSEL (_x) ((_x) << 23)
arch/arm/include/asm/arch-lpc32xx/clk.h +37 -37
115 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/emc.h +6 -6
@@ -59,13 +59,13 @@ struct emc_regs { };/* Static Memory Configuration Register bits */ -#define EMC_STAT_CONFIG_WP (1 << 20) -#define EMC_STAT_CONFIG_EW (1 << 8) -#define EMC_STAT_CONFIG_PB (1 << 7) -#define EMC_STAT_CONFIG_PC (1 << 6) -#define EMC_STAT_CONFIG_PM (1 << 3) +#define EMC_STAT_CONFIG_WP BIT(20) +#define EMC_STAT_CONFIG_EW BIT(8) +#define EMC_STAT_CONFIG_PB BIT(7) +#define EMC_STAT_CONFIG_PC BIT(6) +#define EMC_STAT_CONFIG_PM BIT(3)#define EMC_STAT_CONFIG_32BIT (2 << 0) -#define EMC_STAT_CONFIG_16BIT (1 << 0) +#define EMC_STAT_CONFIG_16BIT BIT(0)#define EMC_STAT_CONFIG_8BIT (0 << 0)/* Static Memory Delay Registers */
arch/arm/include/asm/arch-lpc32xx/timer.h +2 -2
@@ -30,8 +30,8 @@ struct timer_regs {#define TIMER_IR_MR (n) (1 << (n))/* Timer/Counter Timer Control Register bits */ -#define TIMER_TCR_COUNTER_RESET (1 << 1) -#define TIMER_TCR_COUNTER_ENABLE (1 << 0) +#define TIMER_TCR_COUNTER_RESET BIT(1) +#define TIMER_TCR_COUNTER_ENABLE BIT(0)#define TIMER_TCR_COUNTER_DISABLE (0 << 0)/* Timer/Counter Match Control Register bits */
arch/arm/include/asm/arch-lpc32xx/uart.h +28 -28
88 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/wdt.h +10 -10
@@ -22,17 +22,17 @@ struct wdt_regs { };/* Watchdog Timer Control Register bits */ -#define WDTIM_CTRL_PAUSE_EN (1 << 2) -#define WDTIM_CTRL_RESET_COUNT (1 << 1) -#define WDTIM_CTRL_COUNT_ENAB (1 << 0) +#define WDTIM_CTRL_PAUSE_EN BIT(2) +#define WDTIM_CTRL_RESET_COUNT BIT(1) +#define WDTIM_CTRL_COUNT_ENAB BIT(0)/* Watchdog Timer Match Control Register bits */ -#define WDTIM_MCTRL_RESFRC2 (1 << 6) -#define WDTIM_MCTRL_RESFRC1 (1 << 5) -#define WDTIM_MCTRL_M_RES2 (1 << 4) -#define WDTIM_MCTRL_M_RES1 (1 << 3) -#define WDTIM_MCTRL_STOP_COUNT0 (1 << 2) -#define WDTIM_MCTRL_RESET_COUNT0 (1 << 1) -#define WDTIM_MCTRL_MR0_INT (1 << 0) +#define WDTIM_MCTRL_RESFRC2 BIT(6) +#define WDTIM_MCTRL_RESFRC1 BIT(5) +#define WDTIM_MCTRL_M_RES2 BIT(4) +#define WDTIM_MCTRL_M_RES1 BIT(3) +#define WDTIM_MCTRL_STOP_COUNT0 BIT(2) +#define WDTIM_MCTRL_RESET_COUNT0 BIT(1) +#define WDTIM_MCTRL_MR0_INT BIT(0)#endif /* _LPC32XX_WDT_H */
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h +2 -2
@@ -32,8 +32,8 @@#define RCWSR4_SRDS1_PRTCL_MASK 0xff000000#define TIMER_COMP_VAL 0xffffffff -#define ARCH_TIMER_CTRL_ENABLE (1 << 0) -#define SYS_COUNTER_CTRL_ENABLE (1 << 24) +#define ARCH_TIMER_CTRL_ENABLE BIT(0) +#define SYS_COUNTER_CTRL_ENABLE BIT(24)#define DCFG_CCSR_PORSR1_RCW_MASK 0xff800000#define DCFG_CCSR_PORSR1_RCW_SRC_I2C 0x24800000
arch/arm/include/asm/arch-mvebu/spi.h +7 -7
@@ -28,22 +28,22 @@ struct kwspi_registers {* bit 1: selects pin for SCK (MPP2 if 0, MPP10 if 1) * bit 2: selects pin for MISO (MPP3 if 0, MPP11 if 1) */ -#define MOSI_MPP6 (1 << 0) -#define SCK_MPP10 (1 << 1) -#define MISO_MPP11 (1 << 2) +#define MOSI_MPP6 BIT(0) +#define SCK_MPP10 BIT(1) +#define MISO_MPP11 BIT(2)#define KWSPI_CLKPRESCL_MASK 0x1f#define KWSPI_CLKPRESCL_MIN 0x12#define KWSPI_CSN_ACT 1/* Activates serial memory interface */ -#define KWSPI_SMEMRDY (1 << 1)/* SerMem Data xfer ready */ +#define KWSPI_SMEMRDY BIT(1)/* SerMem Data xfer ready */ #define KWSPI_IRQUNMASK 1/* unmask SPI interrupt */ #define KWSPI_IRQMASK 0/* mask SPI interrupt */ #define KWSPI_SMEMRDIRQ 1/* SerMem data xfer ready irq */ #define KWSPI_XFERLEN_1BYTE 0 -#define KWSPI_XFERLEN_2BYTE (1 << 5) -#define KWSPI_XFERLEN_MASK (1 << 5) +#define KWSPI_XFERLEN_2BYTE BIT(5) +#define KWSPI_XFERLEN_MASK BIT(5)#define KWSPI_ADRLEN_1BYTE 0 -#define KWSPI_ADRLEN_2BYTE (1 << 8) +#define KWSPI_ADRLEN_2BYTE BIT(8)#define KWSPI_ADRLEN_3BYTE (2 << 8)#define KWSPI_ADRLEN_4BYTE (3 << 8)#define KWSPI_ADRLEN_MASK (3 << 8)
arch/arm/include/asm/arch-mx25/imx-regs.h +33 -33
117 lines not on this page · raw message
arch/arm/include/asm/arch-mx25/macro.h +1 -1
@@ -71,7 +71,7 @@* * Default argument values: * - CTL: -* MRRP[0] = LCDC on priority list (1 << 0) = 0x00000001 +* MRRP[0] = LCDC on priority list BIT(0) = 0x00000001 * MRRP[1] = MAX1 not on priority list (0 << 1) = 0x00000000 * MRRP[2] = MAX0 not on priority list (0 << 2) = 0x00000000 * MRRP[3] = USBH not on priority list (0 << 3) = 0x00000000
arch/arm/include/asm/arch-mx27/imx-regs.h +134 -134
333 lines not on this page · raw message
arch/arm/include/asm/arch-mx31/imx-regs.h +22 -22
92 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/crm_regs.h +26 -26
88 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/imx-regs.h +17 -17
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-mx35/lowlevel_macro.S +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-mx5/crm_regs.h +3 -3
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-mx5/imx-regs.h +25 -25
50 lines not on this page · raw message
arch/arm/include/asm/arch-mx6/crm_regs.h +79 -79
158 lines not on this page · raw message
arch/arm/include/asm/arch-mx6/imx-regs.h +11 -11
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-mxs/regs-clkctrl-mx23.h +71 -71
142 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-clkctrl-mx28.h +94 -94
188 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-i2c.h +98 -98
196 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-lcdif.h +56 -56
112 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-lradc.h +69 -69
138 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-ocotp.h +41 -41
82 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-pinctrl.h +319 -319
638 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-power-mx23.h +112 -112
224 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-power-mx28.h +136 -136
272 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-rtc.h +31 -31
62 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-ssp.h +83 -83
166 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-timrot.h +22 -22
44 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-uartapp.h +83 -83
166 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-usb.h +8 -8
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-mxs/regs-usbphy.h +58 -58
116 lines not on this page · raw message
arch/arm/include/asm/arch-omap3/am35x_def.h +14 -14
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap3/dss.h +15 -15
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap3/ehci.h +10 -10
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap3/mmc_host_def.h +10 -10
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap3/omap3-regs.h +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap4/clock.h +13 -13
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap4/mux_omap4.h +6 -6
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap5/clock.h +39 -39
78 lines not on this page · raw message
arch/arm/include/asm/arch-omap5/mux_dra7xx.h +5 -5
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-omap5/mux_omap5.h +6 -6
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-pxa/pxa-regs.h +394 -394
788 lines not on this page · raw message
arch/arm/include/asm/arch-pxa/regs-mmc.h +40 -40
80 lines not on this page · raw message
arch/arm/include/asm/arch-pxa/regs-uart.h +48 -48
96 lines not on this page · raw message
arch/arm/include/asm/arch-pxa/regs-usb.h +55 -55
110 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/ehci-rmobile.h +33 -33
66 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/r8a7740-gpio.h +3 -3
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-rmobile/sh_sdhi.h +59 -59
118 lines not on this page · raw message
arch/arm/include/asm/arch-s3c24x0/iomux.h +22 -22
44 lines not on this page · raw message
arch/arm/include/asm/arch-s5pc1xx/mmc.h +19 -19
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-s5pc1xx/power.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-s5pc1xx/pwm.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-socfpga/clock_manager.h +13 -13
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-socfpga/system_manager.h +11 -11
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-spear/hardware.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-spear/spr_emi.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-stm32f4/fmc.h +3 -3
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-stm32f4/stm32.h +5 -5
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-stv0991/stv0991_cgu.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-stv0991/stv0991_gpt.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-sunxi/clock_sun4i.h +7 -7
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-sunxi/clock_sun6i.h +5 -5
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-sunxi/clock_sun9i.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-sunxi/display.h +44 -44
88 lines not on this page · raw message
arch/arm/include/asm/arch-sunxi/dram_sun4i.h +3 -3
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-sunxi/dram_sun6i.h +20 -20
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-tegra/clk_rst.h +57 -57
114 lines not on this page · raw message
arch/arm/include/asm/arch-tegra/pmc.h +38 -38
76 lines not on this page · raw message
arch/arm/include/asm/arch-tegra/tegra_mmc.h +29 -29
58 lines not on this page · raw message
arch/arm/include/asm/arch-tegra/usb.h +34 -34
68 lines not on this page · raw message
arch/arm/include/asm/arch-tegra114/sysctr.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-tegra124/ahb.h +6 -6
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-tegra124/flow.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-tegra124/mc.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-tegra124/sysctr.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-vf610/crm_regs.h +30 -30
60 lines not on this page · raw message
arch/arm/include/asm/arch-vf610/imx-regs.h +21 -21
42 lines not on this page · raw message
arch/arm/include/asm/emif.h +50 -50
100 lines not on this page · raw message
arch/arm/include/asm/imx-common/dma.h +14 -14
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/imx-common/iomux-v3.h +22 -22
44 lines not on this page · raw message
arch/arm/include/asm/imx-common/regs-apbh.h +88 -88
176 lines not on this page · raw message
arch/arm/include/asm/imx-common/regs-bch.h +25 -25
50 lines not on this page · raw message
arch/arm/include/asm/imx-common/regs-gpmi.h +44 -44
88 lines not on this page · raw message
arch/arm/include/asm/imx-common/regs-usbphy.h +5 -5
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/proc-armv/ptrace.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/system.h +34 -34
68 lines not on this page · raw message
arch/arm/include/asm/ti-common/davinci_nand.h +5 -5
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/ti-common/keystone_nav.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/ti-common/ti-edma3.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9260_devices.c +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9261_devices.c +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9263_devices.c +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9m10g45_devices.c +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9n12_devices.c +8 -8
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c +8 -8
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/arm926ejs/at91sam9x5_devices.c +16 -16
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/armv7/sama5d3_devices.c +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91_matrix.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91_pmc.h +14 -14
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91_rstc.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91_spi.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9260_matrix.h +12 -12
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9261_matrix.h +11 -11
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9263_matrix.h +11 -11
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9_sdramc.h +9 -9
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9g45_matrix.h +21 -21
42 lines not on this page · raw message
arch/arm/mach-at91/include/mach/at91sam9rl_matrix.h +11 -11
Lines of this file are not shown. View the raw message.
arch/arm/mach-at91/include/mach/at91sam9x5_matrix.h +21 -21
42 lines not on this page · raw message
arch/arm/mach-bcm283x/include/mach/mbox.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/mach-bcm283x/include/mach/timer.h +4 -4
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/aintc_defs.h +1 -1
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/da850_lowlevel.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/da8xx-usb.h +15 -15
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/ddr2_defs.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/hardware.h +19 -19
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/pll_defs.h +19 -19
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/psc_defs.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/mach-davinci/include/mach/sdmmc_defs.h +51 -51
102 lines not on this page · raw message
arch/arm/mach-davinci/include/mach/syscfg_defs.h +6 -6
Lines of this file are not shown. View the raw message.
arch/arm/mach-kirkwood/include/mach/gpio.h +2 -2
Lines of this file are not shown. View the raw message.
arch/arm/mach-tegra/tegra124/xusb-padctl.c +15 -15
Lines of this file are not shown. View the raw message.
arch/arm/mach-tegra/tegra20/warmboot_avp.h +21 -21
42 lines not on this page · raw message
arch/arm/mach-uniphier/include/mach/ddrphy-regs.h +28 -28
56 lines not on this page · raw message
arch/arm/mvebu-common/serdes/board_env_spec.h +3 -3
Lines of this file are not shown. View the raw message.
arch/arm/mvebu-common/serdes/high_speed_env_lib.c +16 -16
Lines of this file are not shown. View the raw message.
arch/avr32/cpu/at32ap700x/portmux.c +111 -111
222 lines not on this page · raw message
arch/avr32/include/asm/arch-at32ap700x/addrspace.h +3 -3
Lines of this file are not shown. View the raw message.
arch/avr32/include/asm/arch-at32ap700x/portmux.h +11 -11
Lines of this file are not shown. View the raw message.
arch/avr32/include/asm/arch-common/portmux-pio.h +4 -4
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-bf561/ports.h +32 -32
64 lines not on this page · raw message
arch/blackfin/include/asm/mach-common/bits/cgu.h +17 -17
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/eppi.h +1 -1
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-a.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-b.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-c.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-d.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-e.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-f.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-g.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-h.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-i.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/ports-j.h +16 -16
Lines of this file are not shown. View the raw message.
arch/blackfin/include/asm/mach-common/bits/uart4.h +46 -46
92 lines not on this page · raw message
arch/m68k/include/asm/cache.h +53 -53
106 lines not on this page · raw message
arch/m68k/include/asm/coldfire/flexbus.h +5 -5
Lines of this file are not shown. View the raw message.
arch/mips/include/asm/jz4740.h +297 -297
594 lines not on this page · raw message
arch/mips/mach-au1x00/au1x00_usb_ohci.h +27 -27
54 lines not on this page · raw message
arch/powerpc/cpu/mpc5xxx/usb_ohci.h +27 -27
54 lines not on this page · raw message
arch/powerpc/cpu/ppc4xx/usb_ohci.h +27 -27
54 lines not on this page · raw message
arch/powerpc/include/asm/fsl_mpc83xx_serdes.h +1 -1
Lines of this file are not shown. View the raw message.
arch/powerpc/include/asm/ppc4xx-sdram.h +17 -17
Lines of this file are not shown. View the raw message.
arch/x86/cpu/ivybridge/lpc.c +45 -45
90 lines not on this page · raw message
arch/x86/cpu/ivybridge/report_platform.c +3 -3
Lines of this file are not shown. View the raw message.
arch/x86/cpu/quark/smc.c +49 -49
98 lines not on this page · raw message
arch/x86/cpu/quark/smc.h +33 -33
66 lines not on this page · raw message
arch/x86/include/asm/arch-ivybridge/model_206ax.h +10 -10
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/arch-ivybridge/pch.h +87 -87
174 lines not on this page · raw message
arch/x86/include/asm/arch-ivybridge/sandybridge.h +11 -11
Lines of this file are not shown. View the raw message.
board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c +1 -1
Lines of this file are not shown. View the raw message.
board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h +6 -6
Lines of this file are not shown. View the raw message.
board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c +1 -1
Lines of this file are not shown. View the raw message.
board/armltd/integrator/integrator-sc.h +14 -14
Lines of this file are not shown. View the raw message.
board/armltd/integrator/pci_v3.h +27 -27
54 lines not on this page · raw message
board/atmark-techno/armadillo-800eva/armadillo-800eva.c +11 -11
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9260ek/at91sam9260ek.c +1 -1
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9261ek/at91sam9261ek.c +1 -1
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9263ek/at91sam9263ek.c +3 -3
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +2 -2
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9n12ek/at91sam9n12ek.c +2 -2
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9rlek/at91sam9rlek.c +1 -1
Lines of this file are not shown. View the raw message.
board/atmel/at91sam9x5ek/at91sam9x5ek.c +2 -2
Lines of this file are not shown. View the raw message.
board/bluewater/snapper9260/snapper9260.c +1 -1
Lines of this file are not shown. View the raw message.
board/davinci/dm355leopard/dm355leopard.c +10 -10
Lines of this file are not shown. View the raw message.
board/freescale/mx31ads/lowlevel_init.S +9 -9
Lines of this file are not shown. View the raw message.
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
Lines of this file are not shown. View the raw message.
board/freescale/mx6sxsabresd/mx6sxsabresd.c +1 -1
Lines of this file are not shown. View the raw message.
board/in-circuit/grasshopper/grasshopper.c +1 -1
Lines of this file are not shown. View the raw message.
board/intercontrol/digsy_mtc/digsy_mtc.c +17 -17
Lines of this file are not shown. View the raw message.
board/samsung/universal_c210/universal.c +4 -4
Lines of this file are not shown. View the raw message.
board/st/stm32f429-discovery/stm32f429-discovery.c +1 -1
Lines of this file are not shown. View the raw message.
board/tqc/tqm5200/cmd_stk52xx.c +22 -22
44 lines not on this page · raw message
drivers/block/ahci.c +22 -22
44 lines not on this page · raw message
drivers/block/ftide020.h +52 -52
104 lines not on this page · raw message
drivers/block/sata_dwc.h +118 -118
236 lines not on this page · raw message
drivers/block/sata_sil.h +42 -42
84 lines not on this page · raw message
drivers/crypto/ace_sha.h +95 -95
190 lines not on this page · raw message
drivers/i2c/davinci_i2c.h +24 -24
48 lines not on this page · raw message
drivers/i2c/i2c-uniphier-f.c +21 -21
42 lines not on this page · raw message
drivers/i2c/omap24xx_i2c.h +34 -34
68 lines not on this page · raw message
drivers/i2c/sh_sh7734_i2c.c +28 -28
56 lines not on this page · raw message
drivers/mmc/mxcmmc.c +44 -44
88 lines not on this page · raw message
drivers/mmc/s3c_sdi.c +23 -23
46 lines not on this page · raw message
drivers/mmc/sh_mmcif.h +100 -100
200 lines not on this page · raw message
drivers/mtd/nand/mpc5121_nfc.c +23 -23
46 lines not on this page · raw message
drivers/mtd/nand/mxc_nand.h +26 -26
52 lines not on this page · raw message
drivers/mtd/nand/tegra_nand.h +64 -64
128 lines not on this page · raw message
drivers/net/designware.h +56 -56
112 lines not on this page · raw message
drivers/net/dnet.h +53 -53
106 lines not on this page · raw message
drivers/net/ethoc.c +32 -32
64 lines not on this page · raw message
drivers/net/ftgmac100.h +77 -77
154 lines not on this page · raw message
drivers/net/ftmac100.h +47 -47
94 lines not on this page · raw message
drivers/net/ftmac110.h +37 -37
74 lines not on this page · raw message
drivers/net/ks8851_mll.h +146 -146
292 lines not on this page · raw message
drivers/net/mvgbe.h +88 -88
176 lines not on this page · raw message
drivers/net/tsi108_eth.c +47 -47
94 lines not on this page · raw message
drivers/net/xilinx_ll_temac.h +58 -58
116 lines not on this page · raw message
drivers/net/xilinx_ll_temac_sdma.h +43 -43
86 lines not on this page · raw message
drivers/pci/pci_tegra.c +32 -32
64 lines not on this page · raw message
drivers/qe/uec_phy.h +27 -27
54 lines not on this page · raw message
drivers/serial/altera_uart.c +25 -25
50 lines not on this page · raw message
drivers/serial/serial_lpuart.c +23 -23
46 lines not on this page · raw message
drivers/serial/serial_pl01x_internal.h +44 -44
88 lines not on this page · raw message
drivers/spi/atmel_spi.h +26 -26
52 lines not on this page · raw message
drivers/spi/ftssp010_spi.c +25 -25
50 lines not on this page · raw message
drivers/spi/omap3_spi.h +24 -24
48 lines not on this page · raw message
drivers/spi/tegra114_spi.c +32 -32
64 lines not on this page · raw message
drivers/spi/tegra20_sflash.c +25 -25
50 lines not on this page · raw message
drivers/spi/tegra20_slink.c +28 -28
56 lines not on this page · raw message
drivers/spi/xilinx_spi.h +35 -35
70 lines not on this page · raw message
drivers/usb/dwc3/core.h +80 -80
160 lines not on this page · raw message
drivers/usb/dwc3/dwc3-omap.c +24 -24
48 lines not on this page · raw message
drivers/usb/eth/asix88179.c +78 -78
156 lines not on this page · raw message
drivers/usb/host/dwc2.h +242 -242
484 lines not on this page · raw message
drivers/usb/host/ehci-mx5.c +24 -24
48 lines not on this page · raw message
drivers/usb/host/ehci-mxc.c +26 -26
52 lines not on this page · raw message
drivers/usb/host/ehci.h +35 -35
70 lines not on this page · raw message
drivers/usb/host/isp116x.h +68 -68
136 lines not on this page · raw message
drivers/usb/host/ohci-s3c24xx.h +27 -27
54 lines not on this page · raw message
drivers/usb/host/ohci.h +28 -28
56 lines not on this page · raw message
drivers/usb/host/xhci.h +73 -73
146 lines not on this page · raw message
drivers/video/da8xx-fb.c +34 -34
68 lines not on this page · raw message
include/ahci.h +40 -40
80 lines not on this page · raw message
include/atmel_lcdc.h +29 -29
58 lines not on this page · raw message
include/axp221.h +21 -21
42 lines not on this page · raw message
include/dp83848.h +48 -48
96 lines not on this page · raw message
include/dwmmc.h +45 -45
90 lines not on this page · raw message
include/ec_commands.h +23 -23
46 lines not on this page · raw message
include/faraday/ftpmu010.h +43 -43
86 lines not on this page · raw message
include/faraday/ftsdc010.h +73 -73
146 lines not on this page · raw message
include/faraday/fttmr010.h +21 -21
42 lines not on this page · raw message
include/libata.h +104 -104
208 lines not on this page · raw message
include/linux/ethtool.h +68 -68
136 lines not on this page · raw message
include/linux/mtd/onenand_regs.h +29 -29
58 lines not on this page · raw message
include/linux/usb/ch9.h +26 -26
52 lines not on this page · raw message
include/mc13783.h +48 -48
96 lines not on this page · raw message
include/mc13892.h +61 -61
122 lines not on this page · raw message
include/mmc.h +31 -31
62 lines not on this page · raw message
include/mvebu_mmc.h +89 -89
178 lines not on this page · raw message
include/radeon.h +131 -131
262 lines not on this page · raw message
include/twl6030.h +35 -35
70 lines not on this page · raw message
include/usb/ehci-fsl.h +46 -46
92 lines not on this page · raw message
include/usb/fotg210.h +132 -132
264 lines not on this page · raw message
include/usb/ulpi.h +48 -48
96 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
PATCH v2 2/2 Remove #define BIT in local files.
Since BIT macro is visiable to include/common.h there is no need to define again it on local headers hence removed.
---
Changes for v2:
- none
arch/arm/include/asm/arch-am33xx/cpu.h | 1 - arch/arm/include/asm/arch-omap5/cpu.h | 2 -- arch/arm/include/asm/arch-tegra20/dc.h | 2 -- arch/arm/mach-davinci/cpu.c | 2 -- arch/arm/mach-keystone/include/mach/clock_defs.h | 2 -- arch/arm/mvebu-common/mbus.c | 2 -- board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c | 2 -- drivers/mtd/nand/jz4740_nand.c | 1 - drivers/net/mvneta.c | 1 - drivers/spi/andes_spi.h | 2 -- drivers/spi/davinci_spi.h | 2 -- drivers/spi/ep93xx_spi.c | 2 -- include/fsl-mc/fsl_mc.h | 1 - 13 files changed, 22 deletions(-)
arch/arm/include/asm/arch-am33xx/cpu.h +0 -1
@@ -17,7 +17,6 @@#include <asm/arch/hardware.h> -#define BIT (x) (1 << x)#define CL_BIT (x) (0 << x)/* Timer register bits */
arch/arm/include/asm/arch-omap5/cpu.h +0 -2
@@ -56,8 +56,6 @@ struct watchdog {#endif /* __ASSEMBLY__ */ #endif /* __KERNEL_STRICT_NAMES */ -#define BIT (x) (1 << (x)) -#define WD_UNLOCK1 0xAAAA#define WD_UNLOCK2 0x5555
arch/arm/include/asm/arch-tegra20/dc.h +0 -2
@@ -351,8 +351,6 @@ struct dc_ctlr {struct dc_winbuf_reg winbuf;/* WINBUF A/B/C 0x800 ~ 0x80a */ }; -#define BIT (pos) (1U << pos) -/* DC_CMD_DISPLAY_COMMAND 0x032 */ #define CTRL_MODE_SHIFT 5#define CTRL_MODE_MASK (0x3 << CTRL_MODE_SHIFT)
arch/arm/mach-davinci/cpu.c +0 -2
@@ -28,8 +28,6 @@ DECLARE_GLOBAL_DATA_PTR;#define PLLC_PLLDIV8 0x170#define PLLC_PLLDIV9 0x174 -#define BIT (x) (1 << (x)) -/* SOC-specific pll info */ #ifdef CONFIG_SOC_DM355 #define ARM_PLLDIV PLLC_PLLDIV1
arch/arm/mach-keystone/include/mach/clock_defs.h +0 -2
@@ -11,8 +11,6 @@#include <asm/arch/hardware.h> -#define BIT (x) (1 << (x)) -/* PLL Control Registers */ struct pllctl_regs {u32 ctl;/* 00 */
arch/arm/mvebu-common/mbus.c +0 -2
@@ -54,8 +54,6 @@#include <asm/arch/soc.h> #include <linux/mbus.h> -#define BIT (nr) (1UL << (nr)) -/* DDR target is the same on all platforms */ #define TARGET_DDR 0
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c +0 -2
@@ -12,8 +12,6 @@DECLARE_GLOBAL_DATA_PTR ; -#define BIT (nr) (1UL << (nr)) -#define ETH_PHY_CTRL_REG 0#define ETH_PHY_CTRL_POWER_DOWN_BIT 11#define ETH_PHY_CTRL_POWER_DOWN_MASK (1 << ETH_PHY_CTRL_POWER_DOWN_BIT)
drivers/mtd/nand/jz4740_nand.c +0 -1
@@ -16,7 +16,6 @@#define JZ_NAND_CMD_ADDR (JZ_NAND_DATA_ADDR + 0x8000)#define JZ_NAND_ADDR_ADDR (JZ_NAND_DATA_ADDR + 0x10000) -#define BIT (x) (1 << (x))#define JZ_NAND_ECC_CTRL_ENCODING BIT(3)#define JZ_NAND_ECC_CTRL_RS BIT(2)#define JZ_NAND_ECC_CTRL_RESET BIT(1)
drivers/net/mvneta.c +0 -1
@@ -41,7 +41,6 @@ printf(fmt, ##args)#define CONFIG_NR_CPUS 1 -#define BIT (nr) (1UL << (nr))#define ETH_HLEN 14/* Total octets in header */ /* 2(HW hdr) 14(MAC hdr) 4(CRC) 32(extra for cache prefetch) */
drivers/spi/andes_spi.h +0 -2
@@ -23,8 +23,6 @@ struct andes_spi_regs {unsigned int ver;/* 0x3c - SPI version reg */ }; -#define BIT (x) (1 << (x)) -/* 0x00 - APB SPI interface setting register */ #define ANDES_SPI_APB_BAUD (x) (((x) & 0xff) < 0)#define ANDES_SPI_APB_CSHT (x) (((x) & 0xf) < 16)
drivers/spi/davinci_spi.h +0 -2
@@ -36,8 +36,6 @@ struct davinci_spi_regs {dv_reg intvec1;/* 0x64 */ }; -#define BIT (x) (1 << (x)) -/* SPIGCR0 */ #define SPIGCR0_SPIENA_MASK 0x1#define SPIGCR0_SPIRST_MASK 0x0
drivers/spi/ep93xx_spi.c +0 -2
@@ -16,8 +16,6 @@#include <asm/arch/ep93xx.h> - -#define BIT (x) (1<<(x))#define SSPBASE SPI_BASE#define SSPCR0 0x0000
include/fsl-mc/fsl_mc.h +0 -1
@@ -12,7 +12,6 @@#define MC_CCSR_BASE_ADDR \ ((struct mc_ccsr_registers __iomem *)0x8340000) -#define BIT (x) (1 << (x))#define GCR1_P1_STOP BIT(31)#define GCR1_P2_STOP BIT(30)#define GCR1_P1_DE_RST BIT(23)
Signature · 1 line
1.9.1
PATCH v2 1/2 linux/bitops.h: Add BIT macro
In reply to Jagannadha Sutradharudu TekiQuoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>
I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150429/cdfc66ca/attachment.sig>
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Hi Tom,
Quoted 4 lines · Tom Rini
Quoted 2 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Quoted 8 lines
Quoted 4 lines
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of 0xf, for example.
Anyway as you say, let's do it fast if we are going this way.
Regards,
Simon
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Hi Simon,
Quoted 12 lines · Simon Glass
Hi Tom,
Quoted 9 lines · Tom Rini
Quoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>
Quoted 7 lines
Quoted 3 lines
I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.
Probably we can achieve this with GENMASK(h, l), may be we can add that also?
Quoted 2 lines
Anyway as you say, let's do it fast if we are going this way.
thanks!
Signature · 1 line
Jagan.
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Hi Jagan,
Quoted 19 lines · Jagan Teki
Hi Simon,
Quoted 16 lines · Simon Glass
Hi Tom,
Quoted 12 lines · Tom Rini
Quoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
Quoted 5 lines
Quoted 3 lines
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.Probably we can achieve this with
GENMASK(h, l), may be we can add that also?
I'm not sure about that...we might end up with this:
http://patchwork.ozlabs.org/patch/93363/
Regards,
Simon
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Quoted 26 lines · Simon Glass
Hi Jagan,
Quoted 23 lines · Jagan Teki
Hi Simon,
Quoted 19 lines · Simon Glass
Hi Tom,
Quoted 4 lines · Tom Rini
Quoted 2 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Quoted 8 lines
Quoted 4 lines
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.
Quoted 5 lines
Quoted 1 line
Probably we can achieve this with
GENMASK(h, l), may be we can add that also?I'm not sure about that...we might end up with this:
Welcome to the world of introducing an idea before the rest of the community is ready :( . GENMASK as Jagan is talking about came into the kernel (well, into <linux/bitops.h> in 2013. So yeah, we could pull that macro in too and clean up as needed / ensure people don't do funny looking things like BIT(1) | BIT(2) | ...
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150430/e5d2094f/attachment.sig>
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Hi Tom,
Quoted 31 lines · Tom Rini
Quoted 30 lines · Simon Glass
Hi Jagan,
Quoted 19 lines · Jagan Teki
Hi Simon,
Quoted 16 lines · Simon Glass
Hi Tom,
Quoted 12 lines · Tom Rini
Quoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
Quoted 5 lines
Quoted 3 lines
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.Probably we can achieve this with
GENMASK(h, l), may be we can add that also?I'm not sure about that...we might end up with this:
Quoted 7 lines
Quoted 1 line
Welcome to the world of introducing an idea before the rest of the community is ready :( . GENMASK as Jagan is talking about came into the kernel (well, into <
linux/bitops.h> in 2013. So yeah, we could pull that macro in too and clean up as needed / ensure people don't do funny looking things like BIT(1) | BIT(2) | ...
SGTM.
Regards,
Simon
PATCH v2 1/2 linux/bitops.h: Add BIT macro
In reply to Simon GlassHi Simon,
Quoted 12 lines · Simon Glass
Hi Tom,
Quoted 9 lines · Tom Rini
Quoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>
Quoted 7 lines
Quoted 3 lines
I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.
Yep, the Intel Quark MRC stuff :)
Quoted 2 lines
Anyway as you say, let's do it fast if we are going this way.
Do we have to rework the Quark MRC to use the BIT(nr) again? I guess no?
Regards,
Bin
PATCH v2 1/2 linux/bitops.h: Add BIT macro
Hi Bin,
Quoted 20 lines · Bin Meng
Hi Simon,
Quoted 16 lines · Simon Glass
Hi Tom,
Quoted 12 lines · Tom Rini
Quoted 6 lines · Jagannadha Sutradharudu Teki
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
Signed-off-by Jagannadha Sutradharudu Teki <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>I think that conceptually this is a good idea. We need to apply this fairly quickly however as it already throws out a few rejects with the PRs I've taken and doing some local testing on.
Quoted 5 lines
Quoted 3 lines
We have to date avoided this (I've been here before). But I think it is useful. One concern I have is misuse, when someone does BIT(0) | BIT(1))| BIT(2) | BIT(3) instead of
0xf, for example.Yep, the Intel Quark MRC stuff :)
A few years ago - one of my first patch series to U-Boot had bitfield macros and it did not receive a warm reception :-)
Quoted 5 lines
Quoted 3 lines
Anyway as you say, let's do it fast if we are going this way.
Do we have to rework the Quark MRC to use the BIT(nr) again? I guess no?
I don't think so.
Regards,
Simon
PATCH v2 1/2 linux/bitops.h: Add BIT macro
In reply to Jagannadha Sutradharudu TekiHi.
2015-04-29 21:05 GMT+09:00 Jagannadha Sutradharudu Teki <[email protected]>:
Quoted 1 line
Replace (1 << nr) to BIT(nr) where nr = 0, 1, 2 .... 31
I assume this patch was generated by a simple sed script or something.
I am opposed to do this globally by script.
See below.
Quoted 21 lines
arch/arm/mach-uniphier/include/mach/ddrphy-regs.h +3
-10@@ -84,16 +84,16 @@ struct ddrphy {#define PIR_DRAMRST (1 << 7)/* DRAM Reset */ #define PIR_DRAMINIT (1 << 8)/* DRAM Initialization */ #define PIR_WL (1 << 9)/* Write Leveling */ -#define PIR_QSGATE (1 << 10)/* Read DQS Gate Training */ -#define PIR_WLADJ (1 << 11)/* Write Leveling Adjust */ -#define PIR_RDDSKW (1 << 12)/* Read Data Bit Deskew */ -#define PIR_WRDSKW (1 << 13)/* Write Data Bit Deskew */ -#define PIR_RDEYE (1 << 14)/* Read Data Eye Training */ -#define PIR_WREYE (1 << 15)/* Write Data Eye Training */ -#define PIR_LOCKBYP (1 << 28)/* PLL Lock Bypass */ -#define PIR_DCALBYP (1 << 29)/* DDL Calibration Bypass */ -#define PIR_ZCALBYP (1 << 30)/* Impedance Calib Bypass */ -#define PIR_INITBYP (1 << 31)/* Initialization Bypass */ +#define PIR_QSGATE BIT(10)/* Read DQS Gate Training */ +#define PIR_WLADJ BIT(11)/* Write Leveling Adjust */ +#define PIR_RDDSKW BIT(12)/* Read Data Bit Deskew */
arch/arm/mach-uniphier/include/mach/ddrphy-regs.h struct ddrphy { · line 99
Quoted 10 lines
arch/arm/mach-uniphier/include/mach/ddrphy-regs.h +7
-0+#define PIR_WRDSKW BIT(13)/* Write Data Bit Deskew */ +#define PIR_RDEYE BIT(14)/* Read Data Eye Training */ +#define PIR_WREYE BIT(15)/* Write Data Eye Training */ +#define PIR_LOCKBYP BIT(28)/* PLL Lock Bypass */ +#define PIR_DCALBYP BIT(29)/* DDL Calibration Bypass */ +#define PIR_ZCALBYP BIT(30)/* Impedance Calib Bypass */ +#define PIR_INITBYP BIT(31)/* Initialization Bypass */ #define PGSR0_IDONE (1 << 0)/* Initialization Done */ #define PGSR0_PLDONE (1 << 1)/* PLL Lock Done */
(1 << 7), (1 << 8), (1 << 9) are left unconverted.
OK, you can convert them by adjusting your script, but
I am afraid the indentation is already broken too, i.e. the training comments are no longer lined up.
arch/arm/mach-uniphier/include/mach/ddrphy-regs.h struct ddrphy { · line 130
Quoted 7 lines
#define
DXCCR_DQSRES_OPEN(0 << 5)arch/arm/mach-uniphier/include/mach/ddrphy-regs.h +1
-1-#define DXCCR_DQSRES_688_OHM (1 << 5) +#define DXCCR_DQSRES_688_OHM BIT(5)#define DXCCR_DQSRES_611_OHM (2 << 5)#define DXCCR_DQSRES_550_OHM (3 << 5)#define DXCCR_DQSRES_500_OHM (4 << 5)
How about this?
With only (1 << 5) converted, this part looks very strange.
When people look@this, they won't understand what happened.
Quoted 7 lines
drivers/usb/host/xhci.h +0
-0@@ -44,18 +44,18 @@* connect status and port speed are also sticky - meaning they're in * the AUX well and they aren't changed by a hot, warm, or cold reset.
drivers/usb/host/xhci.h line 53
Quoted 10 lines
drivers/usb/host/xhci.h +2
-2*/ -#define XHCI_PORT_RO ((1 << 0) | (1 << 3) | (0xf << 10) | (1 << 30)) +#define XHCI_PORT_RO (BIT(0) | BIT(3) | (0xf << 10) | BIT(30))/* * These bits are RW; writing a 0 clears the bit, writing a 1 sets the bit: * bits 5:8, 9, 14:15, 25:27 * link state, port power, port indicator state, "wake on" enable state */ -#define XHCI_PORT_RWS ((0xf << 5) | (1 << 9) | (0x3 << 14) | (0x7 << 25)) +#define XHCI_PORT_RWS ((0xf << 5) | BIT(9) | (0x3 << 14) | (0x7 << 25))
I do not want to see stuff like this.
I think you just need to add BIT(nr) macro to include/linux/bitops.h, and leave the replacement to the maintainer of each file.
If you also do the conversion, please do so with more care.
Signature · 2 lines
Best Regards Masahiro Yamada