[Qemu-devel] [PATCH v2] target-arm: add Faraday ARMv5TE processors support

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su Faraday processors are a series of ARMv4/ARMv5TE clone. * ARMv4 series (FA526, FA626). All of them are now out-of-date, so I have no plan for them. * ARMv5TE series (FA606TE, FA626TE, FA616TE, FA726TE) All the single core RISC listed above are included in this patch

[Qemu-devel] [PATCH v2] hw/nand.c: bug fix to BUSY/READY status bit

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su The status register coding for BUSY/READY(BIT6) is actually [Busy:0, Ready:1]. BTW, this patch not only apply the bug fix to status bit, but also update the Busy/Ready status upon nand flash read/write/erase. Signed-off-by: Kuo-Jung Su Cc: bal...@zabor.org --- Changes for v2

[Qemu-devel] [PATCH v2] hw/nand.c: bug fix to erase operation

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su The s->addr should be reset along with the s->addrlen, or it might contains the previous address at last address cycle, and causes problem to nand erase operation. Signed-off-by: Kuo-Jung Su Cc: bal...@zabor.org --- Changes for v2: - coding style fix --- hw/

[Qemu-devel] [PATCH v2] hw/wm8731: add WM8731 codec support

2013-01-24 Thread Kuo-Jung Su
From: Kuo-Jung Su Wolfson WM8731 is a simple audio codec for embedded systems. It has 2 input and 1 output ports: ** Input ** 1. Linue-In 2. Microphone ** Output ** 1. Headphone out BTW it's based on hw/wm8750.c with 16bit I2S support by default. Signed-off-by: Kuo-Ju

[Qemu-devel] [PATCH v2 06/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTMAC110 is a high quality 10/100 Ethernet controller with DMA function. It includes an AHB wrapper, DMA engine, on-chip memories (TX FIFO and RX FIFO), MAC, and MII or RMII interface. The FTMAC110 is an Ethernet controller that provides AHB master capability and is in

[Qemu-devel] [PATCH v2 04/20] arm: add Faraday FTDMAC020 AHB DMA support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday FTDMAC020 is designed to enhance the system performance and reduce the processor-interrupt generation. The system efficiency is improved by employing the high-speed data transfers between the system and device. The DMA controller provides eight configurable channels

[Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday A360/A369 EVB is a Faraday platform main board used for the Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. This main board provides a fully verified microprocessor platform, ATA-II, OTG 2.0 and USB 2.0 host connectivity

[Qemu-devel] [PATCH v2 03/20] arm: add Faraday FTAPBBRG020 APB DMA support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTAPBBRG020 supports the DMA functions for the AHB-to-AHB, AHB-to-APB, APB-to-AHB, and APB-to-APB transactions. The DMA engine can support up to 4 DMA channels (A, B, C, and D) and 15 handshaking channels. A DMA channel granted by the arbiter block is the only channel

[Qemu-devel] [PATCH v2 15/20] arm: add Faraday FTWDT010 watchdog timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTWDT010 is used to prevent system from infinite loop while software gets trapped in the deadlock. Under the normal operation, users should restart FTWDT010 at the regular intervals before counter counts down to 0. If the counter does reach 0, FTWDT010 will try to reset

[Qemu-devel] [PATCH v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSDC010 functions as the master in an SD memory card interface. It controls the communication between the AHB/APB bus and the SD card. Its core supports the SD bus of the SD/SDIO operations and the MMC bus of the MMC operation as well. Signed-off-by: Kuo-Jung Su --- hw

[Qemu-devel] [PATCH v2 19/20] arm: add Faraday FTKBC010 support for A369

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su Faraday keyboard/mouse controller (FTKBC010) is compliant with the IBM PS/2 interface. The interface uses the bidirectional clock and data lines to perform the half-duplex synchronous serial interface. It also provides the configurable scan matrix for the embedded or external

[Qemu-devel] [PATCH v2 07/20] arm: add Faraday FTI2C010 I2C controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTI2C010 allows the host processor to serve as a master or slave in the I2C bus. Data are transmitted to and received from the I2C bus via a buffered interface. Signed-off-by: Kuo-Jung Su --- hw/fti2c010.c | 205

[Qemu-devel] [PATCH v2 09/20] arm: add Faraday FTNANDC021 nand flash controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTNANDC021 NAND flash host controller allows the users to access the NAND flash memory simply by reading or writing into the registers. It provides the hardware-based NAND host controller so that data can be transferred in the high speed mode. The ECC information will be

[Qemu-devel] [PATCH v2 08/20] arm: add Faraday FTLCDC200 LCD controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTLCDC200 is an LCD controller that is compliant with the AMBA 2.0. It is a reusable soft-IP block and provides all the necessary control signals for a variety of TFT/CSTN/STN LCD panels. It was designed for portable electronics, including Personal Digital Assistants (PDAs

[Qemu-devel] [PATCH v2 12/20] arm: add Faraday FTSSP010 multi-function controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSSP010 is a synchronous serial port interface that allows the host processor to serve as a master or a slave. Various devices can be connected to this controller by using the serial protocol. It supports the TI Synchronous Serial Port (SSP), the Motorola Serial

[Qemu-devel] [PATCH v2 18/20] arm: add Faraday FTINTC020 interrupt controller

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTINTC020 interrupt controller supports both FIQ and IRQ signals to the microprocessor. It can handle up to 64 configurable IRQ sources and 64 FIQ sources. The output signals to the microprocessor can be configured as level-high/low active or edge-rising/falling triggered

[Qemu-devel] [PATCH v2 20/20] arm: add generic ROM model for Faraday SoC platforms

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su Since the NAND and SPI flash memories do not support random access, so most of the systems which use such memory as main storages usually has some bootstrap code stored inside the embedded ROM of its SoC, and the bootstrap code is responsible for SDRAM initialization and then

[Qemu-devel] [PATCH v2 16/20] arm: add Faraday FTTMR010 timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTTMR010 provides three independent sets of sub-timers. Each sub-timer can use either the internal system clock (PCLK) or the external clock (EXTCLK) for clock counting. Two match registers are provided for each sub-timer, whenever the value of the match registers equals

[Qemu-devel] [PATCH v2 05/20] arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTGMAC100 is a high-quality Ethernet controller with DMA function. It includes the AHB wrapper, DMA engine, on-chip memories (TX FIFO and RX FIFO), MAC, and MII/GMII interfaces. The FTGMAC100 is an Ethernet controller that provides AHB master capability and full compliance

[Qemu-devel] [PATCH v2 02/20] arm: add Faraday FUSBH200 EHCI controller

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su Faraday FUSBH200 is a one-port host controller for USB 2.0, which is fully compliant with the USB 2.0 specification and the Enhanced Host Controller Interface (EHCI) specification. This host controller supports the HS/FS/LS transactions, Isochronous/Interrupt/Control/Bulk

[Qemu-devel] [PATCH v2 14/20] arm: add Faraday FTRTC011 RTC timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTRTC011 is a flexible, small-area, and low-power Real Time Clock (RTC). It accepts two clock sources: APB bus clock (PCLK) and 32.768 kHz clock. When the system enters the sleep mode, the PCLK clock will be gated by the system while RTC will keep on counting. This

[Qemu-devel] [PATCH v2 17/20] arm: add Faraday FTPWMTMR010 timer support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTPWMTMR010 is an APB device which provides up to 8 independent timers. Each timer can use either the internal system clock (The PCLK of APB) or external clock. These timers can be used to generate internal interrupts to the CPU. They can also be used to trigger DMA

[Qemu-devel] [PATCH v2 11/20] arm: add Faraday FTTSC010 touchscreen controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTTSC010 provides controlling signals to handle ADC conversion and panel driver. The control signal is base on Faraday 12-bit ADC IP of FXADC140HC0H_TPANEL, which is a 12-bit SAR ADC with 8-to-1 multiplexer, IPGA and panel driver. The ADC provides 8-channel analog input via

[Qemu-devel] [PATCH v2 00/20] Add Faraday A36x SoC platform support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su These patches introduce Faraday A36x SoC platform support. Faraday provides ARMv4/ARMv5TE compatible solutions, and focus on ASIC design service. Here are some public documents for you reference. http://www.faraday-tech.com/html/documentation/index.html The pre-built

[Qemu-devel] [PATCH v2 13/20] arm: add Faraday FTSPI020 spi flash controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSPI020 is primariy designed for high-speed spi flash support. It supports double data rate and fast-read dual/quad for spi flash. It use one AHB slave port and one SPI interface controller to execute the SPI Flash command. Moreover, it also provides the PIO mode or DMA

Re: [Qemu-devel] [PATCH v2 19/20] arm: add Faraday FTKBC010 support for A369

2013-01-27 Thread Kuo-Jung Su
on A369. 2. The keypad buttons monitored by FTKBC010 are some hard wired buttons on the board. So it's not appropriate to use existing PS2 keyboard emulation here. Best Wishes Dante Su 2013/1/26 Paul Brook > > From: Kuo-Jung Su > > > > Faraday keyboard/mouse c

Re: [Qemu-devel] [PATCH v2 20/20] arm: add generic ROM model for Faraday SoC platforms

2013-01-27 Thread Kuo-Jung Su
For a start the block device you're using is for parallel plash devices, > which > are directly mapped. This contradicts your desciption which talks about > serial flash. > > Please look at how other boards work. There are already mechanisms for > creating rom areas, or preloading images into ram. > > Paul > -- Best wishes, Kuo-Jung Su

Re: [Qemu-devel] [PATCH v2 03/20] arm: add Faraday FTAPBBRG020 APB DMA support

2013-01-27 Thread Kuo-Jung Su
{ > > +dst_map = dst_ptr = cpu_physical_memory_map(c->dst, &dst_len, > 1); > > +} > > cpu_physical_memory_map might not map the whole region you requested. This > will cause badness in the subsequent code. > > My bad, I forgot this, I'll fix

Re: [Qemu-devel] [PATCH v2 05/20] arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-01-27 Thread Kuo-Jung Su
> > +case REG_TXPD: > > +case REG_HPTXPD: > > +qemu_mod_timer(s->qtimer, qemu_get_clock_ns(vm_clock) + 1); > > Using a timer here is wrong. Either you should transmit immediately, or > you > should wait for something else to happen. Delaying by 1ns is never the > right > answer. > > Paul > yes, it's my bad. I'll try to use mutex later -- Best wishes, Kuo-Jung Su

Re: [Qemu-devel] [PATCH v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-27 Thread Kuo-Jung Su
> +| sd_read_data(s->card) << 24; > > +s->datacnt -= 4; > > +if (s->datacnt <= 0) { > > +s->status |= STR_DAT_END; > > +} > > This will fail if datacnt is not a multiple of 4. > > Paul > my bad, datacnt shall not be unsigned. -- Best wishes, Kuo-Jung Su

Re: [Qemu-devel] [PATCH v2 19/20] arm: add Faraday FTKBC010 support for A369

2013-01-27 Thread Kuo-Jung Su
2013/1/28 Andreas Färber > Am 28.01.2013 07:05, schrieb Kuo-Jung Su: > > Sorry, > > the description was directly copied from the introduction of its > datasheet, > > it appears to be ambigous in this case. > > I thought so for the "high quality" ethe

Re: [Qemu-devel] [PATCH] hw/m25p80.c: add WRSR(0x01) support

2013-01-27 Thread Kuo-Jung Su
gt; after WRSR(0x01). > >> There are some drivers (i.e my own tiny driver for RTOSes) would > >> check the WEL(0x02) in status register to make sure the protection > >> is correctly turned off, so this patch is mandatory to me. > >> > >> Signed-off-by:

Re: [Qemu-devel] [PATCH v2] target-arm: add Faraday ARMv5TE processors support

2013-01-27 Thread Kuo-Jung Su
2013/1/25 Peter Maydell > On 25 January 2013 07:18, Kuo-Jung Su wrote: > > From: Kuo-Jung Su > > > > Faraday processors are a series of ARMv4/ARMv5TE clone. > > > > * ARMv4 series (FA526, FA626). > > > > All of them are now out-of-date, so I ha

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-27 Thread Kuo-Jung Su
sure, no problem. 2013/1/28 Andreas Färber > Am 25.01.2013 10:07, schrieb Andreas Färber: > > Am 25.01.2013 09:19, schrieb Kuo-Jung Su: > >> hw/a360.c| 271 +++ > >> hw/a369.c| 581 > +

Re: [Qemu-devel] [PATCH v2 02/20] arm: add Faraday FUSBH200 EHCI controller

2013-01-27 Thread Kuo-Jung Su
a little for you: > http://patchwork.ozlabs.org/patch/215919/ > > Andreas > > -- > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg > -- Best wishes, Kuo-Jung Su

Re: [Qemu-devel] [PATCH v2 00/20] Add Faraday A36x SoC platform support

2013-01-28 Thread Kuo-Jung Su
2013/1/28 Andreas Färber > Am 25.01.2013 09:19, schrieb Kuo-Jung Su: > > From: Kuo-Jung Su > > > > These patches introduce Faraday A36x SoC platform support. > > > > Faraday provides ARMv4/ARMv5TE compatible solutions, > > and focus on ASIC design service.

[Qemu-devel] [PATCH 0/2] usb-ehci: add Faraday FUSBH200 support

2013-01-28 Thread Kuo-Jung Su
From: Kuo-Jung Su First of all, Andreas's QOM realizefn patch for hcd-ehci-sysbus must be applied prior to this patch set. Here is the link to Andreas's QOM realizefn patch: http://patchwork.ozlabs.org/patch/215919/ Now return to the topic, this patch set has 2 parts: 1. Repl

[Qemu-devel] [PATCH 1/2] usb-ehci: replace PORTSC macros with variables

2013-01-28 Thread Kuo-Jung Su
From: Kuo-Jung Su Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) Signed-off-by: Kuo-Jung Su Cc: Gerd Hoffmann Cc: Andreas Cc: Peter Crosthwaite --- hw/usb/hcd-ehci-sysbus.c |6 ++ hw/usb/hcd-ehci.c| 21

[Qemu-devel] [PATCH 2/2] usb-ehci: add Faraday FUSBH200 support

2013-01-28 Thread Kuo-Jung Su
From: Kuo-Jung Su Add Faraday FUSBH200 support, which is slightly different from EHCI spec. (Or maybe simply a bad/wrong implementation...) Signed-off-by: Kuo-Jung Su Cc: Gerd Hoffmann Cc: Andreas Cc: Peter Crosthwaite --- hw/usb/hcd-ehci-sysbus.c | 66

Re: [Qemu-devel] [PATCH 1/2] usb-ehci: replace PORTSC macros with variables

2013-01-28 Thread Kuo-Jung Su
b_ehci_pci_initfn too. > > Otherwise the patch looks fine. > > cheers, > Gerd > > -- Best wishes, Kuo-Jung Su

Re: [Qemu-devel] [PATCH 2/2] usb-ehci: add Faraday FUSBH200 support

2013-01-29 Thread Kuo-Jung Su
2013/1/29 Andreas Färber > Am 29.01.2013 06:43, schrieb Kuo-Jung Su: > > From: Kuo-Jung Su > > > > Add Faraday FUSBH200 support, which is slightly different from EHCI spec. > > (Or maybe simply a bad/wrong implementation...) > > > > Signed-off-by: Kuo

Re: [Qemu-devel] [PATCH v2] target-arm: add Faraday ARMv5TE processors support

2013-01-29 Thread Kuo-Jung Su
Hi Peter: Thanks for the comments. I'll double if the ARM_FEATURE_TCM is indetical to Faraday's I/D-scrtachpad, , add the missing MPU functions for FT606TE, and avoid using CP_ANY in next patch. Best Wishes Dante 2013/1/28 Peter Maydell > On 25 January 2013 07:18, Kuo-J

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-31 Thread Kuo-Jung Su
2013/2/1 Igor Mitsyanko > > Hi, Kuo-Jung, please see several comments bellow. > > > > On 01/25/2013 12:19 PM, Kuo-Jung Su wrote: >> >> From: Kuo-Jung Su >> >> The Faraday A360/A369 EVB is a Faraday platform main board used for the >> Faraday IP fun

Re: [Qemu-devel] [PATCH 2/2] usb-ehci: add Faraday FUSBH200 support

2013-01-31 Thread Kuo-Jung Su
2013/1/31 Andreas Färber : > Am 30.01.2013 01:44, schrieb Kuo-Jung Su: >> >> 2013/1/29 Andreas Färber mailto:afaer...@suse.de>> >> >> Gerd, what are your thoughts? If Kuo-Jung doesn't mind, I would offer to >> send a v2 implementing t

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-01-31 Thread Kuo-Jung Su
2013/2/1 Kuo-Jung Su : > 2013/2/1 Igor Mitsyanko >> >> Hi, Kuo-Jung, please see several comments bellow. >> >> >> >> On 01/25/2013 12:19 PM, Kuo-Jung Su wrote: >>> >>> From: Kuo-Jung Su >>> >>> The Faraday A360/A369

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-02-01 Thread Kuo-Jung Su
Change log for V3) Best Wishes Dante 2013/2/1 Andreas Färber : > Hi, > > Am 01.02.2013 02:39, schrieb Kuo-Jung Su: >> 2013/2/1 Igor Mitsyanko >>> >>> On 01/25/2013 12:19 PM, Kuo-Jung Su wrote: >>>> >>>> +/* Board init. */ >>>>

[Qemu-devel] [PATCH v3] hw: add WM8731 codec support

2013-02-04 Thread Kuo-Jung Su
From: Kuo-Jung Su Wolfson WM8731 is a simple audio codec for embedded systems. It has 2 input and 1 output ports: ** Input ** 1. Linue-In 2. Microphone ** Output ** 1. Headphone out BTW it's based on hw/wm8750.c with 16bit I2S support by default. Signed-off-by: Kuo-Jung S

[Qemu-devel] [PATCH v3] hw/m25p80.c: add WRSR(0x01) support

2013-02-04 Thread Kuo-Jung Su
From: Kuo-Jung Su Atmel, SST and Intel/Numonyx serial flash tend to power up with the software protection bits set. And thus the new m25p80.c in linux kernel would always tries to use WREN(0x06) + WRSR(0x01) to turn-off the protection. The WEL(0x02) of status register is supposed to be cleared

[Qemu-devel] [PATCH v3] target-arm: add Faraday ARMv5TE processors support

2013-02-04 Thread Kuo-Jung Su
From: Kuo-Jung Su Faraday processors are a series of ARMv4/ARMv5TE clone. * ARMv4 series (FA526, FA626). All of them are now out-of-date, so I have no plan for them. * ARMv5TE series (FA606TE, FA626TE, FA616TE, FA726TE) All the single core RISC listed above are included in this patch

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-02-04 Thread Kuo-Jung Su
2013/2/1 Andreas Färber : > 嗨 國榮, > > Am 01.02.2013 09:57, schrieb Kuo-Jung Su: >> Thanks for the information, and sorry for the mess I've done. > > You don't need to apologize for every review comment you get. It's > meant for improvements of results, not

[Qemu-devel] [PATCH v2] usb-ehci: Replace PORTSC macros with variables

2013-02-04 Thread Kuo-Jung Su
From: Kuo-Jung Su Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) to support some non-standard EHCI controllers. Signed-off-by: Kuo-Jung Su Cc: Gerd Hoffmann Cc: Andreas Cc: Peter Crosthwaite --- Changes for V2: - add missing port init to

[Qemu-devel] [PATCH v3 00/20] Add Faraday A36x SoC platform support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su These patches introduce Faraday A36x SoC platform support. Faraday provides ARMv4/ARMv5TE compatible solutions, and focus on ASIC design service. Here are some public documents for your reference. http://www.faraday-tech.com/html/documentation/index.html The pre-built

[Qemu-devel] [PATCH v3 02/20] arm: add Faraday a369 SoC platform support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday A369 EVB is a Faraday SoC platform evalution board used for Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c| 161

[Qemu-devel] [PATCH v3 06/20] arm: add Faraday FTWDT010 watchdog timer support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTWDT010 is used to prevent system from infinite loop while software gets trapped in the deadlock. Under the normal operation, users should restart FTWDT010 at the regular intervals before counter counts down to 0. If the counter does reach 0, FTWDT010 will try to reset

[Qemu-devel] [PATCH v3 13/20] arm: add Faraday FTNANDC021 nand flash controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTNANDC021 is an integrated NAND flash controller which re-pack the NAND flash command set with a shorter built-in opcode. It also provides a register base interface for user to easily access the underlying NAND flash chips, and also supports HW ECC. However the optional

[Qemu-devel] [PATCH v3 01/20] arm: add Faraday a360 SoC platform support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday A360 EVB is a Faraday SoC platform evaluation board used for Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday.h | 52

[Qemu-devel] [PATCH v3 14/20] arm: add Faraday FTSSP010 multi-function controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSSP010 is a multi-function synchronous serial port interface controller which supports SSP, SPI, I2S, AC97 and SPDIF. However only I2S and SPI protocol have been implemented in this patch. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm

[Qemu-devel] [PATCH v3 05/20] arm: add Faraday FTINTC020 interrupt controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTINTC020 interrupt controller supports both FIQ and IRQ signals to the microprocessor. It can handle up to 64 configurable IRQ sources and 64 FIQ sources. The output signals to the microprocessor can be configured as level-high/low active or edge-rising/falling triggered

[Qemu-devel] [PATCH v3 17/20] arm: add Faraday FTLCDC200 LCD controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTLCDC200 Color LCD controller performs translation of pixel-coded data into the required formats and timings to drive a variety of single/dual mono and color LCDs. Depending on the LCD type and mode, the unpacked data can represent: 1. an actual true display gray or

[Qemu-devel] [PATCH v3 16/20] arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTGMAC100 Ethernet controller has a DMA engine which handles all data transfers between the system memory and on-chip memories. Its DMA engine supports both 16-bits and 32-bits alignment, and thus make it possible to support zero-copy transfer at both Linux and WINCE. It

[Qemu-devel] [PATCH v3 09/20] arm: add Faraday FTRTC011 RTC timer support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su It provides separate second, minute, hour, and day counters. The second counter is toggled each second, the minute counter is toggled each minute, the hour counter is toggled each hour, and the day counter is toggled each day. The FTRTC011 provides a programmable auto-alarm

[Qemu-devel] [PATCH v3 18/20] arm: add Faraday FTTSC010 touchscreen controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTTSC010 provides two operation modes to sample the analog input voltage. 1. The manual operation mode needs to program and control the panel drivers by software step-by-step for the x-y position measurement. 2. The auto-scan mode provides a periodic sampling

[Qemu-devel] [PATCH v3 12/20] arm: add Faraday FTI2C010 I2C controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTI2C010 is an I2C master controller. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a360.c |6 ++ hw/arm/faraday_a369.c |6 ++ hw/arm/fti2c010.c | 206 + hw/arm/fti2c010.h

[Qemu-devel] [PATCH v3 03/20] arm: add Faraday FTAHBC020 support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su It's used to perform AHB remap and also QEMU RAM initialization when SDRAM is initialized before AHB remap process activated. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c |6 ++ hw/arm/ftahbc020.c|

[Qemu-devel] [PATCH v3 04/20] arm: add Faraday FTDDRII030 support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTDDRII030 is a DDRII SDRAM controller which is responsible for SDRAM initialization. In QEMU we simply emualte the SDRAM enable function, neither timing parameter nor bank setup is handled. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm

[Qemu-devel] [PATCH v3 11/20] arm: add Faraday FTAPBBRG020 APB DMA support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTAPBBRG020 supports the DMA functions for the AHB-to-AHB, AHB-to-APB, APB-to-AHB, and APB-to-APB transactions. The DMA engine can support up to 4 DMA channels (A, B, C, and D) and 15 handshaking channels. A DMA channel granted by the arbiter block is the only channel

[Qemu-devel] [PATCH v3 07/20] arm: add Faraday FTTMR010 timer support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTTMR010 provides three independent sets of sub-timers. Two match registers are provided for each sub-timer, whenever the value of the match registers equals any one value of the sub-timers, the timer interrupt will be immediately triggered. And it would also issue an

[Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTMAC110 is an Ethernet controller that provides AHB master capability and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. Its DMA controller handles all data transfers between system memory and on-chip memories. It supports half-word data transfer for

[Qemu-devel] [PATCH v3 08/20] arm: add Faraday FTPWMTMR010 timer support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTPWMTMR010 is an APB device which provides up to 8 independent timers. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c | 11 +++ hw/arm/ftpwmtmr010.c | 246 + hw/arm/ftpwmtmr010.h

[Qemu-devel] [PATCH v3 10/20] arm: add Faraday FTDMAC020 AHB DMA support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday FTDMAC020 provides eight configurable channels for the memory-to-memory, memory-to-peripheral, peripheral-to-peripheral, and peripheral-to-memory transfers. Each DMA channel supports chain transfer and can be programmed to one of the 16 handshaking channels in the

[Qemu-devel] [PATCH v3 19/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSDC010 is a clone of Arm PrimeCell PL181. While they share lots of design concept, the implementation differ slightly. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a360.c |7 + hw/arm/faraday_a369.c |7 + hw/arm/ftsdc010.c

[Qemu-devel] [PATCH v3 20/20] arm: add Faraday FTSPI020 SPI flash controller support

2013-02-06 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSPI020 is an integrated SPI Flash controller which supports upto 4 flash chips. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369.c | 12 ++ hw/arm/ftspi020.c | 345 + hw/arm

Re: [Qemu-devel] [PATCH v3 20/20] arm: add Faraday FTSPI020 SPI flash controller support

2013-02-06 Thread Kuo-Jung Su
\ 2013/2/7 Peter Crosthwaite : > Hi Kuo-Jung, > > On Wed, Feb 6, 2013 at 7:45 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTSPI020 is an integrated SPI Flash controller >> which supports upto 4 flash chips. >> >> Signed-off-by: Kuo-Jun

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-17 Thread Kuo-Jung Su
2013/2/9 Blue Swirl : > On Wed, Feb 6, 2013 at 9:45 AM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTMAC110 is an Ethernet controller that provides AHB master capability >> and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. >> It

Re: [Qemu-devel] [PATCH v3 02/20] arm: add Faraday a369 SoC platform support

2013-02-17 Thread Kuo-Jung Su
2013/2/8 Igor Mitsyanko > > > On 02/06/2013 01:45 PM, Kuo-Jung Su wrote: > > From: Kuo-Jung Su > > The Faraday A369 EVB is a Faraday SoC platform evalution board used for > Faraday IP functional verification based on the well-known ARM AMBA 2.0 > architecture. >

Re: [Qemu-devel] [PATCH v3 20/20] arm: add Faraday FTSPI020 SPI flash controller support

2013-02-17 Thread Kuo-Jung Su
2013/2/7 Peter Crosthwaite : > On Thu, Feb 7, 2013 at 4:59 PM, Kuo-Jung Su wrote: >> \ >> >> 2013/2/7 Peter Crosthwaite : >>> Hi Kuo-Jung, >>> >>> On Wed, Feb 6, 2013 at 7:45 PM, Kuo-Jung Su wrote: >>>> From: Kuo-Jung Su >>>

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-17 Thread Kuo-Jung Su
2013/2/17 Peter Crosthwaite : > On Wed, Feb 6, 2013 at 7:45 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTMAC110 is an Ethernet controller that provides AHB master capability >> and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. >&g

Re: [Qemu-devel] [PATCH v3 03/20] arm: add Faraday FTAHBC020 support

2013-02-18 Thread Kuo-Jung Su
2013/2/17 Peter Crosthwaite : > Hi Dante, > > On Wed, Feb 6, 2013 at 7:45 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> It's used to perform AHB remap and also QEMU RAM initialization >> when SDRAM is initialized before AHB remap process activ

Re: [Qemu-devel] [PATCH RFT v3 0/5] usb: QOM realize support for SysBus EHCI and FUSBH200

2013-02-18 Thread Kuo-Jung Su
ung's FUSBH200/PORTSC v1/v2: > * Moved old portscbase and portnr values into base class_init. > * Moved mem_vendor field to new FUSBH200EHCIState. > * Replace vendor init callback with derived instance_init. > * Introduced enum for vendor registers. > * Replace magic number 0x34

Re: [Qemu-devel] [PATCH v3 01/20] arm: add Faraday a360 SoC platform support

2013-02-18 Thread Kuo-Jung Su
2013/2/18 Andreas Färber : > Am 06.02.2013 10:45, schrieb Kuo-Jung Su: >> +typedef struct FaradayMachState { >> +ARMCPU *cpu; >> +DeviceState *scu; >> +DeviceState *ahbc; >> +DeviceState *ddrc; >> +DeviceState *hdma[2]; /*

Re: [Qemu-devel] [PATCH v3 01/20] arm: add Faraday a360 SoC platform support

2013-02-18 Thread Kuo-Jung Su
2013/2/8 Igor Mitsyanko : > On 02/06/2013 01:45 PM, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The Faraday A360 EVB is a Faraday SoC platform evaluation board used for >> Faraday IP functional verification based on the well-known ARM AMBA 2.0 >> architecture.

Re: [Qemu-devel] [PATCH v3 04/20] arm: add Faraday FTDDRII030 support

2013-02-18 Thread Kuo-Jung Su
2013/2/8 Igor Mitsyanko : > > On 02/06/2013 01:45 PM, Kuo-Jung Su wrote: > > From: Kuo-Jung Su > > The FTDDRII030 is a DDRII SDRAM controller which is responsible for > SDRAM initialization. > In QEMU we simply emualte the SDRAM enable function, neither timing > pa

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-18 Thread Kuo-Jung Su
2013/2/18 Stefan Hajnoczi : > On Wed, Feb 06, 2013 at 05:45:19PM +0800, Kuo-Jung Su wrote: >> From: Kuo-Jung Su >> >> The FTMAC110 is an Ethernet controller that provides AHB master capability >> and is in full compliance with the IEEE 802.3 10/100 Mbps specificat

Re: [Qemu-devel] [PATCH v3 04/20] arm: add Faraday FTDDRII030 support

2013-02-18 Thread Kuo-Jung Su
2013/2/18 Andreas Färber : > Am 07.02.2013 18:26, schrieb Igor Mitsyanko: >> On 02/06/2013 01:45 PM, Kuo-Jung Su wrote: >>> +static void ftddrii030_reset(DeviceState *ds) >>> +{ >>> +SysBusDevice *busdev = SYS_BUS_DEVICE(ds); >>> +Ftddrii030Stat

Re: [Qemu-devel] [PATCH v3 04/20] arm: add Faraday FTDDRII030 support

2013-02-18 Thread Kuo-Jung Su
2013/2/18 Andreas Färber : > Am 18.02.2013 10:31, schrieb Kuo-Jung Su: >> 2013/2/8 Igor Mitsyanko : >>> On 02/06/2013 01:45 PM, Kuo-Jung Su wrote: >>> >>> +static void ftddrii030_reset(DeviceState *ds) >>> +{ >>> +SysBusDevice *bu

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-18 Thread Kuo-Jung Su
2013/2/18 Stefan Hajnoczi : > On Mon, Feb 18, 2013 at 05:44:38PM +0800, Kuo-Jung Su wrote: >> 2013/2/18 Stefan Hajnoczi : >> > On Wed, Feb 06, 2013 at 05:45:19PM +0800, Kuo-Jung Su wrote: >> >> From: Kuo-Jung Su >> >> >> >> The FTMAC

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-18 Thread Kuo-Jung Su
2013/2/19 Kuo-Jung Su : > 2013/2/18 Stefan Hajnoczi : >> On Mon, Feb 18, 2013 at 05:44:38PM +0800, Kuo-Jung Su wrote: >>> 2013/2/18 Stefan Hajnoczi : >>> > On Wed, Feb 06, 2013 at 05:45:19PM +0800, Kuo-Jung Su wrote: >>> >> From: Kuo-Jung Su >>

Re: [Qemu-devel] [PATCH v3 20/20] arm: add Faraday FTSPI020 SPI flash controller support

2013-02-18 Thread Kuo-Jung Su
2013/2/8 Peter Crosthwaite : > On Thu, Feb 7, 2013 at 10:13 PM, Andreas Färber wrote: >> Am 07.02.2013 13:04, schrieb Peter Maydell: >>> On 7 February 2013 11:50, Andreas Färber wrote: >>>> Am 07.02.2

Re: [Qemu-devel] [PATCH v3 15/20] arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-19 Thread Kuo-Jung Su
2013/2/19 Stefan Hajnoczi : > On Tue, Feb 19, 2013 at 09:43:27AM +0800, Kuo-Jung Su wrote: >> 2013/2/19 Kuo-Jung Su : >> > 2013/2/18 Stefan Hajnoczi : >> >> On Mon, Feb 18, 2013 at 05:44:38PM +0800, Kuo-Jung Su wrote: >> >>> 2013/2/18 Stefan Hajnoczi

[Qemu-devel] [PATCH v4 00/23] Add Faraday A369 SoC platform support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su These patches introduce Faraday A36x SoC platform support. Here are some public documents for your reference. http://www.faraday-tech.com/html/documentation/index.html The pre-built images are also available at my Google Drive: https://docs.google.com/folder/d

[Qemu-devel] [PATCH v4 04/23] hw/arm: add Faraday FTAHBC020 support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su It's used to perform AHB remap and also QEMU RAM initialization when SDRAM is initialized before AHB remap process activated. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday_a369_soc.c |3 + hw/arm/ftahbc020.c|

[Qemu-devel] [PATCH v4 09/23] hw/arm: add Faraday FTDMAC020 AHB DMA support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The Faraday FTDMAC020 provides eight configurable channels for the memory-to-memory, memory-to-peripheral, peripheral-to-peripheral, and peripheral-to-memory transfers. Each DMA channel supports chain transfer and can be programmed to one of the 16 handshaking channels in the

[Qemu-devel] [PATCH v4 16/23] hw/arm: add Faraday FTSSP010 multi-function controller support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSSP010 is a multi-function synchronous serial port interface controller which supports SSP, SPI, I2S, AC97 and SPDIF. Only I2S and SPI protocol have been implemented in this patch. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |1 + hw/arm/faraday.h

[Qemu-devel] [PATCH v4 11/23] hw/nand.c: bug fix to BUSY/READY status bit

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su Status Register(SR): SR[6] behaves the same as R/B# pin SR[6] = 0 indicates the device is busy; SR[6] = 1 means the device is ready Some NAND flash controller (i.e. ftnandc021) relies on the SR[6] to determine if the NAND flash erase/program is success, and then report

[Qemu-devel] [PATCH v4 08/23] hw/arm: add Faraday FTRTC011 RTC timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su It provides separate second, minute, hour, and day counters. The second counter is toggled each second, the minute counter is toggled each minute, the hour counter is toggled each hour, and the day counter is toggled each day. The FTRTC011 provides a programmable auto-alarm

[Qemu-devel] [PATCH v4 10/23] hw/arm: add Faraday FTAPBBRG020 APB DMA support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTAPBBRG020 supports the DMA functions for the AHB-to-AHB, AHB-to-APB, APB-to-AHB, and APB-to-APB transactions. The DMA engine can support up to 4 DMA channels (A, B, C, and D) and 15 handshaking channels. A DMA channel granted by the arbiter block is the only channel

[Qemu-devel] [PATCH v4 01/23] target-arm: add Faraday ARMv5TE processors support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su This patch includes the single core support to FA606TE, FA626TE, FA616TE, FA726TE and CP15 Faraday extensions (AUX and I/D-Scratchpad). Signed-off-by: Kuo-Jung Su --- target-arm/cpu.c | 52 +++ target-arm/cpu.h |6 +++- target-arm

[Qemu-devel] [PATCH v4 23/23] hw/arm: add Faraday FTTMR010 timer support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTTMR010 provides three independent sets of sub-timers. Two match registers are provided for each sub-timer, whenever the value of the match registers equals any one value of the sub-timers, the timer interrupt will be immediately triggered. And it would also issue an

[Qemu-devel] [PATCH v4 17/23] hw/arm: add Faraday FTGMAC100 1Gbps ethernet support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTGMAC100 Ethernet controller has a DMA engine which handles all data transfers between the system memory and on-chip memories. Its DMA engine supports both 16-bits and 32-bits alignment, and thus make it possible to support zero-copy transfer at both Linux and WINCE. It

[Qemu-devel] [PATCH v4 22/23] hw/arm: add Faraday FTMAC110 10/100Mbps ethernet support

2013-02-26 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTMAC110 is an Ethernet controller that provides AHB master capability and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. Its DMA controller handles all data transfers between system memory and on-chip memories. It supports half-word data transfer

  1   2   3   >