DMA: Fix allocation size for PL330 data buffer depth.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 3 Mar 2014 14:41:59 +0000 (14:41 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 12 May 2014 12:27:44 +0000 (13:27 +0100)
commit042a4a3257834a38a1d374511d13a478310291b7
tree2f9ffb4e2244b2bbba045a642b5a16e06d2d290c
parent94701556002a81ed121a9baefc47ea289aeea05d
DMA: Fix allocation size for PL330 data buffer depth.

The datasheet for PL330 says that the data buffer value in the CRD
register is 10bits wide. However, the value stored is "minus one",
which the driver corrects for. Maximum value that the data buffer
depth can have is 1024 lines, which requires 11 bits for storage.

While making updates I found printing the peripheral ID as a hex
value to be more useful as the datasheet shows the values that way.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/dma/pl330.c