summaryrefslogtreecommitdiff
path: root/fs/ubifs/master.c
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@gmail.com>2013-05-11 07:25:54 +0200
committerStefano Babic <sbabic@denx.de>2013-06-26 16:23:30 +0200
commit9a30903b44a63861de93d5beaaf4c91173bbac0c (patch)
tree5a4af903597414caf5d8f62d7725a32858709e78 /fs/ubifs/master.c
parent8d4c4ffb95d528f6a709bf68da5e0beb0f4ee72f (diff)
downloadu-boot-imx-9a30903b44a63861de93d5beaaf4c91173bbac0c.zip
u-boot-imx-9a30903b44a63861de93d5beaaf4c91173bbac0c.tar.gz
u-boot-imx-9a30903b44a63861de93d5beaaf4c91173bbac0c.tar.bz2
spi: mxc_spi: Update pre and post divider algorithm
The spi clock divisor is of the form x * (2**y), or x << y, where x is 1 to 16, and y is 0 to 15. Note the similarity with floating point numbers. Convert the desired divisor to the smallest number which is >= desired divisor, and can be represented in this form. The previous algorithm chose a divisor which could be almost twice as large as needed. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Diffstat (limited to 'fs/ubifs/master.c')
0 files changed, 0 insertions, 0 deletions