From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1k3i-00053U-7Q for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:23:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1k3g-0007rq-Mc for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:23:50 -0400 Received: from p15195424.pureserver.info ([82.165.34.74]:41595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1k3g-0007r4-Hj for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:23:48 -0400 Message-ID: <51EEF43B.80104@ilande.co.uk> Date: Tue, 23 Jul 2013 22:23:07 +0100 From: Mark Cave-Ayland MIME-Version: 1.0 References: <1371304531-4194-1-git-send-email-mark.cave-ayland@ilande.co.uk> In-Reply-To: <1371304531-4194-1-git-send-email-mark.cave-ayland@ilande.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl On 15/06/13 14:55, Mark Cave-Ayland wrote: > Currently the graphics resolution for TCX is fixed at 1024x768, however > other framebuffers are capable of supporting additional resolutions. > > Signed-off-by: Mark Cave-Ayland > --- > hw/sparc/sun4m.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c > index 0e86ca7..5b7868e 100644 > --- a/hw/sparc/sun4m.c > +++ b/hw/sparc/sun4m.c > @@ -66,6 +66,8 @@ > #define PROM_FILENAME "openbios-sparc32" > #define CFG_ADDR 0xd00000510ULL > #define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00) > +#define FW_CFG_SUN4M_WIDTH (FW_CFG_ARCH_LOCAL + 0x01) > +#define FW_CFG_SUN4M_HEIGHT (FW_CFG_ARCH_LOCAL + 0x02) > > #define MAX_CPUS 16 > #define MAX_PILS 16 > @@ -991,6 +993,8 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size, > fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)ram_size); > fw_cfg_add_i16(fw_cfg, FW_CFG_MACHINE_ID, hwdef->machine_id); > fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_DEPTH, graphic_depth); > + fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_WIDTH, graphic_width); > + fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_HEIGHT, graphic_height); > fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_ADDR, KERNEL_LOAD_ADDR); > fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size); > if (kernel_cmdline) { Ping? ATB, Mark.