summary refs log tree commit diff stats
path: root/hw/omap2.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:22:18 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:37:12 +0000
commit3387bf5581df66c2cfb0d399d73c80f3cc3be198 (patch)
tree36be2126c17cffb3f2c2f3e7cc2ab76e9f79fe0e /hw/omap2.c
parent07bc2f807768d85e98f50de2e5f8115743277381 (diff)
downloadfocaccia-qemu-3387bf5581df66c2cfb0d399d73c80f3cc3be198.tar.gz
focaccia-qemu-3387bf5581df66c2cfb0d399d73c80f3cc3be198.zip
omap_gpmc: Refactor omap_gpmc_cs_map and omap_gpmc_cs_unmap
Refactor the omap_gpmc_cs_map/unmap functions:
 * take the omap_gpmc_s* and a chipselect id rather than the
   omap_gpmc_cs_file_s*, so they have access to the general gpmc
   member fields
 * extract the base and mask from the config registers in the functions
   rather than at every callsite
 * check for CSVALID in the functions rather than at every callsite

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/omap2.c')
0 files changed, 0 insertions, 0 deletions