From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHUPb-00007S-EM for qemu-devel@nongnu.org; Thu, 05 Sep 2013 03:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHUPX-0000m5-FX for qemu-devel@nongnu.org; Thu, 05 Sep 2013 03:55:31 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:50519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHUPX-0000lw-7m for qemu-devel@nongnu.org; Thu, 05 Sep 2013 03:55:27 -0400 Received: by mail-lb0-f174.google.com with SMTP id w6so1336537lbh.5 for ; Thu, 05 Sep 2013 00:55:26 -0700 (PDT) From: Antony Pavlov Date: Thu, 5 Sep 2013 11:52:54 +0400 Message-Id: <1378367579-1099-1-git-send-email-antonynpavlov@gmail.com> Subject: [Qemu-devel] [RFC v4 0/5] hw/arm: add initial support for Canon DIGIC SoC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alex Dumitrache , Peter Crosthwaite , Giovanni Condello , g3gg0 , Peter Maydell , Paul Brook , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= [RFC v4 1/5] hw/arm: add very initial support for Canon DIGIC SoC [RFC v4 2/5] hw/arm/digic: prepare DIGIC-based boards support [RFC v4 3/5] hw/arm/digic: add timer support [RFC v4 4/5] hw/arm/digic: add UART support [RFC v4 5/5] hw/arm/digic: add NOR ROM support Changes since v3: 1. fix typos and formatting 2. digic-timer: drop DPRINTF 3. digic-timer: fix DIGIC4_TIMER_BASE() macro 4. digic.c: fix max timer device string Changes since v2: 1. rebase over latest master; * pass available size to object_initialize(). 2. digic-uart: qemu_log: use LOG_UNIMP instead LOG_GUEST_ERROR; 3. digic-boards: update rom image load code: introduce digic_load_rom(). Changes since v1: 0. drop the "add ARM946E-S CPU" patch; 1. convert to QOM, split DIGIC SoC code and board code (thanks to Andreas Fa:rber, Peter Maydell and Peter Crosthwaite); 2. fix digic-uart (many thanks to Peter Crosthwaite for his comments); 3. digic-boards: digic4_add_k8p3215uqb_rom(): update rom image load code: use the '-bios' option. DIGIC is Canon Inc.'s name for a family of SoC for digital cameras and camcorders. See http://en.wikipedia.org/wiki/DIGIC for details. There is no publicly available specification for DIGIC chips. All information about DIGIC chip internals is based on reverse engineering efforts made by CHDK (http://chdk.wikia.com) and Magic Lantern (http://www.magiclantern.fm) projects contributors. Also this patch series adds initial support for Canon PowerShot A1100 IS compact camera (it is my only camera with connected UART interface). As the DIGIC-based cameras differences mostly are unsignificant (e.g. RAM-size, ROM type and size, GPIO usage) the other compact and DSLR cameras support can be easely added. This DIGIC support patch series is inspired by EOS QEMU from Magic Lantern project. The main differences: * EOS QEMU uses home-brew all-in-one monolith design; this patch series uses conventional qemu object-centric design; * EOS QEMU tries provide simplest emulation for most controllers inside SoC to run Magic Lantern firmware; this patch series provide more complete support only for core devices to run barebox bootloader. ** EOS QEMU does not support timer counting (this patch series emulate 1 MHz counting); ** EOS QEMU support DIGIC UART only for output character to stderr; (this patch series emulate introduces full blown UART interface); ** EOS QEMU has incomplete ROM support; (this patch series uses conventional qemu pflash). This initial DIGIC support can't be used to run the original camera firmware, but it can successfully run experimental version of barebox bootloader (see http://www.barebox.org). The last sources of barebox for PowerShot A1100 can be obtained here: https://github.com/frantony/barebox/tree/next.digic.20130829 The precompiled ROM image usable with qemu can be obtained here: https://github.com/frantony/barebox/blob/next.digic.20130829/canon-a1100-rom1.bin This ROM image (after "dancing bit" encoding) can be run on real Canon A1100 camera. The short build instruction for __previous__ DIGIC barebox version (it can be used with more recent sources too) can be obtained here: http://lists.infradead.org/pipermail/barebox/2013-August/016007.html