metag: cachepart: take into account small cache bits
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Mar 2013 15:27:49 +0000 (15:27 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 15 Mar 2013 13:21:18 +0000 (13:21 +0000)
commit4d8edbfefb630559220939ad5a3bdd8a75190cc3
tree1e66e9ee78da18e95c536cc2a772c8c4b67c6a01
parent9e7129630329d50b8e8c3403bb71c85a7c3cbe35
metag: cachepart: take into account small cache bits

The CORE_CONFIG2 register has bits to indicate that the data or code
cache is small, i.e. that the size described in the field should be
divided by 64. Take this into account in get_icache_size() and
get_dcache_size().

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/cachepart.c