07 Jan, 2009
7 commits
-
The __SWAB_64_THRU_32__ case of a 64-bit byte swap was depending on the
no-longer-existant ___swab32() method (three underscores). We got rid
of some of the worst indirection and complexity, and now it should just
use the 32-bit swab function that was defined right above it.Reported-and-tested-by: Nicolas Pitre
Reported-by: Benjamin Herrenschmidt
Cc: Harvey Harrison
Signed-off-by: Linus Torvalds -
This implementation caused problems in userspace which can, and does
define _both_ __LITTLE_ENDIAN and __BIG_ENDIAN.Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds -
Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds -
Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds -
Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds -
Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds -
Signed-off-by: Harvey Harrison
Signed-off-by: Linus Torvalds
18 Nov, 2008
15 commits
-
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
- This patch adds support for ARCH_WANT_OPTIONAL_GPIOLIB.
- It may be changed in future to ARCH_REQUIRE_GPIOLIB.
- Change GPIO_BANK_NUM use DIV_ROUND_UP( , ) macroSigned-off-by: Michael Hennerich
Signed-off-by: Bryan Wu -
- Remove SSYNC()
- Use irq_to_gpio where applicable
- Remove gpio_edge_triggered bitfield, check irq_desc fields instead.
- Remove gpio_both_edge_triggeredb bitfield, check irq_desc fields
instead.
- Use BITMAP and bitops on gpio_enabled
- Preferably use 32-bit
- Looking at the disassembly this indeed saves quite a few instructions.Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu -
Disable spi_mmc DMA by default.
Signed-off-by: Yi Li
Signed-off-by: Bryan Wu -
- remove SSYNC() left over from irq init split
- do not force SSYNC() when masking/unmasking IRQs in the SIC
as any order enforced by the hardware should already be enforced
by softwareSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
The whole story:
Before BF51x merged, all the MAX_BLACKFIN_GPIOS are integral multiple of GPIO_BANKSIZE (= 16).
But BF51x provides MAX_BLACKFIN_GPIOS = 40 which includes 3 banks and the 3rd bank has only 8
GPIO pins.Therefore, gpio_bank() macros is correct when you try to find a GPIO in which bank (GPIO_35 is
in bank 2). But on BF51x gpio_bank(MAX_BLACKFIN_GPIOS) only gives out 2 banks instead of 3
banks for some static array initialization.This patch add a new macros gpio_bank_n() and GPIO_BANK_NUM to do bank number caculating and
remain the gpio_bank() macros for positioning a gpio in which bank.Signed-off-by: Bryan Wu
-
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu -
- to avoid uninitialized errors
- make invalid sizes a build errorSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
our kernel should be sane now, and we want to catch NULL bugs,
not ignore themSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu -
- do not bother generating deprecated /sys files by default now since
mdev does not need it
- Don't built-in char sport driver and build it as a module in defconfig
- disable CONFIG_DEVKMEM by default
- enable spi flash driver on boards that have one
- switch config to the NAND platfrom driver rather than the bfin async one
- do not make BFIN_DMA_5XX optional since a large portion of our code relies
on dma functions existingSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Bryan Wu
-
Add supporing for Blackfin BF538 and BF539 processors.
Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu
29 Oct, 2008
1 commit
-
keep BUG_ON in DMA request, free and set_dma_callback.
Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu
28 Oct, 2008
16 commits
-
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Tons of SSYNC operation will impact the DMA performance
Signed-off-by: Bryan Wu
-
Add irq to struct dma_channel lookup channel2irq() only once,
since channel2irq() is fairly large on some Blackfin derivatives.Signed-off-by: Michael Hennerich
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
refine the gpio check in peripheral_request() so that it only
checks pins that can be used as both GPIO and a peripheralSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
The original code defined _exception_stack but not alloc space for the exception
stack. In exception, this area is over written by exception stack. Common kernel
luckly boot up, but SMP kernel stuck.Signed-off-by: Graf Yang
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
allow people to stick exception stack into L1 scratch
and make sure it gets placed into .bss sections rather than .dataSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu -
- kernel_thread
- irq_flags
- checksumSigned-off-by: Mike Frysinger
Signed-off-by: Bryan Wu
27 Oct, 2008
1 commit
-
Signed-off-by: Mike Frysinger
Signed-off-by: Bryan Wu