]> git.proxmox.com Git - mirror_qemu.git/commit
target-xtensa: xtfpga: attach FLASH to system IO
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 27 Sep 2015 15:21:19 +0000 (18:21 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 21 Oct 2015 18:28:33 +0000 (21:28 +0300)
commit68931a4082812f56657b39168e815c48f0ab0a8c
treea6714c6521b40c2f67c18296b76209931e12f5f3
parent5577e57b078a118595071241aba6dac8725a7640
target-xtensa: xtfpga: attach FLASH to system IO

XTFPGA FLASH is tied to XTFPGA system IO block. It's not very important
for systems with MMU where system IO block is visible at single
location, but it's important for noMMU systems, where system IO block is
accessible through two separate physical address ranges.

Map XTFPGA FLASH to system IO block and fix offsets used for mapping.
Create and initialize FLASH device with series of qdev_prop_set_* as
that's the preferred interface now. Keep initialization in a separate
function.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
hw/xtensa/xtfpga.c