Skip to contentSkip to conversation

arm: Drop deprecated boards

PATCH In review Peter Maydell 5 participants 112 messages Sep 3, 2024 – Oct 1, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover arm: Drop deprecated boards

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2
We get to drop over 30,000 lines of unmaintained code. So it's a big patchset but it's almost all deletions.

We have some command line options which were documented as only used by the pxa2xx LCD display driver: -portrait and -rotate. These allowed the user to tell the display device to rotate its output by 90/180/270 degrees (and the ui input layer to correspondingly rotate mouse event coordinates to match). I didn't realize these existed when we deprecated the pxa2xx machines -- do we need a separate deprecate-and-drop period to remove the command line options? (If so, I can drop the relevant patch from this series.)

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

Removing these machines hopefully will make it easier to complete some API transitions (e.g. there is only one caller of the ui/input-legacy.c function qemu_add_kbd_event_handler() left, and five of qemu_add_mouse_event_handler(); a lot of qemu_register_reset() calls have gone; and so on).

(There will be a trivial conflict with my reset patch that gets rid of direct setting of DeviceClass::reset in some places, but I'll fix that up when merging.)

thanks
-- PMM

Peter Maydell (53):
hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device
hw/ide: Remove DSCM-1XXXX microdrive device model hw/display: Remove tc6393xb device
hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP
hw/arm: Remove 'cheetah' machine
hw/arm: Remove 'connex' and 'verdex' machines
hw/arm: Remove 'mainstone' machine
hw/misc: Remove MAINSTONE_FPGA device
hw/arm: Remove 'z2' machine
hw/arm: Remove STRONGARM->PXA2XX dependency hw/timer/pxa2xx_timer: Remove use of pxa.h header
hw/arm: Remove pxa2xx.c
hw/sd: Remove pxa2xx_mmci.c
hw/input: Remove pxa2xx_keypad
hw/display: Remove pxa2xx_lcd.c
hw/dma: Remove pxa2xx_dma
hw/pcmcia: Remove pxa2xx pcmcia device
hw/arm: Remove pxa2xx_gpio
hw/arm: Remove pxa2xx_pic
hw/timer: Remove pxa27x-timer
vl.c: Remove pxa2xx-specific -portrait and -rotate options hw/arm: Remove 'n800' and 'n810' machines
hw/misc: Remove cbus
hw/display: Remove Blizzard display device
hw/input: Remove tsc2005 touchscreen controller
hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device
hw/input: Remove lm832x device
hw/block: Remove OneNAND device
hw/usb: Remove tusb6010 USB controller
hw/usb: Remove MUSB USB host controller
hw: Remove PCMCIA subsystem
docs: Document removal of old Arm boards
hw/arm: Remove omap2.c
hw/gpio: Remove TYPE_OMAP2_GPIO
hw/char: Remove omap2_uart
hw/intc: Remove omap2-intc device
hw/sd: Remove omap2_mmc device
hw/misc: Remove omap_sdrc device
hw/misc: Remove omap_gpmc
hw/timer: Remove omap_gptimer
hw/timer: Remove omap_synctimer
hw/block: Remove ecc
hw/ssi: Remove omap_mcspi
hw/misc: Remove omap_tap device
hw/display: Remove omap_dss
hw/misc: Remove omap_l4 device
hw/misc/omap_clk: Remove OMAP2-specifics
hw/dma: Remove omap_dma4 device
hw: Remove omap2 specific defines and enums

 MAINTAINERS                             |   58 +-
 docs/about/deprecated.rst               |   15 -
 docs/about/removed-features.rst         |   15 +
 docs/system/arm/gumstix.rst             |   21 -
 docs/system/arm/mainstone.rst           |   25 -
 docs/system/arm/nseries.rst             |   33 -
 docs/system/arm/palm.rst                |   23 -
 docs/system/arm/xscale.rst              |   35 -
 docs/system/target-arm.rst              |    5 -
 configs/devices/arm-softmmu/default.mak |    7 -
 include/hw/adc/max111x.h                |   56 -
 include/hw/arm/omap.h                   |  350 +--
 include/hw/arm/pxa.h                    |  197 --
 include/hw/block/flash.h                |   14 -
 include/hw/display/blizzard.h           |   21 -
 include/hw/display/tc6393xb.h           |   21 -
 include/hw/input/lm832x.h               |   28 -
 include/hw/input/tsc2xxx.h              |   41 -
 include/hw/misc/cbus.h                  |   31 -
 include/hw/pcmcia.h                     |   66 -
 include/hw/usb/hcd-musb.h               |   49 -
 include/sysemu/sysemu.h                 |    1 -
 hw/adc/max111x.c                        |  236 --
 hw/arm/gumstix.c                        |  141 --
 hw/arm/mainstone.c                      |  175 --
 hw/arm/nseries.c                        | 1473 ------------
 hw/arm/omap2.c                          | 2715 -----------------------
 hw/arm/palm.c                           |  324 ---
 hw/arm/pxa2xx.c                         | 2393 --------------------
 hw/arm/pxa2xx_gpio.c                    |  365 ---
 hw/arm/pxa2xx_pic.c                     |  359 ---
 hw/arm/spitz.c                          | 1284 -----------
 hw/arm/tosa.c                           |  327 ---
 hw/arm/z2.c                             |  355 ---
 hw/block/ecc.c                          |   91 -
 hw/block/onenand.c                      |  872 --------
 hw/char/omap_uart.c                     |  113 -
 hw/display/blizzard.c                   | 1026 ---------
 hw/display/omap_dss.c                   | 1093 ---------
 hw/display/pxa2xx_lcd.c                 | 1451 ------------
 hw/display/tc6393xb.c                   |  568 -----
 hw/dma/omap_dma.c                       |  451 +---
 hw/dma/pxa2xx_dma.c                     |  591 -----
 hw/gpio/max7310.c                       |  217 --
 hw/gpio/omap_gpio.c                     |  557 -----
 hw/ide/microdrive.c                     |  644 ------
 hw/input/ads7846.c                      |  186 --
 hw/input/lm832x.c                       |  528 -----
 hw/input/pxa2xx_keypad.c                |  331 ---
 hw/input/tsc2005.c                      |  571 -----
 hw/input/tsc210x.c                      | 1241 -----------
 hw/intc/omap_intc.c                     |  276 ---
 hw/misc/cbus.c                          |  619 ------
 hw/misc/mst_fpga.c                      |  269 ---
 hw/misc/omap_clk.c                      |  527 +----
 hw/misc/omap_gpmc.c                     |  898 --------
 hw/misc/omap_l4.c                       |  162 --
 hw/misc/omap_sdrc.c                     |  167 --
 hw/misc/omap_tap.c                      |  117 -
 hw/pcmcia/pcmcia.c                      |   24 -
 hw/pcmcia/pxa2xx.c                      |  248 ---
 hw/rtc/twl92230.c                       |  882 --------
 hw/sd/omap_mmc.c                        |   63 -
 hw/sd/pxa2xx_mmci.c                     |  594 -----
 hw/ssi/omap_spi.c                       |  380 ----
 hw/timer/omap_gptimer.c                 |  512 -----
 hw/timer/omap_synctimer.c               |  110 -
 hw/timer/pxa2xx_timer.c                 |   25 -
 hw/usb/hcd-musb.c                       | 1553 -------------
 hw/usb/tusb6010.c                       |  850 -------
 system/globals.c                        |    1 -
 system/vl.c                             |   11 -
 ui/input.c                              |   36 -
 hw/Kconfig                              |    1 -
 hw/adc/Kconfig                          |    3 -
 hw/adc/meson.build                      |    1 -
 hw/arm/Kconfig                          |   90 +-
 hw/arm/meson.build                      |    9 -
 hw/block/Kconfig                        |    6 -
 hw/block/meson.build                    |    2 -
 hw/display/Kconfig                      |    3 -
 hw/display/meson.build                  |    4 -
 hw/dma/meson.build                      |    1 -
 hw/gpio/Kconfig                         |    7 +-
 hw/gpio/meson.build                     |    3 +-
 hw/ide/Kconfig                          |    6 -
 hw/ide/meson.build                      |    1 -
 hw/input/Kconfig                        |   13 -
 hw/input/meson.build                    |    5 -
 hw/input/trace-events                   |    3 -
 hw/meson.build                          |    1 -
 hw/misc/Kconfig                         |    1 -
 hw/misc/meson.build                     |    6 -
 hw/pcmcia/Kconfig                       |    2 -
 hw/pcmcia/meson.build                   |    2 -
 hw/rtc/Kconfig                          |    4 -
 hw/rtc/meson.build                      |    1 -
 hw/sd/meson.build                       |    1 -
 hw/sd/trace-events                      |    4 -
 hw/ssi/meson.build                      |    1 -
 hw/timer/Kconfig                        |    3 +
 hw/timer/meson.build                    |    4 +-
 hw/usb/Kconfig                          |    8 -
 hw/usb/meson.build                      |    2 -
 qemu-options.hx                         |   16 -
 tests/avocado/machine_arm_n8x0.py       |   49 -
 106 files changed, 39 insertions(+), 30338 deletions(-)
 delete mode 100644 docs/system/arm/gumstix.rst
 delete mode 100644 docs/system/arm/mainstone.rst
 delete mode 100644 docs/system/arm/nseries.rst
 delete mode 100644 docs/system/arm/palm.rst
 delete mode 100644 docs/system/arm/xscale.rst
 delete mode 100644 include/hw/adc/max111x.h
 delete mode 100644 include/hw/arm/pxa.h
 delete mode 100644 include/hw/display/blizzard.h
 delete mode 100644 include/hw/display/tc6393xb.h
 delete mode 100644 include/hw/input/lm832x.h
 delete mode 100644 include/hw/input/tsc2xxx.h
 delete mode 100644 include/hw/misc/cbus.h
 delete mode 100644 include/hw/pcmcia.h
 delete mode 100644 include/hw/usb/hcd-musb.h
 delete mode 100644 hw/adc/max111x.c
 delete mode 100644 hw/arm/gumstix.c
 delete mode 100644 hw/arm/mainstone.c
 delete mode 100644 hw/arm/nseries.c
 delete mode 100644 hw/arm/omap2.c
 delete mode 100644 hw/arm/palm.c
 delete mode 100644 hw/arm/pxa2xx.c
 delete mode 100644 hw/arm/pxa2xx_gpio.c
 delete mode 100644 hw/arm/pxa2xx_pic.c
 delete mode 100644 hw/arm/spitz.c
 delete mode 100644 hw/arm/tosa.c
 delete mode 100644 hw/arm/z2.c
 delete mode 100644 hw/block/ecc.c
 delete mode 100644 hw/block/onenand.c
 delete mode 100644 hw/display/blizzard.c
 delete mode 100644 hw/display/omap_dss.c
 delete mode 100644 hw/display/pxa2xx_lcd.c
 delete mode 100644 hw/display/tc6393xb.c
 delete mode 100644 hw/dma/pxa2xx_dma.c
 delete mode 100644 hw/gpio/max7310.c
 delete mode 100644 hw/ide/microdrive.c
 delete mode 100644 hw/input/ads7846.c
 delete mode 100644 hw/input/lm832x.c
 delete mode 100644 hw/input/pxa2xx_keypad.c
 delete mode 100644 hw/input/tsc2005.c
 delete mode 100644 hw/input/tsc210x.c
 delete mode 100644 hw/misc/cbus.c
 delete mode 100644 hw/misc/mst_fpga.c
 delete mode 100644 hw/misc/omap_gpmc.c
 delete mode 100644 hw/misc/omap_l4.c
 delete mode 100644 hw/misc/omap_sdrc.c
 delete mode 100644 hw/misc/omap_tap.c
 delete mode 100644 hw/pcmcia/pcmcia.c
 delete mode 100644 hw/pcmcia/pxa2xx.c
 delete mode 100644 hw/rtc/twl92230.c
 delete mode 100644 hw/sd/pxa2xx_mmci.c
 delete mode 100644 hw/ssi/omap_spi.c
 delete mode 100644 hw/timer/omap_gptimer.c
 delete mode 100644 hw/timer/omap_synctimer.c
 delete mode 100644 hw/usb/hcd-musb.c
 delete mode 100644 hw/usb/tusb6010.c
 delete mode 100644 hw/pcmcia/Kconfig
 delete mode 100644 hw/pcmcia/meson.build
 delete mode 100644 tests/avocado/machine_arm_n8x0.py
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/53 hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards

The Sharp XScale-based PDA board models akita, borzoi, spitz, terrier, and tosa were all deprecated in 9.0, so our deprecation cycle permits removing them for the 9.2 release.

Remove the source files for the board models themselves, and their documentation. There were no tests for these boards.

We will move the text describing the dropped boards from deprecated.rst to removed-features.rst when we've cleaned up all the boards it lists. Device models used only by removed board models will be removed in separate commits.

---
 MAINTAINERS                             |    3 -
 docs/system/arm/xscale.rst              |   35 -
 docs/system/target-arm.rst              |    1 -
 configs/devices/arm-softmmu/default.mak |    2 -
 hw/arm/spitz.c                          | 1284 -----------------------
 hw/arm/tosa.c                           |  327 ------
 hw/arm/Kconfig                          |   23 -
 hw/arm/meson.build                      |    2 -
 8 files changed, 1677 deletions(-)
 delete mode 100644 docs/system/arm/xscale.rst
 delete mode 100644 hw/arm/spitz.c
 delete mode 100644 hw/arm/tosa.c
MAINTAINERS +0 -3
index 3584d6a6c6d..bcd84582099 100644
@@ -924,8 +924,6 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
 F: hw/arm/mainstone.c
-F: hw/arm/spitz.c
-F: hw/arm/tosa.c
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
 F: hw/display/tc6393xb.c
@@ -938,7 +936,6 @@ F: include/hw/adc/max111x.h
 F: include/hw/arm/pxa.h
 F: include/hw/arm/sharpsl.h
 F: include/hw/display/tc6393xb.h
-F: docs/system/arm/xscale.rst
 F: docs/system/arm/mainstone.rst
 
 SABRELITE / i.MX6
docs/system/arm/xscale.rst deleted +0 -35
deleted file mode 100644
index e239136c3c7..00000000000
@@ -1,35 +0,0 @@
-Sharp XScale-based PDA models (``akita``, ``borzoi``, ``spitz``, ``terrier``, ``tosa``)
-=======================================================================================
-
-The Sharp Zaurus are PDAs based on XScale, able to run Linux ('SL series').
-
-The SL-6000 (\"Tosa\"), released in 2005, uses a PXA255 System-on-chip.
-
-The SL-C3000 (\"Spitz\"), SL-C1000 (\"Akita\"), SL-C3100 (\"Borzoi\") and
-SL-C3200 (\"Terrier\") use a PXA270.
-
-The clamshell PDA models emulation includes the following peripherals:
-
--  Intel PXA255/PXA270 System-on-chip (ARMv5TE core)
-
--  NAND Flash memory - not in \"Tosa\"
-
--  IBM/Hitachi DSCM microdrive in a PXA PCMCIA slot - not in \"Akita\"
-
--  On-chip OHCI USB controller - not in \"Tosa\"
-
--  On-chip LCD controller
-
--  On-chip Real Time Clock
-
--  TI ADS7846 touchscreen controller on SSP bus
-
--  Maxim MAX1111 analog-digital converter on |I2C| bus
-
--  GPIO-connected keyboard controller and LEDs
-
--  Secure Digital card connected to PXA MMC/SD host
-
--  Three on-chip UARTs
-
--  WM8750 audio CODEC on |I2C| and |I2S| buses
docs/system/target-arm.rst +0 -1
index 7b992722846..326b69502b5 100644
@@ -101,7 +101,6 @@ undocumented; you can get a complete list by running
    arm/orangepi
    arm/palm
    arm/raspi
-   arm/xscale
    arm/collie
    arm/sx1
    arm/stellaris
configs/devices/arm-softmmu/default.mak +0 -2
index 31f77c20269..4cbe04ffbf1 100644
@@ -30,8 +30,6 @@
 # CONFIG_ZYNQ=n
 # CONFIG_MAINSTONE=n
 # CONFIG_GUMSTIX=n
-# CONFIG_SPITZ=n
-# CONFIG_TOSA=n
 # CONFIG_Z2=n
 # CONFIG_NPCM7XX=n
 # CONFIG_COLLIE=n
hw/arm/spitz.c deleted +0 -1284

1,284 lines not on this page · raw message

hw/arm/tosa.c deleted +0 -327

327 lines not on this page · raw message

hw/arm/Kconfig +0 -23
index 1ad60da7aa2..32c5e601d1c 100644
@@ -199,29 +199,6 @@ config GUMSTIX
     select SMC91C111
     select PXA2XX
 
-config TOSA
-    bool
-    default y
-    depends on TCG && ARM
-    select ZAURUS  # scoop
-    select MICRODRIVE
-    select PXA2XX
-    select LED
-
-config SPITZ
-    bool
-    default y
-    depends on TCG && ARM
-    select ADS7846 # touch-screen controller
-    select MAX111X # A/D converter
-    select WM8750  # audio codec
-    select MAX7310 # GPIO expander
-    select ZAURUS  # scoop
-    select NAND    # memory
-    select ECC     # Error-correcting for NAND
-    select MICRODRIVE
-    select PXA2XX
-
 config Z2
     bool
     default y
hw/arm/meson.build +0 -2
index 0c07ab522f4..b099319a223 100644
@@ -70,10 +70,8 @@ system_ss.add(when: 'CONFIG_NETDUINO2', if_true: files('netduino2.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap2.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2838_peripherals.c'))
-system_ss.add(when: 'CONFIG_SPITZ', if_true: files('spitz.c'))
 system_ss.add(when: 'CONFIG_STRONGARM', if_true: files('strongarm.c'))
 system_ss.add(when: 'CONFIG_SX1', if_true: files('omap_sx1.c'))
-system_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c'))
 system_ss.add(when: 'CONFIG_VERSATILE', if_true: files('versatilepb.c'))
 system_ss.add(when: 'CONFIG_VEXPRESS', if_true: files('vexpress.c'))
 system_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 1/53
#2 lore raw

Re: [PATCH for-9.2 01/53] hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards

Quoted 23 lines · Peter Maydell

The Sharp XScale-based PDA board models akita, borzoi, spitz, terrier, and tosa were all deprecated in 9.0, so our deprecation cycle permits removing them for the 9.2 release.

Remove the source files for the board models themselves, and their documentation. There were no tests for these boards.

We will move the text describing the dropped boards from deprecated.rst to removed-features.rst when we've cleaned up all the boards it lists. Device models used only by removed board models will be removed in separate commits.

---
  MAINTAINERS                             |    3 -
  docs/system/arm/xscale.rst              |   35 -
  docs/system/target-arm.rst              |    1 -
  configs/devices/arm-softmmu/default.mak |    2 -
  hw/arm/spitz.c                          | 1284 -----------------------
  hw/arm/tosa.c                           |  327 ------
  hw/arm/Kconfig                          |   23 -
  hw/arm/meson.build                      |    2 -
  8 files changed, 1677 deletions(-)
Quoted 3 lines

delete mode 100644 docs/system/arm/xscale.rst
delete mode 100644 hw/arm/spitz.c
delete mode 100644 hw/arm/tosa.c

#3 lore raw

PATCH 2/53 hw/input: Drop ADS7846 device

In reply to Peter Maydell

The ADS7846 touchscreen controller device was used only by the XScale-based PDA machine types. Now that they have been removed, this device is not used in the tree and can be deleted.

---
 MAINTAINERS          |   1 -
 hw/input/ads7846.c   | 186 -------------------------------------------
 hw/input/Kconfig     |   3 -
 hw/input/meson.build |   1 -
 4 files changed, 191 deletions(-)
 delete mode 100644 hw/input/ads7846.c
MAINTAINERS +0 -1
index bcd84582099..4f00c7a3427 100644
@@ -929,7 +929,6 @@ F: hw/*/pxa2xx*
 F: hw/display/tc6393xb.c
 F: hw/gpio/max7310.c
 F: hw/gpio/zaurus.c
-F: hw/input/ads7846.c
 F: hw/misc/mst_fpga.c
 F: hw/adc/max111x.c
 F: include/hw/adc/max111x.h
hw/input/ads7846.c deleted +0 -186

186 lines not on this page · raw message

hw/input/Kconfig +0 -3
index f86e98c8293..acfdba5c4ca 100644
@@ -1,9 +1,6 @@
 config ADB
     bool
 
-config ADS7846
-    bool
-
 config LM832X
     bool
     depends on I2C
hw/input/meson.build +0 -1
index 3cc8ab85f0c..07a28c2c01c 100644
@@ -1,6 +1,5 @@
 system_ss.add(files('hid.c'))
 system_ss.add(when: 'CONFIG_ADB', if_true: files('adb.c', 'adb-mouse.c', 'adb-kbd.c'))
-system_ss.add(when: 'CONFIG_ADS7846', if_true: files('ads7846.c'))
 system_ss.add(when: 'CONFIG_LM832X', if_true: files('lm832x.c'))
 system_ss.add(when: 'CONFIG_PCKBD', if_true: files('pckbd.c'))
 system_ss.add(when: 'CONFIG_PL050', if_true: files('pl050.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 2/53
#4 lore raw

Re: [PATCH for-9.2 02/53] hw/input: Drop ADS7846 device

Quoted 5 lines · Peter Maydell

The ADS7846 touchscreen controller device was used only by the XScale-based PDA machine types. Now that they have been removed, this device is not used in the tree and can be deleted.

Quoted 8 lines
---
  MAINTAINERS          |   1 -
  hw/input/ads7846.c   | 186 -------------------------------------------
  hw/input/Kconfig     |   3 -
  hw/input/meson.build |   1 -
  4 files changed, 191 deletions(-)

delete mode 100644 hw/input/ads7846.c

#5 lore raw

PATCH 3/53 hw/adc: Remove MAX111X device

In reply to Peter Maydell

The MAX111X ADC device was used only by the XScale-based Zaurus machine types. Now they have all been removed, we can drop this device model too.

---
 MAINTAINERS              |   2 -
 include/hw/adc/max111x.h |  56 ----------
 hw/adc/max111x.c         | 236 ---------------------------------------
 hw/adc/Kconfig           |   3 -
 hw/adc/meson.build       |   1 -
 5 files changed, 298 deletions(-)
 delete mode 100644 include/hw/adc/max111x.h
 delete mode 100644 hw/adc/max111x.c
MAINTAINERS +0 -2
index 4f00c7a3427..7873350f6ef 100644
@@ -930,8 +930,6 @@ F: hw/display/tc6393xb.c
 F: hw/gpio/max7310.c
 F: hw/gpio/zaurus.c
 F: hw/misc/mst_fpga.c
-F: hw/adc/max111x.c
-F: include/hw/adc/max111x.h
 F: include/hw/arm/pxa.h
 F: include/hw/arm/sharpsl.h
 F: include/hw/display/tc6393xb.h
include/hw/adc/max111x.h deleted +0 -56

56 lines not on this page · raw message

hw/adc/max111x.c deleted +0 -236

236 lines not on this page · raw message

hw/adc/Kconfig +0 -3
index a825bd3d343..25d2229fb83 100644
@@ -1,5 +1,2 @@
 config STM32F2XX_ADC
     bool
-
-config MAX111X
-    bool
hw/adc/meson.build +0 -1
index a4f85b7d468..7f7acc16196 100644
@@ -2,4 +2,3 @@ system_ss.add(when: 'CONFIG_STM32F2XX_ADC', if_true: files('stm32f2xx_adc.c'))
 system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_adc.c'))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_adc.c'))
 system_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq-xadc.c'))
-system_ss.add(when: 'CONFIG_MAX111X', if_true: files('max111x.c'))
Signature · 1 line
2.34.1
#6 lore raw

PATCH 4/53 hw/gpio: Remove MAX7310 device

In reply to Peter Maydell

The MAX7310 GPIO controller was used only by the XScale-based Zaurus machine types. Now they have been removed we can remove this device model as well.

---
 MAINTAINERS         |   1 -
 hw/gpio/max7310.c   | 217 --------------------------------------------
 hw/gpio/Kconfig     |   4 -
 hw/gpio/meson.build |   1 -
 4 files changed, 223 deletions(-)
 delete mode 100644 hw/gpio/max7310.c
MAINTAINERS +0 -1
index 7873350f6ef..e9ce1e2e051 100644
@@ -927,7 +927,6 @@ F: hw/arm/mainstone.c
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
 F: hw/display/tc6393xb.c
-F: hw/gpio/max7310.c
 F: hw/gpio/zaurus.c
 F: hw/misc/mst_fpga.c
 F: include/hw/arm/pxa.h
hw/gpio/max7310.c deleted +0 -217

217 lines not on this page · raw message

hw/gpio/Kconfig +0 -4
index 19c97cc823f..c9c340f6eb4 100644
@@ -1,7 +1,3 @@
-config MAX7310
-    bool
-    depends on I2C
-
 config PL061
     bool
 
hw/gpio/meson.build +0 -1
index a7495d196ae..010ad3bf5a7 100644
@@ -1,7 +1,6 @@
 system_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c'))
 system_ss.add(when: 'CONFIG_GPIO_MPC8XXX', if_true: files('mpc8xxx.c'))
 system_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
-system_ss.add(when: 'CONFIG_MAX7310', if_true: files('max7310.c'))
 system_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
 system_ss.add(when: 'CONFIG_PCA9554', if_true: files('pca9554.c'))
 system_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))
Signature · 1 line
2.34.1
#7 lore raw

PATCH 5/53 hw/ide: Remove DSCM-1XXXX microdrive device model

In reply to Peter Maydell

The DSCM-1XXXX microdrive device model was used only by the XScale-based Zaurus machine types. Now they have been removed, we can delete this device too.

---
 include/hw/pcmcia.h |   3 -
 hw/ide/microdrive.c | 644 --------------------------------------------
 hw/ide/Kconfig      |   6 -
 hw/ide/meson.build  |   1 -
 4 files changed, 654 deletions(-)
 delete mode 100644 hw/ide/microdrive.c
include/hw/pcmcia.h +0 -3
index ab268027511..6c08ad616a5 100644
@@ -60,7 +60,4 @@ struct PCMCIACardClass {
 #define CISTPL_END            0xff  /* Tuple End */
 #define CISTPL_ENDMARK        0xff
 
-/* dscm1xxxx.c */
-PCMCIACardState *dscm1xxxx_init(DriveInfo *bdrv);
-
 #endif
hw/ide/microdrive.c deleted +0 -644

644 lines not on this page · raw message

hw/ide/Kconfig +0 -6
index 6dfc5a21292..2e22b677da3 100644
@@ -43,12 +43,6 @@ config IDE_VIA
     bool
     select IDE_PCI
 
-config MICRODRIVE
-    bool
-    select IDE_BUS
-    select IDE_DEV
-    depends on PCMCIA
-
 config AHCI
     bool
     select IDE_BUS
hw/ide/meson.build +0 -1
index d09705cac03..90ea8614233 100644
@@ -13,4 +13,3 @@ system_ss.add(when: 'CONFIG_IDE_PCI', if_true: files('pci.c'))
 system_ss.add(when: 'CONFIG_IDE_PIIX', if_true: files('piix.c', 'ioport.c'))
 system_ss.add(when: 'CONFIG_IDE_SII3112', if_true: files('sii3112.c'))
 system_ss.add(when: 'CONFIG_IDE_VIA', if_true: files('via.c'))
-system_ss.add(when: 'CONFIG_MICRODRIVE', if_true: files('microdrive.c'))
Signature · 1 line
2.34.1
#8 lore raw

PATCH 6/53 hw/display: Remove tc6393xb device

In reply to Peter Maydell

The tc6393xb was used only by the XScale-based Zaurus machine types. Now they have been removed we can remove this device too.

---
 MAINTAINERS                   |   2 -
 include/hw/display/tc6393xb.h |  21 --
 hw/display/tc6393xb.c         | 568 ----------------------------------
 hw/display/meson.build        |   1 -
 4 files changed, 592 deletions(-)
 delete mode 100644 include/hw/display/tc6393xb.h
 delete mode 100644 hw/display/tc6393xb.c
MAINTAINERS +0 -2
index e9ce1e2e051..c40f4f91e9c 100644
@@ -926,12 +926,10 @@ S: Odd Fixes
 F: hw/arm/mainstone.c
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
-F: hw/display/tc6393xb.c
 F: hw/gpio/zaurus.c
 F: hw/misc/mst_fpga.c
 F: include/hw/arm/pxa.h
 F: include/hw/arm/sharpsl.h
-F: include/hw/display/tc6393xb.h
 F: docs/system/arm/mainstone.rst
 
 SABRELITE / i.MX6
include/hw/display/tc6393xb.h deleted +0 -21
deleted file mode 100644
index f9263bf98a6..00000000000
@@ -1,21 +0,0 @@
-/*
- * Toshiba TC6393XB I/O Controller.
- * Found in Sharp Zaurus SL-6000 (tosa) or some
- * Toshiba e-Series PDAs.
- *
- * Copyright (c) 2007 Hervé Poussineau
- *
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
- * See the COPYING file in the top-level directory.
- */
-
-#ifndef HW_DISPLAY_TC6393XB_H
-#define HW_DISPLAY_TC6393XB_H
-
-typedef struct TC6393xbState TC6393xbState;
-
-TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
-                             uint32_t base, qemu_irq irq);
-qemu_irq tc6393xb_l3v_get(TC6393xbState *s);
-
-#endif
hw/display/tc6393xb.c deleted +0 -568

568 lines not on this page · raw message

hw/display/meson.build +0 -1
index 7db05eace97..dabc0d1da6b 100644
@@ -25,7 +25,6 @@ system_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c'))
 system_ss.add(when: 'CONFIG_BLIZZARD', if_true: files('blizzard.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c'))
 system_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c'))
-system_ss.add(when: 'CONFIG_ZAURUS', if_true: files('tc6393xb.c'))
 
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dss.c'))
 system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_lcd.c'))
Signature · 1 line
2.34.1
#9 lore raw

PATCH 7/53 hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP

In reply to Peter Maydell

The ZAURUS KConfig symbol used to do multiple things:
* pull in the tc6393xb display device
* pull in the Zaurus SCOOP GPIO device
* pull in hw/block/nand.c code
* pull in hw/block/ecc.c code
and was used by multiple machine types in the Zaurus family.

Now that we've removed all the Zaurus machine types except "collie" (which is not currently deprecated), we can simplify this. "collie" doesn't need any of the above things except for the SCOOP GPIO device.

Remove the does-lots-of-things ZAURUS KConfig symbol and instead have collie pull in ZAURUS_SCOOP, a new KConfig symbol which exists only to control the presence of the SCOOP GPIO device. Move the associated source file lines in MAINTAINERS into the Collie subsection, since this is now its only user.

---
 MAINTAINERS         | 4 ++--
 hw/arm/Kconfig      | 7 +------
 hw/gpio/Kconfig     | 3 +++
 hw/gpio/meson.build | 2 +-
 4 files changed, 7 insertions(+), 9 deletions(-)
MAINTAINERS +2 -2
index c40f4f91e9c..52bf3a22e01 100644
@@ -926,10 +926,8 @@ S: Odd Fixes
 F: hw/arm/mainstone.c
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
-F: hw/gpio/zaurus.c
 F: hw/misc/mst_fpga.c
 F: include/hw/arm/pxa.h
-F: include/hw/arm/sharpsl.h
 F: docs/system/arm/mainstone.rst
 
 SABRELITE / i.MX6
@@ -968,6 +966,8 @@ L: [email protected]
 S: Odd Fixes
 F: hw/arm/collie.c
 F: hw/arm/strongarm*
+F: hw/gpio/zaurus.c
+F: include/hw/arm/sharpsl.h
 F: docs/system/arm/collie.rst
 
 Stellaris
hw/arm/Kconfig +1 -6
index 32c5e601d1c..c8c57497c5b 100644
@@ -300,7 +300,7 @@ config COLLIE
     default y
     depends on TCG && ARM
     select PFLASH_CFI01
-    select ZAURUS  # scoop
+    select ZAURUS_SCOOP
     select STRONGARM
 
 config SX1
@@ -662,11 +662,6 @@ config MSF2
     select SSI
     select UNIMP
 
-config ZAURUS
-    bool
-    select NAND
-    select ECC
-
 config ARMSSE
     bool
     select ARM_V7M
hw/gpio/Kconfig +3 -0
index c9c340f6eb4..c423e10f59f 100644
@@ -19,3 +19,6 @@ config STM32L4X5_GPIO
 config PCF8574
     bool
     depends on I2C
+
+config ZAURUS_SCOOP
+    bool
hw/gpio/meson.build +1 -1
index 010ad3bf5a7..74840619c01 100644
@@ -4,7 +4,7 @@ system_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
 system_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
 system_ss.add(when: 'CONFIG_PCA9554', if_true: files('pca9554.c'))
 system_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))
-system_ss.add(when: 'CONFIG_ZAURUS', if_true: files('zaurus.c'))
+system_ss.add(when: 'CONFIG_ZAURUS_SCOOP', if_true: files('zaurus.c'))
 
 system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpio.c'))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_gpio.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 7/53
#10 lore raw

Re: [PATCH for-9.2 07/53] hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP

Quoted 18 lines · Peter Maydell

The ZAURUS KConfig symbol used to do multiple things:
* pull in the tc6393xb display device
* pull in the Zaurus SCOOP GPIO device
* pull in hw/block/nand.c code
* pull in hw/block/ecc.c code
and was used by multiple machine types in the Zaurus family.

Now that we've removed all the Zaurus machine types except "collie" (which is not currently deprecated), we can simplify this. "collie" doesn't need any of the above things except for the SCOOP GPIO device.

Remove the does-lots-of-things ZAURUS KConfig symbol and instead have collie pull in ZAURUS_SCOOP, a new KConfig symbol which exists only to control the presence of the SCOOP GPIO device. Move the associated source file lines in MAINTAINERS into the Collie subsection, since this is now its only user.

Quoted 7 lines
---
  MAINTAINERS         | 4 ++--
  hw/arm/Kconfig      | 7 +------
  hw/gpio/Kconfig     | 3 +++
  hw/gpio/meson.build | 2 +-
  4 files changed, 7 insertions(+), 9 deletions(-)
#11 lore raw

PATCH 8/53 hw/arm: Remove 'cheetah' machine

In reply to Peter Maydell

The 'cheetah' machine has been deprecated since 9.0, so we can remove it for the 9.2 release.

(tsc210x.c is also used by nseries, so move its MAINTAINER file line there; the nseries boards are also about to be removed.)

---
 MAINTAINERS                             |  10 +-
 docs/system/arm/palm.rst                |  23 --
 docs/system/target-arm.rst              |   1 -
 configs/devices/arm-softmmu/default.mak |   1 -
 hw/arm/palm.c                           | 324 ------------------------
 hw/arm/Kconfig                          |   7 -
 hw/arm/meson.build                      |   1 -
 7 files changed, 1 insertion(+), 366 deletions(-)
 delete mode 100644 docs/system/arm/palm.rst
 delete mode 100644 hw/arm/palm.c
MAINTAINERS +1 -9
index 52bf3a22e01..cf297e6d626 100644
@@ -879,6 +879,7 @@ F: hw/arm/nseries.c
 F: hw/display/blizzard.c
 F: hw/input/lm832x.c
 F: hw/input/tsc2005.c
+F: hw/input/tsc210x.c
 F: hw/misc/cbus.c
 F: hw/rtc/twl92230.c
 F: include/hw/display/blizzard.h
@@ -888,15 +889,6 @@ F: include/hw/misc/cbus.h
 F: tests/avocado/machine_arm_n8x0.py
 F: docs/system/arm/nseries.rst
 
-Palm
-M: Peter Maydell <[email protected]>
-L: [email protected]
-S: Odd Fixes
-F: hw/arm/palm.c
-F: hw/input/tsc210x.c
-F: include/hw/input/tsc2xxx.h
-F: docs/system/arm/palm.rst
-
 Raspberry Pi
 M: Peter Maydell <[email protected]>
 R: Philippe Mathieu-Daudé <[email protected]>
docs/system/arm/palm.rst deleted +0 -23
deleted file mode 100644
index 61bc8d34f40..00000000000
@@ -1,23 +0,0 @@
-Palm Tungsten|E PDA (``cheetah``)
-=================================
-
-The Palm Tungsten|E PDA (codename \"Cheetah\") emulation includes the
-following elements:
-
--  Texas Instruments OMAP310 System-on-chip (ARM925T core)
-
--  ROM and RAM memories (ROM firmware image can be loaded with
-   -option-rom)
-
--  On-chip LCD controller
-
--  On-chip Real Time Clock
-
--  TI TSC2102i touchscreen controller / analog-digital converter /
-   Audio CODEC, connected through MicroWire and |I2S| buses
-
--  GPIO-connected matrix keypad
-
--  Secure Digital card connected to OMAP MMC/SD host
-
--  Three on-chip UARTs
docs/system/target-arm.rst +0 -1
index 326b69502b5..fde37385224 100644
@@ -99,7 +99,6 @@ undocumented; you can get a complete list by running
    arm/nuvoton
    arm/imx25-pdk
    arm/orangepi
-   arm/palm
    arm/raspi
    arm/collie
    arm/sx1
configs/devices/arm-softmmu/default.mak +0 -1
index 4cbe04ffbf1..6ed821be220 100644
@@ -18,7 +18,6 @@
 # CONFIG_MUSICPAL=n
 # CONFIG_MPS3R=n
 # CONFIG_MUSCA=n
-# CONFIG_CHEETAH=n
 # CONFIG_SX1=n
 # CONFIG_NSERIES=n
 # CONFIG_STELLARIS=n
hw/arm/palm.c deleted +0 -324

324 lines not on this page · raw message

hw/arm/Kconfig +0 -7
index c8c57497c5b..3261618ea74 100644
@@ -37,13 +37,6 @@ config ARM_VIRT
     select ACPI_CXL
     select ACPI_HMAT
 
-config CHEETAH
-    bool
-    default y
-    depends on TCG && ARM
-    select OMAP
-    select TSC210X
-
 config CUBIEBOARD
     bool
     default y
hw/arm/meson.build +0 -1
index b099319a223..4a8fd54586b 100644
@@ -62,7 +62,6 @@ arm_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_soc.c'))
 arm_ss.add(when: 'CONFIG_XEN', if_true: files('xen_arm.c'))
 
 system_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c'))
-system_ss.add(when: 'CONFIG_CHEETAH', if_true: files('palm.c'))
 system_ss.add(when: 'CONFIG_COLLIE', if_true: files('collie.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c'))
 system_ss.add(when: 'CONFIG_GUMSTIX', if_true: files('gumstix.c'))
Signature · 1 line
2.34.1
#12 lore raw

PATCH 9/53 hw/arm: Remove 'connex' and 'verdex' machines

In reply to Peter Maydell

The connex and verdex machines have been deprecated since 9.0 and so can be removed for the 9.2 release.

---
 MAINTAINERS                             |   8 --
 docs/system/arm/gumstix.rst             |  21 ----
 docs/system/target-arm.rst              |   1 -
 configs/devices/arm-softmmu/default.mak |   1 -
 hw/arm/gumstix.c                        | 141 ------------------------
 hw/arm/Kconfig                          |   8 --
 hw/arm/meson.build                      |   1 -
 7 files changed, 181 deletions(-)
 delete mode 100644 docs/system/arm/gumstix.rst
 delete mode 100644 hw/arm/gumstix.c
MAINTAINERS +0 -8
index cf297e6d626..13685711f61 100644
@@ -743,14 +743,6 @@ S: Maintained
 F: hw/rtc/goldfish_rtc.c
 F: include/hw/rtc/goldfish_rtc.h
 
-Gumstix
-M: Peter Maydell <[email protected]>
-R: Philippe Mathieu-Daudé <[email protected]>
-L: [email protected]
-S: Odd Fixes
-F: hw/arm/gumstix.c
-F: docs/system/arm/gumstix.rst
-
 i.MX25 PDK
 M: Peter Maydell <[email protected]>
 R: Jean-Christophe Dubois <[email protected]>
docs/system/arm/gumstix.rst deleted +0 -21
deleted file mode 100644
index cb373139dcb..00000000000
@@ -1,21 +0,0 @@
-Gumstix Connex and Verdex (``connex``, ``verdex``)
-==================================================
-
-These machines model the Gumstix Connex and Verdex boards.
-The Connex has a PXA255 CPU and the Verdex has a PXA270.
-
-Implemented devices:
-
- * NOR flash
- * SMC91C111 ethernet
- * Interrupt controller
- * DMA
- * Timer
- * GPIO
- * MMC/SD card
- * Fast infra-red communications port (FIR)
- * LCD controller
- * Synchronous serial ports (SPI)
- * PCMCIA interface
- * I2C
- * I2S
docs/system/target-arm.rst +0 -1
index fde37385224..ddaf1675dcc 100644
@@ -91,7 +91,6 @@ undocumented; you can get a complete list by running
    arm/cubieboard
    arm/emcraft-sf2
    arm/musicpal
-   arm/gumstix
    arm/mainstone
    arm/kzm
    arm/nseries
configs/devices/arm-softmmu/default.mak +0 -1
index 6ed821be220..490ef4b3943 100644
@@ -28,7 +28,6 @@
 # CONFIG_VEXPRESS=n
 # CONFIG_ZYNQ=n
 # CONFIG_MAINSTONE=n
-# CONFIG_GUMSTIX=n
 # CONFIG_Z2=n
 # CONFIG_NPCM7XX=n
 # CONFIG_COLLIE=n
hw/arm/gumstix.c deleted +0 -141

141 lines not on this page · raw message

hw/arm/Kconfig +0 -8
index 3261618ea74..d3e07262b14 100644
@@ -184,14 +184,6 @@ config PXA2XX
     select USB_OHCI_SYSBUS
     select PCMCIA
 
-config GUMSTIX
-    bool
-    default y
-    depends on TCG && ARM
-    select PFLASH_CFI01
-    select SMC91C111
-    select PXA2XX
-
 config Z2
     bool
     default y
hw/arm/meson.build +0 -1
index 4a8fd54586b..7b474ad518b 100644
@@ -64,7 +64,6 @@ arm_ss.add(when: 'CONFIG_XEN', if_true: files('xen_arm.c'))
 system_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c'))
 system_ss.add(when: 'CONFIG_COLLIE', if_true: files('collie.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c'))
-system_ss.add(when: 'CONFIG_GUMSTIX', if_true: files('gumstix.c'))
 system_ss.add(when: 'CONFIG_NETDUINO2', if_true: files('netduino2.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap2.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 9/53
#13 lore raw

Re: [PATCH for-9.2 09/53] hw/arm: Remove 'connex' and 'verdex' machines

Quoted 13 lines · Peter Maydell

The connex and verdex machines have been deprecated since 9.0 and so can be removed for the 9.2 release.

---
  MAINTAINERS                             |   8 --
  docs/system/arm/gumstix.rst             |  21 ----
  docs/system/target-arm.rst              |   1 -
  configs/devices/arm-softmmu/default.mak |   1 -
  hw/arm/gumstix.c                        | 141 ------------------------
  hw/arm/Kconfig                          |   8 --
  hw/arm/meson.build                      |   1 -
  7 files changed, 181 deletions(-)
Quoted 2 lines

delete mode 100644 docs/system/arm/gumstix.rst
delete mode 100644 hw/arm/gumstix.c

#14 lore raw

PATCH 10/53 hw/arm: Remove 'mainstone' machine

In reply to Peter Maydell

The 'mainstone' machine has been deprecated since 9.0, and so we can remove it for the 9.2 release.

---
 MAINTAINERS                             |   2 -
 docs/system/arm/mainstone.rst           |  25 ----
 docs/system/target-arm.rst              |   1 -
 configs/devices/arm-softmmu/default.mak |   1 -
 hw/arm/mainstone.c                      | 175 ------------------------
 hw/arm/Kconfig                          |   8 --
 hw/arm/meson.build                      |   1 -
 7 files changed, 213 deletions(-)
 delete mode 100644 docs/system/arm/mainstone.rst
 delete mode 100644 hw/arm/mainstone.c
MAINTAINERS +0 -2
index 13685711f61..bfc0868aa64 100644
@@ -907,12 +907,10 @@ PXA2XX
 M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/arm/mainstone.c
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
 F: hw/misc/mst_fpga.c
 F: include/hw/arm/pxa.h
-F: docs/system/arm/mainstone.rst
 
 SABRELITE / i.MX6
 M: Peter Maydell <[email protected]>
docs/system/arm/mainstone.rst deleted +0 -25
deleted file mode 100644
index 05310f42c7f..00000000000
@@ -1,25 +0,0 @@
-Intel Mainstone II board (``mainstone``)
-========================================
-
-The ``mainstone`` board emulates the Intel Mainstone II development
-board, which uses a PXA270 CPU.
-
-Emulated devices:
-
-- Flash memory
-- Keypad
-- MMC controller
-- 91C111 ethernet
-- PIC
-- Timer
-- DMA
-- GPIO
-- FIR
-- Serial
-- LCD controller
-- SSP
-- USB controller
-- RTC
-- PCMCIA
-- I2C
-- I2S
docs/system/target-arm.rst +0 -1
index ddaf1675dcc..28af58135e4 100644
@@ -91,7 +91,6 @@ undocumented; you can get a complete list by running
    arm/cubieboard
    arm/emcraft-sf2
    arm/musicpal
-   arm/mainstone
    arm/kzm
    arm/nseries
    arm/nrf
configs/devices/arm-softmmu/default.mak +0 -1
index 490ef4b3943..547100a06f3 100644
@@ -27,7 +27,6 @@
 # CONFIG_VERSATILE=n
 # CONFIG_VEXPRESS=n
 # CONFIG_ZYNQ=n
-# CONFIG_MAINSTONE=n
 # CONFIG_Z2=n
 # CONFIG_NPCM7XX=n
 # CONFIG_COLLIE=n
hw/arm/mainstone.c deleted +0 -175

175 lines not on this page · raw message

hw/arm/Kconfig +0 -8
index d3e07262b14..84cc34f016c 100644
@@ -94,14 +94,6 @@ config INTEGRATOR
     select PL181 # display
     select SMC91C111
 
-config MAINSTONE
-    bool
-    default y
-    depends on TCG && ARM
-    select PXA2XX
-    select PFLASH_CFI01
-    select SMC91C111
-
 config MPS3R
     bool
     default y
hw/arm/meson.build +0 -1
index 7b474ad518b..72afb9e62a7 100644
@@ -6,7 +6,6 @@ arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic_boards.c'))
 arm_ss.add(when: 'CONFIG_EMCRAFT_SF2', if_true: files('msf2-som.c'))
 arm_ss.add(when: 'CONFIG_HIGHBANK', if_true: files('highbank.c'))
 arm_ss.add(when: 'CONFIG_INTEGRATOR', if_true: files('integratorcp.c'))
-arm_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mainstone.c'))
 arm_ss.add(when: 'CONFIG_MICROBIT', if_true: files('microbit.c'))
 arm_ss.add(when: 'CONFIG_MPS3R', if_true: files('mps3r.c'))
 arm_ss.add(when: 'CONFIG_MUSICPAL', if_true: files('musicpal.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 10/53
#15 lore raw

Re: [PATCH for-9.2 10/53] hw/arm: Remove 'mainstone' machine

Quoted 13 lines · Peter Maydell

The 'mainstone' machine has been deprecated since 9.0, and so we can remove it for the 9.2 release.

---
  MAINTAINERS                             |   2 -
  docs/system/arm/mainstone.rst           |  25 ----
  docs/system/target-arm.rst              |   1 -
  configs/devices/arm-softmmu/default.mak |   1 -
  hw/arm/mainstone.c                      | 175 ------------------------
  hw/arm/Kconfig                          |   8 --
  hw/arm/meson.build                      |   1 -
  7 files changed, 213 deletions(-)
Quoted 2 lines

delete mode 100644 docs/system/arm/mainstone.rst delete mode 100644 hw/arm/mainstone.c

#16 lore raw

PATCH 11/53 hw/misc: Remove MAINSTONE_FPGA device

In reply to Peter Maydell

The MAINSTONE_FPGA device was used only by the 'mainstone' machine type, so we can remove it now.

---
 MAINTAINERS         |   1 -
 hw/misc/mst_fpga.c  | 269 --------------------------------------------
 hw/misc/meson.build |   1 -
 3 files changed, 271 deletions(-)
 delete mode 100644 hw/misc/mst_fpga.c
MAINTAINERS +0 -1
index bfc0868aa64..fd4e8b0d705 100644
@@ -909,7 +909,6 @@ L: [email protected]
 S: Odd Fixes
 F: hw/arm/z2.c
 F: hw/*/pxa2xx*
-F: hw/misc/mst_fpga.c
 F: include/hw/arm/pxa.h
 
 SABRELITE / i.MX6
hw/misc/mst_fpga.c deleted +0 -269

269 lines not on this page · raw message

hw/misc/meson.build +0 -1
index 2ca8717be28..56b94655152 100644
@@ -67,7 +67,6 @@ system_ss.add(when: 'CONFIG_IMX', if_true: files(
   'imx_ccm.c',
   'imx_rngc.c',
 ))
-system_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
   'npcm7xx_clk.c',
   'npcm7xx_gcr.c',
Signature · 1 line
2.34.1
Reviewed-by on v1 11/53
#17 lore raw

Re: [PATCH for-9.2 11/53] hw/misc: Remove MAINSTONE_FPGA device

Quoted 10 lines · Peter Maydell

The MAINSTONE_FPGA device was used only by the 'mainstone' machine type, so we can remove it now.

---
  MAINTAINERS         |   1 -
  hw/misc/mst_fpga.c  | 269 --------------------------------------------
  hw/misc/meson.build |   1 -
  3 files changed, 271 deletions(-)

delete mode 100644 hw/misc/mst_fpga.c

#18 lore raw

PATCH 12/53 hw/arm: Remove 'z2' machine

In reply to Peter Maydell

The 'z2' machine was deprecated in 9.0, so we can remove it for 9.2.

---
 MAINTAINERS                             |   1 -
 configs/devices/arm-softmmu/default.mak |   1 -
 hw/arm/z2.c                             | 355 ------------------------
 hw/arm/Kconfig                          |   9 -
 hw/arm/meson.build                      |   1 -
 5 files changed, 367 deletions(-)
 delete mode 100644 hw/arm/z2.c
MAINTAINERS +0 -1
index fd4e8b0d705..8ca445ad5a0 100644
@@ -907,7 +907,6 @@ PXA2XX
 M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/arm/z2.c
 F: hw/*/pxa2xx*
 F: include/hw/arm/pxa.h
 
configs/devices/arm-softmmu/default.mak +0 -1
index 547100a06f3..260b0cf9772 100644
@@ -27,7 +27,6 @@
 # CONFIG_VERSATILE=n
 # CONFIG_VEXPRESS=n
 # CONFIG_ZYNQ=n
-# CONFIG_Z2=n
 # CONFIG_NPCM7XX=n
 # CONFIG_COLLIE=n
 # CONFIG_ASPEED_SOC=n
hw/arm/z2.c deleted +0 -355

355 lines not on this page · raw message

hw/arm/Kconfig +0 -9
index 84cc34f016c..c2452bd7b91 100644
@@ -176,15 +176,6 @@ config PXA2XX
     select USB_OHCI_SYSBUS
     select PCMCIA
 
-config Z2
-    bool
-    default y
-    depends on TCG && ARM
-    select PFLASH_CFI01
-    select WM8750
-    select PL011 # UART
-    select PXA2XX
-
 config REALVIEW
     bool
     default y
hw/arm/meson.build +0 -1
index 72afb9e62a7..1a4a51d6302 100644
@@ -71,6 +71,5 @@ system_ss.add(when: 'CONFIG_STRONGARM', if_true: files('strongarm.c'))
 system_ss.add(when: 'CONFIG_SX1', if_true: files('omap_sx1.c'))
 system_ss.add(when: 'CONFIG_VERSATILE', if_true: files('versatilepb.c'))
 system_ss.add(when: 'CONFIG_VEXPRESS', if_true: files('vexpress.c'))
-system_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c'))
 
 hw_arch += {'arm': arm_ss}
Signature · 1 line
2.34.1
Reviewed-by on v1 12/53
#19 lore raw

Re: [PATCH for-9.2 12/53] hw/arm: Remove 'z2' machine

Quoted 4 lines · Peter Maydell

The 'z2' machine was deprecated in 9.0, so we can remove it for 9.2.

Quoted 8 lines
---
  MAINTAINERS                             |   1 -
  configs/devices/arm-softmmu/default.mak |   1 -
  hw/arm/z2.c                             | 355 ------------------------
  hw/arm/Kconfig                          |   9 -
  hw/arm/meson.build                      |   1 -
  5 files changed, 367 deletions(-)

delete mode 100644 hw/arm/z2.c

#20 lore raw

PATCH 13/53 hw/arm: Remove STRONGARM->PXA2XX dependency

In reply to Peter Maydell

Currently the STRONGARM KConfig symbol pulls in PXA2XX. Since we've now removed all the true uses of PXA2XX, we'd like to remove the PXA2XX symbol too. To permit that, make STRONGARM directly select the things it truly depends on:
* pxa25x-timer
* SSI

---
 hw/arm/Kconfig       | 4 +++-
 hw/timer/Kconfig     | 3 +++
 hw/timer/meson.build | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)
hw/arm/Kconfig +3 -1
index c2452bd7b91..8f6cbf94855 100644
@@ -175,6 +175,7 @@ config PXA2XX
     select SSI
     select USB_OHCI_SYSBUS
     select PCMCIA
+    select PXA2XX_TIMER
 
 config REALVIEW
     bool
@@ -261,7 +262,8 @@ config STM32VLDISCOVERY
 
 config STRONGARM
     bool
-    select PXA2XX
+    select PXA2XX_TIMER
+    select SSI
 
 config COLLIE
     bool
hw/timer/Kconfig +3 -0
index 61fbb62b65c..c96fd5d97ae 100644
@@ -21,6 +21,9 @@ config ALLWINNER_A10_PIT
     bool
     select PTIMER
 
+config PXA2XX_TIMER
+    bool
+
 config SIFIVE_PWM
     bool
 
hw/timer/meson.build +1 -1
index 80427852e02..3a78636ab45 100644
@@ -24,7 +24,7 @@ system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_timer.c'))
 system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_timer.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_gptimer.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_synctimer.c'))
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_timer.c'))
+system_ss.add(when: 'CONFIG_PXA2XX_TIMER', if_true: files('pxa2xx_timer.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_systmr.c'))
 system_ss.add(when: 'CONFIG_SH_TIMER', if_true: files('sh_timer.c'))
 system_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_timer.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 13/53
#21 lore raw

Re: [PATCH for-9.2 13/53] hw/arm: Remove STRONGARM->PXA2XX dependency

Quoted 7 lines · Peter Maydell

Currently the STRONGARM KConfig symbol pulls in PXA2XX. Since we've now removed all the true uses of PXA2XX, we'd like to remove the PXA2XX symbol too. To permit that, make STRONGARM directly select the things it truly depends on:
* pxa25x-timer
* SSI

Quoted 6 lines
---
  hw/arm/Kconfig       | 4 +++-
  hw/timer/Kconfig     | 3 +++
  hw/timer/meson.build | 2 +-
  3 files changed, 7 insertions(+), 2 deletions(-)
#22 lore raw

PATCH 14/53 hw/timer/pxa2xx_timer: Remove use of pxa.h header

In reply to Peter Maydell

pxa2xx_timer includes pxa.h, but it doesn't actually make use of any of the #defines, function prototypes or structs defined there. Remove the unnecessary include (we will shortly be removing the whole header file).

---
 hw/timer/pxa2xx_timer.c | 1 -
 1 file changed, 1 deletion(-)
hw/timer/pxa2xx_timer.c +0 -1
index 6479ab1a8b3..d1a3ecac2b5 100644
@@ -12,7 +12,6 @@
 #include "hw/qdev-properties.h"
 #include "qemu/timer.h"
 #include "sysemu/runstate.h"
-#include "hw/arm/pxa.h"
 #include "hw/sysbus.h"
 #include "migration/vmstate.h"
 #include "qemu/log.h"
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 14/53
#23 lore raw

Re: [PATCH for-9.2 14/53] hw/timer/pxa2xx_timer: Remove use of pxa.h header

Quoted 9 lines · Peter Maydell

pxa2xx_timer includes pxa.h, but it doesn't actually make use of any of the #defines, function prototypes or structs defined there. Remove the unnecessary include (we will shortly be removing the whole header file).

---
  hw/timer/pxa2xx_timer.c | 1 -
  1 file changed, 1 deletion(-)
#24 lore raw

PATCH 15/53 hw/arm: Remove pxa2xx.c

In reply to Peter Maydell

All the callers of pxa270_init() and pxa255_init() have now been removed, so we can remove pxa2xx.c. This also removes the only uses of a lot of pxa2xx specific devices, which will be removed in subsequent commits.

---
 include/hw/arm/pxa.h |   78 --
 hw/arm/pxa2xx.c      | 2393 ------------------------------------------
 hw/arm/meson.build   |    2 +-
 3 files changed, 1 insertion(+), 2472 deletions(-)
 delete mode 100644 hw/arm/pxa2xx.c
include/hw/arm/pxa.h +0 -78
index 4c6caee1134..bf7f868700a 100644
@@ -116,82 +116,4 @@ PXA2xxKeyPadState *pxa27x_keypad_init(MemoryRegion *sysmem,
 void pxa27x_register_keypad(PXA2xxKeyPadState *kp,
                             const struct keymap *map, int size);
 
-/* pxa2xx.c */
-#define TYPE_PXA2XX_I2C "pxa2xx_i2c"
-OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxI2CState, PXA2XX_I2C)
-
-PXA2xxI2CState *pxa2xx_i2c_init(hwaddr base,
-                qemu_irq irq, uint32_t page_size);
-I2CBus *pxa2xx_i2c_bus(PXA2xxI2CState *s);
-
-typedef struct PXA2xxI2SState PXA2xxI2SState;
-
-#define TYPE_PXA2XX_FIR "pxa2xx-fir"
-OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxFIrState, PXA2XX_FIR)
-
-typedef struct {
-    ARMCPU *cpu;
-    DeviceState *pic;
-    qemu_irq reset;
-    MemoryRegion sdram;
-    MemoryRegion internal;
-    MemoryRegion cm_iomem;
-    MemoryRegion mm_iomem;
-    MemoryRegion pm_iomem;
-    DeviceState *dma;
-    DeviceState *gpio;
-    PXA2xxLCDState *lcd;
-    SSIBus **ssp;
-    PXA2xxI2CState *i2c[2];
-    PXA2xxMMCIState *mmc;
-    PXA2xxPCMCIAState *pcmcia[2];
-    PXA2xxI2SState *i2s;
-    PXA2xxFIrState *fir;
-    PXA2xxKeyPadState *kp;
-
-    /* Power management */
-    hwaddr pm_base;
-    uint32_t pm_regs[0x40];
-
-    /* Clock management */
-    hwaddr cm_base;
-    uint32_t cm_regs[4];
-    uint32_t clkcfg;
-
-    /* Memory management */
-    hwaddr mm_base;
-    uint32_t mm_regs[0x1a];
-
-    /* Performance monitoring */
-    uint32_t pmnc;
-} PXA2xxState;
-
-struct PXA2xxI2SState {
-    MemoryRegion iomem;
-    qemu_irq irq;
-    qemu_irq rx_dma;
-    qemu_irq tx_dma;
-    void (*data_req)(void *, int, int);
-
-    uint32_t control[2];
-    uint32_t status;
-    uint32_t mask;
-    uint32_t clk;
-
-    int enable;
-    int rx_len;
-    int tx_len;
-    void (*codec_out)(void *, uint32_t);
-    uint32_t (*codec_in)(void *);
-    void *opaque;
-
-    int fifo_len;
-    uint32_t fifo[16];
-};
-
-# define PA_FMT			"0x%08lx"
-
-PXA2xxState *pxa270_init(unsigned int sdram_size, const char *revision);
-PXA2xxState *pxa255_init(unsigned int sdram_size);
-
 #endif /* PXA_H */
hw/arm/pxa2xx.c deleted +0 -2393

2,393 lines not on this page · raw message

hw/arm/meson.build +1 -1
index 1a4a51d6302..06e57a96cb4 100644
@@ -22,7 +22,7 @@ arm_ss.add(when: 'CONFIG_SABRELITE', if_true: files('sabrelite.c'))
 
 arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m.c'))
 arm_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210.c'))
-arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c', 'pxa2xx_gpio.c', 'pxa2xx_pic.c'))
+arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_gpio.c', 'pxa2xx_pic.c'))
 arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic.c'))
 arm_ss.add(when: 'CONFIG_OMAP', if_true: files('omap1.c'))
 arm_ss.add(when: 'CONFIG_ALLWINNER_A10', if_true: files('allwinner-a10.c', 'cubieboard.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 15/53
#25 lore raw

Re: [PATCH for-9.2 15/53] hw/arm: Remove pxa2xx.c

Quoted 11 lines · Peter Maydell

All the callers of pxa270_init() and pxa255_init() have now been removed, so we can remove pxa2xx.c. This also removes the only uses of a lot of pxa2xx specific devices, which will be removed in subsequent commits.

---
  include/hw/arm/pxa.h |   78 --
  hw/arm/pxa2xx.c      | 2393 ------------------------------------------
  hw/arm/meson.build   |    2 +-
  3 files changed, 1 insertion(+), 2472 deletions(-)

delete mode 100644 hw/arm/pxa2xx.c

#26 lore raw

PATCH 16/53 hw/sd: Remove pxa2xx_mmci.c

In reply to Peter Maydell

Remove the pxa2xx-specific pxa2xx_mmci device.

---
 include/hw/arm/pxa.h |  10 -
 hw/sd/pxa2xx_mmci.c  | 594 -------------------------------------------
 hw/sd/meson.build    |   1 -
 hw/sd/trace-events   |   4 -
 4 files changed, 609 deletions(-)
 delete mode 100644 hw/sd/pxa2xx_mmci.c
include/hw/arm/pxa.h +0 -10
index bf7f868700a..cc4de0750af 100644
@@ -86,16 +86,6 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
                 hwaddr base, qemu_irq irq);
 void pxa2xx_lcd_vsync_notifier(PXA2xxLCDState *s, qemu_irq handler);
 
-/* pxa2xx_mmci.c */
-#define TYPE_PXA2XX_MMCI "pxa2xx-mmci"
-OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxMMCIState, PXA2XX_MMCI)
-
-PXA2xxMMCIState *pxa2xx_mmci_init(MemoryRegion *sysmem,
-                hwaddr base,
-                qemu_irq irq, qemu_irq rx_dma, qemu_irq tx_dma);
-void pxa2xx_mmci_handlers(PXA2xxMMCIState *s, qemu_irq readonly,
-                qemu_irq coverswitch);
-
 /* pxa2xx_pcmcia.c */
 #define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"
 OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxPCMCIAState, PXA2XX_PCMCIA)
hw/sd/pxa2xx_mmci.c deleted +0 -594

594 lines not on this page · raw message

hw/sd/meson.build +0 -1
index bbb75af0c9b..b43d45bc564 100644
@@ -5,7 +5,6 @@ system_ss.add(when: 'CONFIG_SDHCI_PCI', if_true: files('sdhci-pci.c'))
 system_ss.add(when: 'CONFIG_SSI_SD', if_true: files('ssi-sd.c'))
 
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_mmc.c'))
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_mmci.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_sdhost.c'))
 system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_sdhci.c'))
 system_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sdhost.c'))
hw/sd/trace-events +0 -4
index 43671dc7912..db0644256d9 100644
@@ -60,10 +60,6 @@ sdcard_set_voltage(uint16_t millivolts) "%u mV"
 sdcard_ext_csd_update(unsigned index, uint8_t oval, uint8_t nval) "index %u: 0x%02x -> 0x%02x"
 sdcard_switch(unsigned access, unsigned index, unsigned value, unsigned set) "SWITCH acc:%u idx:%u val:%u set:%u"
 
-# pxa2xx_mmci.c
-pxa2xx_mmci_read(uint8_t size, uint32_t addr, uint32_t value) "size %d addr 0x%02x value 0x%08x"
-pxa2xx_mmci_write(uint8_t size, uint32_t addr, uint32_t value) "size %d addr 0x%02x value 0x%08x"
-
 # pl181.c
 pl181_command_send(uint8_t cmd, uint32_t arg) "sending CMD%02d arg 0x%08" PRIx32
 pl181_command_sent(void) "command sent"
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 16/53
#27 lore raw

Re: [PATCH for-9.2 16/53] hw/sd: Remove pxa2xx_mmci.c

Quoted 10 lines · Peter Maydell

Remove the pxa2xx-specific pxa2xx_mmci device.

---
  include/hw/arm/pxa.h |  10 -
  hw/sd/pxa2xx_mmci.c  | 594 -------------------------------------------
  hw/sd/meson.build    |   1 -
  hw/sd/trace-events   |   4 -
  4 files changed, 609 deletions(-)

delete mode 100644 hw/sd/pxa2xx_mmci.c

#28 lore raw

PATCH 17/53 hw/input: Remove pxa2xx_keypad

In reply to Peter Maydell

Remove the pxa2xx-specific pxa2xx_keypad device.

---
 include/hw/arm/pxa.h     |  12 --
 hw/input/pxa2xx_keypad.c | 331 ---------------------------------------
 hw/input/meson.build     |   1 -
 3 files changed, 344 deletions(-)
 delete mode 100644 hw/input/pxa2xx_keypad.c
include/hw/arm/pxa.h +0 -12
index cc4de0750af..40f9356b226 100644
@@ -94,16 +94,4 @@ int pxa2xx_pcmcia_attach(void *opaque, PCMCIACardState *card);
 int pxa2xx_pcmcia_detach(void *opaque);
 void pxa2xx_pcmcia_set_irq_cb(void *opaque, qemu_irq irq, qemu_irq cd_irq);
 
-/* pxa2xx_keypad.c */
-struct  keymap {
-    int8_t column;
-    int8_t row;
-};
-typedef struct PXA2xxKeyPadState PXA2xxKeyPadState;
-PXA2xxKeyPadState *pxa27x_keypad_init(MemoryRegion *sysmem,
-                                      hwaddr base,
-                                      qemu_irq irq);
-void pxa27x_register_keypad(PXA2xxKeyPadState *kp,
-                            const struct keymap *map, int size);
-
 #endif /* PXA_H */
hw/input/pxa2xx_keypad.c deleted +0 -331

331 lines not on this page · raw message

hw/input/meson.build +0 -1
index 07a28c2c01c..fe60b6e28fc 100644
@@ -11,6 +11,5 @@ system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input-hid.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT_HOST', if_true: files('virtio-input-host.c'))
 
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_keypad.c'))
 system_ss.add(when: 'CONFIG_TSC210X', if_true: files('tsc210x.c'))
 system_ss.add(when: 'CONFIG_LASIPS2', if_true: files('lasips2.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 17/53
#29 lore raw

Re: [PATCH for-9.2 17/53] hw/input: Remove pxa2xx_keypad

Quoted 9 lines · Peter Maydell

Remove the pxa2xx-specific pxa2xx_keypad device.

---
  include/hw/arm/pxa.h     |  12 --
  hw/input/pxa2xx_keypad.c | 331 ---------------------------------------
  hw/input/meson.build     |   1 -
  3 files changed, 344 deletions(-)

delete mode 100644 hw/input/pxa2xx_keypad.c

#30 lore raw

PATCH 18/53 hw/display: Remove pxa2xx_lcd.c

In reply to Peter Maydell

Remove the pxa2xx-specific pxa2xx_lcd device.

---
 include/hw/arm/pxa.h    |    6 -
 hw/display/pxa2xx_lcd.c | 1451 ---------------------------------------
 hw/display/meson.build  |    1 -
 3 files changed, 1458 deletions(-)
 delete mode 100644 hw/display/pxa2xx_lcd.c
include/hw/arm/pxa.h +0 -6
index 40f9356b226..ef7976e1821 100644
@@ -80,12 +80,6 @@ void pxa2xx_gpio_read_notifier(DeviceState *dev, qemu_irq handler);
 DeviceState *pxa255_dma_init(hwaddr base, qemu_irq irq);
 DeviceState *pxa27x_dma_init(hwaddr base, qemu_irq irq);
 
-/* pxa2xx_lcd.c */
-typedef struct PXA2xxLCDState PXA2xxLCDState;
-PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
-                hwaddr base, qemu_irq irq);
-void pxa2xx_lcd_vsync_notifier(PXA2xxLCDState *s, qemu_irq handler);
-
 /* pxa2xx_pcmcia.c */
 #define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"
 OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxPCMCIAState, PXA2XX_PCMCIA)
hw/display/pxa2xx_lcd.c deleted +0 -1451

1,451 lines not on this page · raw message

hw/display/meson.build +0 -1
index dabc0d1da6b..1f965a1be84 100644
@@ -27,7 +27,6 @@ system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c'))
 system_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c'))
 
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dss.c'))
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_lcd.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_fb.c'))
 system_ss.add(when: 'CONFIG_SM501', if_true: files('sm501.c'))
 system_ss.add(when: 'CONFIG_TCX', if_true: files('tcx.c'))
Signature · 1 line
2.34.1
#31 lore raw

PATCH 19/53 hw/dma: Remove pxa2xx_dma

In reply to Peter Maydell

Remove the pxa2xx-specific pxa2xx_dma device.

---
 include/hw/arm/pxa.h |   4 -
 hw/dma/pxa2xx_dma.c  | 591 -------------------------------------------
 hw/dma/meson.build   |   1 -
 3 files changed, 596 deletions(-)
 delete mode 100644 hw/dma/pxa2xx_dma.c
include/hw/arm/pxa.h +0 -4
index ef7976e1821..944926e514b 100644
@@ -76,10 +76,6 @@ DeviceState *pxa2xx_gpio_init(hwaddr base,
                               ARMCPU *cpu, DeviceState *pic, int lines);
 void pxa2xx_gpio_read_notifier(DeviceState *dev, qemu_irq handler);
 
-/* pxa2xx_dma.c */
-DeviceState *pxa255_dma_init(hwaddr base, qemu_irq irq);
-DeviceState *pxa27x_dma_init(hwaddr base, qemu_irq irq);
-
 /* pxa2xx_pcmcia.c */
 #define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"
 OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxPCMCIAState, PXA2XX_PCMCIA)
hw/dma/pxa2xx_dma.c deleted +0 -591

591 lines not on this page · raw message

hw/dma/meson.build +0 -1
index a96c1be2c8d..90c875ac51a 100644
@@ -10,7 +10,6 @@ system_ss.add(when: 'CONFIG_STP2000', if_true: files('sparc32_dma.c'))
 system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx_dpdma.c'))
 system_ss.add(when: 'CONFIG_XLNX_ZDMA', if_true: files('xlnx-zdma.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dma.c', 'soc_dma.c'))
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_dma.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_dma.c'))
 system_ss.add(when: 'CONFIG_SIFIVE_PDMA', if_true: files('sifive_pdma.c'))
 system_ss.add(when: 'CONFIG_XLNX_CSU_DMA', if_true: files('xlnx_csu_dma.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 19/53
#32 lore raw

Re: [PATCH for-9.2 19/53] hw/dma: Remove pxa2xx_dma

Quoted 9 lines · Peter Maydell

Remove the pxa2xx-specific pxa2xx_dma device.

---
  include/hw/arm/pxa.h |   4 -
  hw/dma/pxa2xx_dma.c  | 591 -------------------------------------------
  hw/dma/meson.build   |   1 -
  3 files changed, 596 deletions(-)

delete mode 100644 hw/dma/pxa2xx_dma.c

#33 lore raw

PATCH 20/53 hw/pcmcia: Remove pxa2xx pcmcia device

In reply to Peter Maydell

Remove the pxa2xx specific pcmcia device.

---
 include/hw/arm/pxa.h  |   8 --
 hw/pcmcia/pxa2xx.c    | 248 ------------------------------------------
 hw/pcmcia/meson.build |   1 -
 3 files changed, 257 deletions(-)
 delete mode 100644 hw/pcmcia/pxa2xx.c
include/hw/arm/pxa.h +0 -8
index 944926e514b..5f98536bc69 100644
@@ -76,12 +76,4 @@ DeviceState *pxa2xx_gpio_init(hwaddr base,
                               ARMCPU *cpu, DeviceState *pic, int lines);
 void pxa2xx_gpio_read_notifier(DeviceState *dev, qemu_irq handler);
 
-/* pxa2xx_pcmcia.c */
-#define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"
-OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxPCMCIAState, PXA2XX_PCMCIA)
-
-int pxa2xx_pcmcia_attach(void *opaque, PCMCIACardState *card);
-int pxa2xx_pcmcia_detach(void *opaque);
-void pxa2xx_pcmcia_set_irq_cb(void *opaque, qemu_irq irq, qemu_irq cd_irq);
-
 #endif /* PXA_H */
hw/pcmcia/pxa2xx.c deleted +0 -248

248 lines not on this page · raw message

hw/pcmcia/meson.build +0 -1
index 04e29c109c0..edcb7f5d263 100644
@@ -1,2 +1 @@
 system_ss.add(when: 'CONFIG_PCMCIA', if_true: files('pcmcia.c'))
-system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 20/53
#34 lore raw

Re: [PATCH for-9.2 20/53] hw/pcmcia: Remove pxa2xx pcmcia device

Quoted 9 lines · Peter Maydell

Remove the pxa2xx specific pcmcia device.

---
  include/hw/arm/pxa.h  |   8 --
  hw/pcmcia/pxa2xx.c    | 248 ------------------------------------------
  hw/pcmcia/meson.build |   1 -
  3 files changed, 257 deletions(-)

delete mode 100644 hw/pcmcia/pxa2xx.c

#35 lore raw

PATCH 21/53 hw/arm: Remove pxa2xx_gpio

In reply to Peter Maydell

Remove the pxa2xx-specific GPIO device.

---
 include/hw/arm/pxa.h |   5 -
 hw/arm/pxa2xx_gpio.c | 365 -------------------------------------------
 hw/arm/meson.build   |   2 +-
 3 files changed, 1 insertion(+), 371 deletions(-)
 delete mode 100644 hw/arm/pxa2xx_gpio.c
include/hw/arm/pxa.h +0 -5
index 5f98536bc69..fb28a683f38 100644
@@ -71,9 +71,4 @@
 /* pxa2xx_pic.c */
 DeviceState *pxa2xx_pic_init(hwaddr base, ARMCPU *cpu);
 
-/* pxa2xx_gpio.c */
-DeviceState *pxa2xx_gpio_init(hwaddr base,
-                              ARMCPU *cpu, DeviceState *pic, int lines);
-void pxa2xx_gpio_read_notifier(DeviceState *dev, qemu_irq handler);
-
 #endif /* PXA_H */
hw/arm/pxa2xx_gpio.c deleted +0 -365

365 lines not on this page · raw message

hw/arm/meson.build +1 -1
index 06e57a96cb4..da42d41dc93 100644
@@ -22,7 +22,7 @@ arm_ss.add(when: 'CONFIG_SABRELITE', if_true: files('sabrelite.c'))
 
 arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m.c'))
 arm_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210.c'))
-arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_gpio.c', 'pxa2xx_pic.c'))
+arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_pic.c'))
 arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic.c'))
 arm_ss.add(when: 'CONFIG_OMAP', if_true: files('omap1.c'))
 arm_ss.add(when: 'CONFIG_ALLWINNER_A10', if_true: files('allwinner-a10.c', 'cubieboard.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 21/53
#36 lore raw

Re: [PATCH for-9.2 21/53] hw/arm: Remove pxa2xx_gpio

Quoted 9 lines · Peter Maydell

Remove the pxa2xx-specific GPIO device.

---
  include/hw/arm/pxa.h |   5 -
  hw/arm/pxa2xx_gpio.c | 365 -------------------------------------------
  hw/arm/meson.build   |   2 +-
  3 files changed, 1 insertion(+), 371 deletions(-)

delete mode 100644 hw/arm/pxa2xx_gpio.c

#37 lore raw

PATCH 22/53 hw/arm: Remove pxa2xx_pic

In reply to Peter Maydell

Remove the pxa2xx-specific interrupt controller device. As this is the last user of the pxa.h header file and the CONFIG_PXA2XX define we can remove those too.

This completes the removal of the pxa2xx specific code. We leave:
* pxa2xx_timer -- still used by the Collie board (strongarm)
* the definitions of the CPUs themselves in target/arm (still usable by linux-user mode)

---
 MAINTAINERS          |   7 -
 include/hw/arm/pxa.h |  74 ---------
 hw/arm/pxa2xx_pic.c  | 359 -------------------------------------------
 hw/arm/Kconfig       |  11 --
 hw/arm/meson.build   |   1 -
 5 files changed, 452 deletions(-)
 delete mode 100644 include/hw/arm/pxa.h
 delete mode 100644 hw/arm/pxa2xx_pic.c
MAINTAINERS +0 -7
index 8ca445ad5a0..df208c539ac 100644
@@ -903,13 +903,6 @@ F: hw/intc/realview_gic.c
 F: include/hw/intc/realview_gic.h
 F: docs/system/arm/realview.rst
 
-PXA2XX
-M: Peter Maydell <[email protected]>
-L: [email protected]
-S: Odd Fixes
-F: hw/*/pxa2xx*
-F: include/hw/arm/pxa.h
-
 SABRELITE / i.MX6
 M: Peter Maydell <[email protected]>
 R: Jean-Christophe Dubois <[email protected]>
include/hw/arm/pxa.h deleted +0 -74

74 lines not on this page · raw message

hw/arm/pxa2xx_pic.c deleted +0 -359

359 lines not on this page · raw message

hw/arm/Kconfig +0 -11
index 8f6cbf94855..d33d59bee90 100644
@@ -166,17 +166,6 @@ config OMAP
     select SD
     select SERIAL
 
-config PXA2XX
-    bool
-    select FRAMEBUFFER
-    select I2C
-    select SERIAL
-    select SD
-    select SSI
-    select USB_OHCI_SYSBUS
-    select PCMCIA
-    select PXA2XX_TIMER
-
 config REALVIEW
     bool
     default y
hw/arm/meson.build +0 -1
index da42d41dc93..379800c78fd 100644
@@ -22,7 +22,6 @@ arm_ss.add(when: 'CONFIG_SABRELITE', if_true: files('sabrelite.c'))
 
 arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m.c'))
 arm_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210.c'))
-arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_pic.c'))
 arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic.c'))
 arm_ss.add(when: 'CONFIG_OMAP', if_true: files('omap1.c'))
 arm_ss.add(when: 'CONFIG_ALLWINNER_A10', if_true: files('allwinner-a10.c', 'cubieboard.c'))
Signature · 1 line
2.34.1
#38 lore raw

PATCH 23/53 hw/timer: Remove pxa27x-timer

In reply to Peter Maydell

The pxa27x-timer can be removed now we have removed the PXA2xx SoC models. The pxa25x-timer device must remain as it is still used by strongarm.

---
 hw/timer/pxa2xx_timer.c | 24 ------------------------
 1 file changed, 24 deletions(-)
hw/timer/pxa2xx_timer.c +0 -24
index d1a3ecac2b5..3234bbb1f4a 100644
@@ -54,7 +54,6 @@
 #define OSNR	0x20
 
 #define PXA25X_FREQ	3686400	/* 3.6864 MHz */
-#define PXA27X_FREQ	3250000	/* 3.25 MHz */
 
 static int pxa2xx_timer4_freq[8] = {
     [0] = 0,
@@ -572,28 +571,6 @@ static const TypeInfo pxa25x_timer_dev_info = {
     .class_init    = pxa25x_timer_dev_class_init,
 };
 
-static Property pxa27x_timer_dev_properties[] = {
-    DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA27X_FREQ),
-    DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags,
-                    PXA2XX_TIMER_HAVE_TM4, true),
-    DEFINE_PROP_END_OF_LIST(),
-};
-
-static void pxa27x_timer_dev_class_init(ObjectClass *klass, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(klass);
-
-    dc->desc = "PXA27x timer";
-    device_class_set_props(dc, pxa27x_timer_dev_properties);
-}
-
-static const TypeInfo pxa27x_timer_dev_info = {
-    .name          = "pxa27x-timer",
-    .parent        = TYPE_PXA2XX_TIMER,
-    .instance_size = sizeof(PXA2xxTimerInfo),
-    .class_init    = pxa27x_timer_dev_class_init,
-};
-
 static void pxa2xx_timer_class_init(ObjectClass *oc, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
@@ -615,7 +592,6 @@ static void pxa2xx_timer_register_types(void)
 {
     type_register_static(&pxa2xx_timer_type_info);
     type_register_static(&pxa25x_timer_dev_info);
-    type_register_static(&pxa27x_timer_dev_info);
 }
 
 type_init(pxa2xx_timer_register_types)
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 23/53
#39 lore raw

Re: [PATCH for-9.2 23/53] hw/timer: Remove pxa27x-timer

Quoted 51 lines · Peter Maydell

The pxa27x-timer can be removed now we have removed the PXA2xx SoC models. The pxa25x-timer device must remain as it is still used by strongarm.

---
  hw/timer/pxa2xx_timer.c | 24 ------------------------
  1 file changed, 24 deletions(-)
hw/timer/pxa2xx_timer.c +0 -23
index d1a3ecac2b5..3234bbb1f4a 100644
@@ -54,7 +54,6 @@
  #define OSNR	0x20
 
  #define PXA25X_FREQ	3686400	/* 3.6864 MHz */
-#define PXA27X_FREQ	3250000	/* 3.25 MHz */
 
  static int pxa2xx_timer4_freq[8] = {
      [0] = 0,
@@ -572,28 +571,6 @@ static const TypeInfo pxa25x_timer_dev_info = {
      .class_init    = pxa25x_timer_dev_class_init,
  };
 
-static Property pxa27x_timer_dev_properties[] = {
-    DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA27X_FREQ),
-    DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags,
-                    PXA2XX_TIMER_HAVE_TM4, true),
-    DEFINE_PROP_END_OF_LIST(),
-};
-
-static void pxa27x_timer_dev_class_init(ObjectClass *klass, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(klass);
-
-    dc->desc = "PXA27x timer";
-    device_class_set_props(dc, pxa27x_timer_dev_properties);
-}
-
-static const TypeInfo pxa27x_timer_dev_info = {
-    .name          = "pxa27x-timer",
-    .parent        = TYPE_PXA2XX_TIMER,
-    .instance_size = sizeof(PXA2xxTimerInfo),
-    .class_init    = pxa27x_timer_dev_class_init,
-};
-
  static void pxa2xx_timer_class_init(ObjectClass *oc, void *data)
  {
      DeviceClass *dc = DEVICE_CLASS(oc);

hw/timer/pxa2xx_timer.c static void pxa2xx_timer_register_types(void) · line 597

Quoted 7 lines
hw/timer/pxa2xx_timer.c +0 -1
@@ -615,7 +592,6 @@ static void pxa2xx_timer_register_types(void)
  {
      type_register_static(&pxa2xx_timer_type_info);
      type_register_static(&pxa25x_timer_dev_info);
-    type_register_static(&pxa27x_timer_dev_info);
  }
 
  type_init(pxa2xx_timer_register_types)

We could also remove the abstract parent:

-- >8 --

hw/timer/pxa2xx_timer.c +4 -19
index 3234bbb1f4..b379b621cc 100644
@@ -65,7 +65,7 @@ static int pxa2xx_timer4_freq[8] = {
     [5 ... 7] = 0,
 };
 
-#define TYPE_PXA2XX_TIMER "pxa2xx-timer"
+#define TYPE_PXA2XX_TIMER "pxa25x-timer"
 OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxTimerInfo, PXA2XX_TIMER)
 
 
@@ -561,36 +561,21 @@ static void pxa25x_timer_dev_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->desc = "PXA25x timer";
+    dc->realize  = pxa2xx_timer_realize;
+    dc->vmsd = &vmstate_pxa2xx_timer_regs;
     device_class_set_props(dc, pxa25x_timer_dev_properties);
 }
 
 static const TypeInfo pxa25x_timer_dev_info = {
     .name          = "pxa25x-timer",
-    .parent        = TYPE_PXA2XX_TIMER,
-    .instance_size = sizeof(PXA2xxTimerInfo),
-    .class_init    = pxa25x_timer_dev_class_init,
-};
-
-static void pxa2xx_timer_class_init(ObjectClass *oc, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(oc);
-
-    dc->realize  = pxa2xx_timer_realize;
-    dc->vmsd = &vmstate_pxa2xx_timer_regs;
-}
-
-static const TypeInfo pxa2xx_timer_type_info = {
-    .name          = TYPE_PXA2XX_TIMER,
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(PXA2xxTimerInfo),
     .instance_init = pxa2xx_timer_init,
-    .abstract      = true,
-    .class_init    = pxa2xx_timer_class_init,
+    .class_init    = pxa25x_timer_dev_class_init,
 };
 
 static void pxa2xx_timer_register_types(void)
 {
-    type_register_static(&pxa2xx_timer_type_info);
     type_register_static(&pxa25x_timer_dev_info);
 }
 

---

I can post a follow-up patch but not sure it is worth it.

Regardless,

#40 lore raw

PATCH 24/53 vl.c: Remove pxa2xx-specific -portrait and -rotate options

In reply to Peter Maydell

We have two command line options that are specific to the now-removed pxa2xx LCD display device, that allowed the user to rotate the display output by 90, 180 or 270 degrees. Since these are now useless, we can remove them, and the corresponding code in ui/input.c that transformed the input coordinates of mouse events to match the rotation.

---
Q: Do we need a separate deprecation period for these command line options? They were only useful and only documented as useful with the pxa2xx machines. Technically they did have an undocumented effect with other display devices in that the "rotate the input coordinates" part of the code would still do something even if the display device doesn't rotate the guest output. But that seems more like an unintended bug to me; we should really have made the options error out if the display device didn't handle them...

---
 include/sysemu/sysemu.h |  1 -
 system/globals.c        |  1 -
 system/vl.c             | 11 -----------
 ui/input.c              | 36 ------------------------------------
 qemu-options.hx         | 16 ----------------
 5 files changed, 65 deletions(-)
include/sysemu/sysemu.h +0 -1
index 5b4397eeb80..7ec419ce132 100644
@@ -41,7 +41,6 @@ extern int graphic_height;
 extern int graphic_depth;
 extern int display_opengl;
 extern const char *keyboard_layout;
-extern int graphic_rotate;
 extern int old_param;
 extern uint8_t *boot_splash_filedata;
 extern bool enable_mlock;
system/globals.c +0 -1
index d602a04fa28..84ce943ac96 100644
@@ -40,7 +40,6 @@ int autostart = 1;
 int vga_interface_type = VGA_NONE;
 bool vga_interface_created;
 Chardev *parallel_hds[MAX_PARALLEL_PORTS];
-int graphic_rotate;
 QEMUOptionRom option_rom[MAX_OPTION_ROMS];
 int nb_option_roms;
 int old_param;
system/vl.c +0 -11
index 01b8b8e77ad..f5675214cc9 100644
@@ -2910,17 +2910,6 @@ void qemu_init(int argc, char **argv)
                 nographic = true;
                 dpy.type = DISPLAY_TYPE_NONE;
                 break;
-            case QEMU_OPTION_portrait:
-                graphic_rotate = 90;
-                break;
-            case QEMU_OPTION_rotate:
-                graphic_rotate = strtol(optarg, (char **) &optarg, 10);
-                if (graphic_rotate != 0 && graphic_rotate != 90 &&
-                    graphic_rotate != 180 && graphic_rotate != 270) {
-                    error_report("only 90, 180, 270 deg rotation is available");
-                    exit(1);
-                }
-                break;
             case QEMU_OPTION_kernel:
                 qdict_put_str(machine_opts_dict, "kernel", optarg);
                 break;
ui/input.c +0 -36
index dc745860f48..7ddefebc439 100644
@@ -174,37 +174,6 @@ void qmp_input_send_event(const char *device,
     qemu_input_event_sync();
 }
 
-static int qemu_input_transform_invert_abs_value(int value)
-{
-  return (int64_t)INPUT_EVENT_ABS_MAX - value + INPUT_EVENT_ABS_MIN;
-}
-
-static void qemu_input_transform_abs_rotate(InputEvent *evt)
-{
-    InputMoveEvent *move = evt->u.abs.data;
-    switch (graphic_rotate) {
-    case 90:
-        if (move->axis == INPUT_AXIS_X) {
-            move->axis = INPUT_AXIS_Y;
-        } else if (move->axis == INPUT_AXIS_Y) {
-            move->axis = INPUT_AXIS_X;
-            move->value = qemu_input_transform_invert_abs_value(move->value);
-        }
-        break;
-    case 180:
-        move->value = qemu_input_transform_invert_abs_value(move->value);
-        break;
-    case 270:
-        if (move->axis == INPUT_AXIS_X) {
-            move->axis = INPUT_AXIS_Y;
-            move->value = qemu_input_transform_invert_abs_value(move->value);
-        } else if (move->axis == INPUT_AXIS_Y) {
-            move->axis = INPUT_AXIS_X;
-        }
-        break;
-    }
-}
-
 static void qemu_input_event_trace(QemuConsole *src, InputEvent *evt)
 {
     const char *name;
@@ -340,11 +309,6 @@ void qemu_input_event_send_impl(QemuConsole *src, InputEvent *evt)
 
     qemu_input_event_trace(src, evt);
 
-    /* pre processing */
-    if (graphic_rotate && (evt->type == INPUT_EVENT_KIND_ABS)) {
-            qemu_input_transform_abs_rotate(evt);
-    }
-
     /* send event */
     s = qemu_input_find_handler(1 << evt->type, src);
     if (!s) {
qemu-options.hx +0 -16
index d94e2cbbaeb..d013742e4a3 100644
@@ -2377,22 +2377,6 @@ SRST
         pick the first available. (Since 2.9)
 ERST
 
-DEF("portrait", 0, QEMU_OPTION_portrait,
-    "-portrait       rotate graphical output 90 deg left (only PXA LCD)\n",
-    QEMU_ARCH_ALL)
-SRST
-``-portrait``
-    Rotate graphical output 90 deg left (only PXA LCD).
-ERST
-
-DEF("rotate", HAS_ARG, QEMU_OPTION_rotate,
-    "-rotate <deg>   rotate graphical output some deg left (only PXA LCD)\n",
-    QEMU_ARCH_ALL)
-SRST
-``-rotate deg``
-    Rotate graphical output some deg left (only PXA LCD).
-ERST
-
 DEF("vga", HAS_ARG, QEMU_OPTION_vga,
     "-vga [std|cirrus|vmware|qxl|xenfb|tcx|cg3|virtio|none]\n"
     "                select video card type\n", QEMU_ARCH_ALL)
Signature · 1 line
2.34.1
#41 lore raw

PATCH 25/53 hw/arm: Remove 'n800' and 'n810' machines

In reply to Peter Maydell

Remove the 'n800' and 'n810' machine types, which modelled Nokia internet tablets. These were deprecated in 9.0 and so we can remove them for 9.2.

---
 MAINTAINERS                             |    3 -
 docs/system/arm/nseries.rst             |   33 -
 docs/system/target-arm.rst              |    1 -
 configs/devices/arm-softmmu/default.mak |    1 -
 hw/arm/nseries.c                        | 1473 -----------------------
 hw/arm/meson.build                      |    1 -
 tests/avocado/machine_arm_n8x0.py       |   49 -
 7 files changed, 1561 deletions(-)
 delete mode 100644 docs/system/arm/nseries.rst
 delete mode 100644 hw/arm/nseries.c
 delete mode 100644 tests/avocado/machine_arm_n8x0.py
MAINTAINERS +0 -3
index df208c539ac..0c1fad7afda 100644
@@ -867,7 +867,6 @@ nSeries
 M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/arm/nseries.c
 F: hw/display/blizzard.c
 F: hw/input/lm832x.c
 F: hw/input/tsc2005.c
@@ -878,8 +877,6 @@ F: include/hw/display/blizzard.h
 F: include/hw/input/lm832x.h
 F: include/hw/input/tsc2xxx.h
 F: include/hw/misc/cbus.h
-F: tests/avocado/machine_arm_n8x0.py
-F: docs/system/arm/nseries.rst
 
 Raspberry Pi
 M: Peter Maydell <[email protected]>
docs/system/arm/nseries.rst deleted +0 -33
deleted file mode 100644
index cd9edf5d88b..00000000000
@@ -1,33 +0,0 @@
-Nokia N800 and N810 tablets (``n800``, ``n810``)
-================================================
-
-Nokia N800 and N810 internet tablets (known also as RX-34 and RX-44 /
-48) emulation supports the following elements:
-
--  Texas Instruments OMAP2420 System-on-chip (ARM1136 core)
-
--  RAM and non-volatile OneNAND Flash memories
-
--  Display connected to EPSON remote framebuffer chip and OMAP on-chip
-   display controller and a LS041y3 MIPI DBI-C controller
-
--  TI TSC2301 (in N800) and TI TSC2005 (in N810) touchscreen
-   controllers driven through SPI bus
-
--  National Semiconductor LM8323-controlled qwerty keyboard driven
-   through |I2C| bus
-
--  Secure Digital card connected to OMAP MMC/SD host
-
--  Three OMAP on-chip UARTs and on-chip STI debugging console
-
--  Mentor Graphics \"Inventra\" dual-role USB controller embedded in a
-   TI TUSB6010 chip - only USB host mode is supported
-
--  TI TMP105 temperature sensor driven through |I2C| bus
-
--  TI TWL92230C power management companion with an RTC on
-   |I2C| bus
-
--  Nokia RETU and TAHVO multi-purpose chips with an RTC, connected
-   through CBUS
docs/system/target-arm.rst +0 -1
index 28af58135e4..3c0a5848453 100644
@@ -92,7 +92,6 @@ undocumented; you can get a complete list by running
    arm/emcraft-sf2
    arm/musicpal
    arm/kzm
-   arm/nseries
    arm/nrf
    arm/nuvoton
    arm/imx25-pdk
configs/devices/arm-softmmu/default.mak +0 -1
index 260b0cf9772..57ef1b8a702 100644
@@ -19,7 +19,6 @@
 # CONFIG_MPS3R=n
 # CONFIG_MUSCA=n
 # CONFIG_SX1=n
-# CONFIG_NSERIES=n
 # CONFIG_STELLARIS=n
 # CONFIG_STM32VLDISCOVERY=n
 # CONFIG_B_L475E_IOT01A=n
hw/arm/nseries.c deleted +0 -1473

1,473 lines not on this page · raw message

hw/arm/meson.build +0 -1
index 379800c78fd..dc00d91d731 100644
@@ -12,7 +12,6 @@ arm_ss.add(when: 'CONFIG_MUSICPAL', if_true: files('musicpal.c'))
 arm_ss.add(when: 'CONFIG_NETDUINOPLUS2', if_true: files('netduinoplus2.c'))
 arm_ss.add(when: 'CONFIG_OLIMEX_STM32_H405', if_true: files('olimex-stm32-h405.c'))
 arm_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx.c', 'npcm7xx_boards.c'))
-arm_ss.add(when: 'CONFIG_NSERIES', if_true: files('nseries.c'))
 arm_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview.c'))
 arm_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa-ref.c'))
 arm_ss.add(when: 'CONFIG_STELLARIS', if_true: files('stellaris.c'))
tests/avocado/machine_arm_n8x0.py deleted +0 -49

49 lines not on this page · raw message

Signature · 1 line
2.34.1
#42 lore raw

Re: [PATCH for-9.2 25/53] hw/arm: Remove 'n800' and 'n810' machines

Quoted 14 lines · Peter Maydell

Remove the 'n800' and 'n810' machine types, which modelled Nokia internet tablets. These were deprecated in 9.0 and so we can remove them for 9.2.

---
  MAINTAINERS                             |    3 -
  docs/system/arm/nseries.rst             |   33 -
  docs/system/target-arm.rst              |    1 -
  configs/devices/arm-softmmu/default.mak |    1 -
  hw/arm/nseries.c                        | 1473 -----------------------
  hw/arm/meson.build                      |    1 -
  tests/avocado/machine_arm_n8x0.py       |   49 -
  7 files changed, 1561 deletions(-)
Quoted 3 lines

delete mode 100644 docs/system/arm/nseries.rst delete mode 100644 hw/arm/nseries.c
delete mode 100644 tests/avocado/machine_arm_n8x0.py

I think tests/qtest/libqos/arm-n800-machine.c should now get removed, too?

Thomas

Reviewed-by on v1 25/53
#43 lore raw

Re: [PATCH for-9.2 25/53] hw/arm: Remove 'n800' and 'n810' machines

In reply to Peter Maydell
Quoted 14 lines · Peter Maydell

Remove the 'n800' and 'n810' machine types, which modelled Nokia internet tablets. These were deprecated in 9.0 and so we can remove them for 9.2.

---
  MAINTAINERS                             |    3 -
  docs/system/arm/nseries.rst             |   33 -
  docs/system/target-arm.rst              |    1 -
  configs/devices/arm-softmmu/default.mak |    1 -
  hw/arm/nseries.c                        | 1473 -----------------------
  hw/arm/meson.build                      |    1 -
  tests/avocado/machine_arm_n8x0.py       |   49 -
  7 files changed, 1561 deletions(-)
Quoted 3 lines

delete mode 100644 docs/system/arm/nseries.rst delete mode 100644 hw/arm/nseries.c
delete mode 100644 tests/avocado/machine_arm_n8x0.py

#44 lore raw

PATCH 26/53 hw/misc: Remove cbus

In reply to Peter Maydell

The devices in hw/misc/cbus.c were used only by the now-removed nseries machine types, so they can be removed.

As this is the last use of the CONFIG_NSERIES define we can remove that from KConfig now.

---
 MAINTAINERS            |   2 -
 include/hw/misc/cbus.h |  31 ---
 hw/misc/cbus.c         | 619 -----------------------------------------
 hw/arm/Kconfig         |  14 -
 hw/misc/meson.build    |   1 -
 5 files changed, 667 deletions(-)
 delete mode 100644 include/hw/misc/cbus.h
 delete mode 100644 hw/misc/cbus.c
MAINTAINERS +0 -2
index 0c1fad7afda..156c1ba992c 100644
@@ -871,12 +871,10 @@ F: hw/display/blizzard.c
 F: hw/input/lm832x.c
 F: hw/input/tsc2005.c
 F: hw/input/tsc210x.c
-F: hw/misc/cbus.c
 F: hw/rtc/twl92230.c
 F: include/hw/display/blizzard.h
 F: include/hw/input/lm832x.h
 F: include/hw/input/tsc2xxx.h
-F: include/hw/misc/cbus.h
 
 Raspberry Pi
 M: Peter Maydell <[email protected]>
include/hw/misc/cbus.h deleted +0 -31
deleted file mode 100644
index 5334984020d..00000000000
@@ -1,31 +0,0 @@
-/*
- * CBUS three-pin bus and the Retu / Betty / Tahvo / Vilma / Avilma /
- * Hinku / Vinku / Ahne / Pihi chips used in various Nokia platforms.
- * Based on reverse-engineering of a linux driver.
- *
- * Copyright (C) 2008 Nokia Corporation
- * Written by Andrzej Zaborowski
- *
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
- * See the COPYING file in the top-level directory.
- */
-
-#ifndef HW_MISC_CBUS_H
-#define HW_MISC_CBUS_H
-
-
-typedef struct {
-    qemu_irq clk;
-    qemu_irq dat;
-    qemu_irq sel;
-} CBus;
-
-CBus *cbus_init(qemu_irq dat_out);
-void cbus_attach(CBus *bus, void *slave_opaque);
-
-void *retu_init(qemu_irq irq, int vilma);
-void *tahvo_init(qemu_irq irq, int betty);
-
-void retu_key_event(void *retu, int state);
-
-#endif
hw/misc/cbus.c deleted +0 -619

619 lines not on this page · raw message

hw/arm/Kconfig +0 -14
index d33d59bee90..a70ceff504b 100644
@@ -142,20 +142,6 @@ config OLIMEX_STM32_H405
     depends on TCG && ARM
     select STM32F405_SOC
 
-config NSERIES
-    bool
-    default y
-    depends on TCG && ARM
-    select OMAP
-    select TMP105   # temperature sensor
-    select BLIZZARD # LCD/TV controller
-    select ONENAND
-    select TSC210X  # touchscreen/sensors/audio
-    select TSC2005  # touchscreen/sensors/keypad
-    select LM832X   # GPIO keyboard chip
-    select TWL92230 # energy-management
-    select TUSB6010
-
 config OMAP
     bool
     select FRAMEBUFFER
hw/misc/meson.build +0 -1
index 56b94655152..01b77ca200f 100644
@@ -51,7 +51,6 @@ system_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-ccu.c'
 system_ss.add(when: 'CONFIG_ALLWINNER_R40', if_true: files('allwinner-r40-dramc.c'))
 system_ss.add(when: 'CONFIG_AXP2XX_PMU', if_true: files('axp2xx.c'))
 system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
-system_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
 system_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
 system_ss.add(when: 'CONFIG_IMX', if_true: files(
Signature · 1 line
2.34.1
#45 lore raw

Re: [PATCH for-9.2 26/53] hw/misc: Remove cbus

Quoted 23 lines · Peter Maydell

The devices in hw/misc/cbus.c were used only by the now-removed nseries machine types, so they can be removed.

As this is the last use of the CONFIG_NSERIES define we can remove that from KConfig now.

---
  MAINTAINERS            |   2 -
  include/hw/misc/cbus.h |  31 ---
  hw/misc/cbus.c         | 619 -----------------------------------------
  hw/arm/Kconfig         |  14 -
  hw/misc/meson.build    |   1 -
  5 files changed, 667 deletions(-)

delete mode 100644 include/hw/misc/cbus.h
delete mode 100644 hw/misc/cbus.c

hw/arm/Kconfig +0 -0
index d33d59bee90..a70ceff504b 100644

hw/arm/Kconfig config OLIMEX_STM32_H405 · line 148

Quoted 7 lines
hw/arm/Kconfig +0 -4
@@ -142,20 +142,6 @@ config OLIMEX_STM32_H405
      depends on TCG && ARM
      select STM32F405_SOC
 
-config NSERIES
-    bool
-    default y
-    depends on TCG && ARM

Maybe squash this ...

hw/arm/Kconfig config OLIMEX_STM32_H405 · line 157

Quoted 9 lines
hw/arm/Kconfig +0 -9
-    select OMAP
-    select TMP105   # temperature sensor
-    select BLIZZARD # LCD/TV controller
-    select ONENAND
-    select TSC210X  # touchscreen/sensors/audio
-    select TSC2005  # touchscreen/sensors/keypad
-    select LM832X   # GPIO keyboard chip
-    select TWL92230 # energy-management
-    select TUSB6010

... in the previous patch?

Quoted 4 lines
hw/arm/Kconfig +0 -1
-
  config OMAP
      bool
      select FRAMEBUFFER
#46 lore raw

Re: [PATCH for-9.2 26/53] hw/misc: Remove cbus

Quoted 45 lines · Philippe Mathieu-Daudé
Quoted 23 lines · Peter Maydell

The devices in hw/misc/cbus.c were used only by the now-removed nseries machine types, so they can be removed.

As this is the last use of the CONFIG_NSERIES define we can remove that from KConfig now.

---
  MAINTAINERS            |   2 -
  include/hw/misc/cbus.h |  31 ---
  hw/misc/cbus.c         | 619 -----------------------------------------
  hw/arm/Kconfig         |  14 -
  hw/misc/meson.build    |   1 -
  5 files changed, 667 deletions(-)

delete mode 100644 include/hw/misc/cbus.h
delete mode 100644 hw/misc/cbus.c

hw/arm/Kconfig +0 -0
index d33d59bee90..a70ceff504b 100644

hw/arm/Kconfig config OLIMEX_STM32_H405 · line 148

Quoted 7 lines
hw/arm/Kconfig +0 -4
@@ -142,20 +142,6 @@ config OLIMEX_STM32_H405
      depends on TCG && ARM
      select STM32F405_SOC
 
-config NSERIES
-    bool
-    default y
-    depends on TCG && ARM

Maybe squash this ...

hw/arm/Kconfig config OLIMEX_STM32_H405 · line 157

Quoted 9 lines
hw/arm/Kconfig +0 -9
-    select OMAP
-    select TMP105   # temperature sensor
-    select BLIZZARD # LCD/TV controller
-    select ONENAND
-    select TSC210X  # touchscreen/sensors/audio
-    select TSC2005  # touchscreen/sensors/keypad
-    select LM832X   # GPIO keyboard chip
-    select TWL92230 # energy-management
-    select TUSB6010
Quoted 1 line

... in the previous patch?

I left it til this one because it's only in this patch that we get rid of the last user of the CONFIG_NSERIES define:

-system_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))

-- PMM

#47 lore raw

PATCH 27/53 hw/display: Remove Blizzard display device

In reply to Peter Maydell

Remove the blizzard display device, which was only used with the n800 and n810 machines.

---
 MAINTAINERS                   |    2 -
 include/hw/display/blizzard.h |   21 -
 hw/display/blizzard.c         | 1026 ---------------------------------
 hw/display/Kconfig            |    3 -
 hw/display/meson.build        |    1 -
 5 files changed, 1053 deletions(-)
 delete mode 100644 include/hw/display/blizzard.h
 delete mode 100644 hw/display/blizzard.c
MAINTAINERS +0 -2
index 156c1ba992c..beee6cb9613 100644
@@ -867,12 +867,10 @@ nSeries
 M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/display/blizzard.c
 F: hw/input/lm832x.c
 F: hw/input/tsc2005.c
 F: hw/input/tsc210x.c
 F: hw/rtc/twl92230.c
-F: include/hw/display/blizzard.h
 F: include/hw/input/lm832x.h
 F: include/hw/input/tsc2xxx.h
 
include/hw/display/blizzard.h deleted +0 -21
deleted file mode 100644
index 5b330188354..00000000000
@@ -1,21 +0,0 @@
-/*
- * Epson S1D13744/S1D13745 (Blizzard/Hailstorm/Tornado) LCD/TV controller.
- *
- * Copyright (C) 2008 Nokia Corporation
- * Written by Andrzej Zaborowski
- *
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
- * See the COPYING file in the top-level directory.
- */
-
-#ifndef HW_DISPLAY_BLIZZARD_H
-#define HW_DISPLAY_BLIZZARD_H
-
-
-void *s1d13745_init(qemu_irq gpio_int);
-void s1d13745_write(void *opaque, int dc, uint16_t value);
-void s1d13745_write_block(void *opaque, int dc,
-                          void *buf, size_t len, int pitch);
-uint16_t s1d13745_read(void *opaque, int dc);
-
-#endif
hw/display/blizzard.c deleted +0 -1026

1,026 lines not on this page · raw message

hw/display/Kconfig +0 -3
index a4552c8ed78..2c72a61987a 100644
@@ -66,9 +66,6 @@ config BOCHS_DISPLAY
     select VGA
     select EDID
 
-config BLIZZARD
-    bool
-
 config FRAMEBUFFER
     bool
 
hw/display/meson.build +0 -1
index 1f965a1be84..2b1693ad728 100644
@@ -22,7 +22,6 @@ system_ss.add(when: 'CONFIG_VGA_MMIO', if_true: files('vga-mmio.c'))
 system_ss.add(when: 'CONFIG_VMWARE_VGA', if_true: files('vmware_vga.c'))
 system_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c'))
 
-system_ss.add(when: 'CONFIG_BLIZZARD', if_true: files('blizzard.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c'))
 system_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c'))
 
Signature · 1 line
2.34.1
Reviewed-by on v1 27/53
#48 lore raw

Re: [PATCH for-9.2 27/53] hw/display: Remove Blizzard display device

Quoted 11 lines · Peter Maydell

Remove the blizzard display device, which was only used with the n800 and n810 machines.

---
  MAINTAINERS                   |    2 -
  include/hw/display/blizzard.h |   21 -
  hw/display/blizzard.c         | 1026 ---------------------------------
  hw/display/Kconfig            |    3 -
  hw/display/meson.build        |    1 -
  5 files changed, 1053 deletions(-)
Quoted 2 lines

delete mode 100644 include/hw/display/blizzard.h delete mode 100644 hw/display/blizzard.c

#49 lore raw

PATCH 28/53 hw/input: Remove tsc2005 touchscreen controller

In reply to Peter Maydell

Remove the tsc2005 touchscreen controller, which was only used by the n800 and n810 machines.

---
 MAINTAINERS                |   1 -
 include/hw/input/tsc2xxx.h |   5 -
 hw/input/tsc2005.c         | 571 -------------------------------------
 hw/input/Kconfig           |   3 -
 hw/input/meson.build       |   1 -
 hw/input/trace-events      |   3 -
 6 files changed, 584 deletions(-)
 delete mode 100644 hw/input/tsc2005.c
MAINTAINERS +0 -1
index beee6cb9613..6d7248ad022 100644
@@ -868,7 +868,6 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
 F: hw/input/lm832x.c
-F: hw/input/tsc2005.c
 F: hw/input/tsc210x.c
 F: hw/rtc/twl92230.c
 F: include/hw/input/lm832x.h
include/hw/input/tsc2xxx.h +0 -5
index 00eca17674e..dcd4fa7faed 100644
@@ -33,9 +33,4 @@ uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
 void tsc210x_set_transform(uWireSlave *chip, const MouseTransformInfo *info);
 void tsc210x_key_event(uWireSlave *chip, int key, int down);
 
-/* tsc2005.c */
-void *tsc2005_init(qemu_irq pintdav);
-uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
-void tsc2005_set_transform(void *opaque, const MouseTransformInfo *info);
-
 #endif
hw/input/tsc2005.c deleted +0 -571

571 lines not on this page · raw message

hw/input/Kconfig +0 -3
index acfdba5c4ca..01a64a9aa7e 100644
@@ -20,9 +20,6 @@ config PS2
 config STELLARIS_GAMEPAD
     bool
 
-config TSC2005
-    bool
-
 config VIRTIO_INPUT
     bool
     default y
hw/input/meson.build +0 -1
index fe60b6e28fc..064d1e47802 100644
@@ -5,7 +5,6 @@ system_ss.add(when: 'CONFIG_PCKBD', if_true: files('pckbd.c'))
 system_ss.add(when: 'CONFIG_PL050', if_true: files('pl050.c'))
 system_ss.add(when: 'CONFIG_PS2', if_true: files('ps2.c'))
 system_ss.add(when: 'CONFIG_STELLARIS_GAMEPAD', if_true: files('stellaris_gamepad.c'))
-system_ss.add(when: 'CONFIG_TSC2005', if_true: files('tsc2005.c'))
 
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input-hid.c'))
hw/input/trace-events +0 -3
index 29001a827d9..1484625565b 100644
@@ -46,9 +46,6 @@ ps2_mouse_reset(void *opaque) "%p"
 hid_kbd_queue_full(void) "queue full"
 hid_kbd_queue_empty(void) "queue empty"
 
-# tsc2005.c
-tsc2005_sense(const char *state) "touchscreen sense %s"
-
 # virtio-input.c
 virtio_input_queue_full(void) "queue full"
 
Signature · 1 line
2.34.1
Reviewed-by on v1 28/53
#50 lore raw

Re: [PATCH for-9.2 28/53] hw/input: Remove tsc2005 touchscreen controller

Quoted 12 lines · Peter Maydell

Remove the tsc2005 touchscreen controller, which was only used by the n800 and n810 machines.

---
  MAINTAINERS                |   1 -
  include/hw/input/tsc2xxx.h |   5 -
  hw/input/tsc2005.c         | 571 -------------------------------------
  hw/input/Kconfig           |   3 -
  hw/input/meson.build       |   1 -
  hw/input/trace-events      |   3 -
  6 files changed, 584 deletions(-)
Quoted 1 line

delete mode 100644 hw/input/tsc2005.c

#51 lore raw

PATCH 29/53 hw/input: Remove tsc210x device

In reply to Peter Maydell

Remove the tsc210x touchscreen controller device, which was only used by the n800 and n810.

The uWireSlave struct is still used in omap1.c (at least for compilation purposes -- nothing any longer calls omap_uwire_attach() and so the struct's members will not be used at runtime), so we move it into omap.h so we can delete tsc2xxx.h.

---
 MAINTAINERS                |    2 -
 include/hw/arm/omap.h      |    7 +-
 include/hw/input/tsc2xxx.h |   36 --
 hw/input/tsc210x.c         | 1241 ------------------------------------
 hw/input/Kconfig           |    3 -
 hw/input/meson.build       |    1 -
 6 files changed, 6 insertions(+), 1284 deletions(-)
 delete mode 100644 include/hw/input/tsc2xxx.h
 delete mode 100644 hw/input/tsc210x.c
MAINTAINERS +0 -2
index 6d7248ad022..e44b6eb38b0 100644
@@ -868,10 +868,8 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
 F: hw/input/lm832x.c
-F: hw/input/tsc210x.c
 F: hw/rtc/twl92230.c
 F: include/hw/input/lm832x.h
-F: include/hw/input/tsc2xxx.h
 
 Raspberry Pi
 M: Peter Maydell <[email protected]>
include/hw/arm/omap.h +6 -1
index 40ee8ea9e56..0ca7c9604e7 100644
@@ -21,7 +21,6 @@
 #define HW_ARM_OMAP_H
 
 #include "exec/memory.h"
-#include "hw/input/tsc2xxx.h"
 #include "target/arm/cpu-qom.h"
 #include "qemu/log.h"
 #include "qom/object.h"
@@ -730,6 +729,12 @@ qemu_irq *omap_mpuio_in_get(struct omap_mpuio_s *s);
 void omap_mpuio_out_set(struct omap_mpuio_s *s, int line, qemu_irq handler);
 void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down);
 
+typedef struct uWireSlave {
+    uint16_t (*receive)(void *opaque);
+    void (*send)(void *opaque, uint16_t data);
+    void *opaque;
+} uWireSlave;
+
 struct omap_uwire_s;
 void omap_uwire_attach(struct omap_uwire_s *s,
                 uWireSlave *slave, int chipselect);
include/hw/input/tsc2xxx.h deleted +0 -36
deleted file mode 100644
index dcd4fa7faed..00000000000
@@ -1,36 +0,0 @@
-/*
- * TI touchscreen controller
- *
- * Copyright (c) 2006 Andrzej Zaborowski
- * Copyright (C) 2008 Nokia Corporation
- *
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
- * See the COPYING file in the top-level directory.
- */
-
-#ifndef HW_INPUT_TSC2XXX_H
-#define HW_INPUT_TSC2XXX_H
-
-typedef struct MouseTransformInfo {
-    /* Touchscreen resolution */
-    int x;
-    int y;
-    /* Calibration values as used/generated by tslib */
-    int a[7];
-} MouseTransformInfo;
-
-typedef struct uWireSlave {
-    uint16_t (*receive)(void *opaque);
-    void (*send)(void *opaque, uint16_t data);
-    void *opaque;
-} uWireSlave;
-
-/* tsc210x.c */
-uWireSlave *tsc2102_init(qemu_irq pint);
-uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
-I2SCodec *tsc210x_codec(uWireSlave *chip);
-uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
-void tsc210x_set_transform(uWireSlave *chip, const MouseTransformInfo *info);
-void tsc210x_key_event(uWireSlave *chip, int key, int down);
-
-#endif
hw/input/tsc210x.c deleted +0 -1241

1,241 lines not on this page · raw message

hw/input/Kconfig +0 -3
index 01a64a9aa7e..6f3ffbc5aa1 100644
@@ -35,8 +35,5 @@ config VHOST_USER_INPUT
     default y
     depends on VIRTIO_INPUT && VHOST_USER
 
-config TSC210X
-    bool
-
 config LASIPS2
     select PS2
hw/input/meson.build +0 -1
index 064d1e47802..f12796fb695 100644
@@ -10,5 +10,4 @@ system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input-hid.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_INPUT_HOST', if_true: files('virtio-input-host.c'))
 
-system_ss.add(when: 'CONFIG_TSC210X', if_true: files('tsc210x.c'))
 system_ss.add(when: 'CONFIG_LASIPS2', if_true: files('lasips2.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 29/53
#52 lore raw

Re: [PATCH for-9.2 29/53] hw/input: Remove tsc210x device

Quoted 2 lines · Peter Maydell

Remove the tsc210x touchscreen controller device, which was only used by the n800 and n810.

... and the cheetah palm machine ... but you removed that earlier in the series already.

Anyway:

Quoted 16 lines

The uWireSlave struct is still used in omap1.c (at least for compilation purposes -- nothing any longer calls omap_uwire_attach() and so the struct's members will not be used at runtime), so we move it into omap.h so we can delete tsc2xxx.h.

---
  MAINTAINERS                |    2 -
  include/hw/arm/omap.h      |    7 +-
  include/hw/input/tsc2xxx.h |   36 --
  hw/input/tsc210x.c         | 1241 ------------------------------------
  hw/input/Kconfig           |    3 -
  hw/input/meson.build       |    1 -
  6 files changed, 6 insertions(+), 1284 deletions(-)

delete mode 100644 include/hw/input/tsc2xxx.h
delete mode 100644 hw/input/tsc210x.c

#53 lore raw

PATCH 30/53 hw/rtc: Remove twl92230 device

In reply to Peter Maydell

Remove the TWL92230 RTC device, which was used only by the n800 and n810.

---
 MAINTAINERS        |   1 -
 hw/rtc/twl92230.c  | 882 ---------------------------------------------
 hw/rtc/Kconfig     |   4 -
 hw/rtc/meson.build |   1 -
 4 files changed, 888 deletions(-)
 delete mode 100644 hw/rtc/twl92230.c
MAINTAINERS +0 -1
index e44b6eb38b0..7ae424fbf9f 100644
@@ -868,7 +868,6 @@ M: Peter Maydell <[email protected]>
 L: [email protected]
 S: Odd Fixes
 F: hw/input/lm832x.c
-F: hw/rtc/twl92230.c
 F: include/hw/input/lm832x.h
 
 Raspberry Pi
hw/rtc/twl92230.c deleted +0 -882

882 lines not on this page · raw message

hw/rtc/Kconfig +0 -4
index d0d8dda0840..2fe04ec1d04 100644
@@ -14,10 +14,6 @@ config M48T59
 config PL031
     bool
 
-config TWL92230
-    bool
-    depends on I2C
-
 config MC146818RTC
     depends on ISA_BUS
     bool
hw/rtc/meson.build +0 -1
index 3ea2affe0b9..8ecc2d792c1 100644
@@ -3,7 +3,6 @@ system_ss.add(when: 'CONFIG_DS1338', if_true: files('ds1338.c'))
 system_ss.add(when: 'CONFIG_M41T80', if_true: files('m41t80.c'))
 system_ss.add(when: 'CONFIG_M48T59', if_true: files('m48t59.c'))
 system_ss.add(when: 'CONFIG_PL031', if_true: files('pl031.c'))
-system_ss.add(when: 'CONFIG_TWL92230', if_true: files('twl92230.c'))
 system_ss.add(when: ['CONFIG_ISA_BUS', 'CONFIG_M48T59'], if_true: files('m48t59-isa.c'))
 system_ss.add(when: 'CONFIG_XLNX_ZYNQMP', if_true: files('xlnx-zynqmp-rtc.c'))
 
Signature · 1 line
2.34.1
Reviewed-by on v1 30/53
#54 lore raw

Re: [PATCH for-9.2 30/53] hw/rtc: Remove twl92230 device

Quoted 10 lines · Peter Maydell

Remove the TWL92230 RTC device, which was used only by the n800 and n810.

---
  MAINTAINERS        |   1 -
  hw/rtc/twl92230.c  | 882 ---------------------------------------------
  hw/rtc/Kconfig     |   4 -
  hw/rtc/meson.build |   1 -
  4 files changed, 888 deletions(-)

delete mode 100644 hw/rtc/twl92230.c

#55 lore raw

PATCH 31/53 hw/input: Remove lm832x device

In reply to Peter Maydell

Remove the lm832x keyboard-and-pwm i2c device model. This was only used by the n800 and n810 machines.

(Although this is an i2c device and so in theory available to create on the command line, in practice it has an outbound IRQ line that the machine model needs to wire up, and the only way to inject keys events into it is to call the lm832x_key_event() function, so it isn't in practice possible to use it separately from the n800/n810.)

---
 MAINTAINERS               |   7 -
 include/hw/input/lm832x.h |  28 --
 hw/input/lm832x.c         | 528 --------------------------------------
 hw/input/Kconfig          |   4 -
 hw/input/meson.build      |   1 -
 5 files changed, 568 deletions(-)
 delete mode 100644 include/hw/input/lm832x.h
 delete mode 100644 hw/input/lm832x.c
MAINTAINERS +0 -7
index 7ae424fbf9f..d0de8853d55 100644
@@ -863,13 +863,6 @@ F: pc-bios/npcm7xx_bootrom.bin
 F: roms/vbootrom
 F: docs/system/arm/nuvoton.rst
 
-nSeries
-M: Peter Maydell <[email protected]>
-L: [email protected]
-S: Odd Fixes
-F: hw/input/lm832x.c
-F: include/hw/input/lm832x.h
-
 Raspberry Pi
 M: Peter Maydell <[email protected]>
 R: Philippe Mathieu-Daudé <[email protected]>
include/hw/input/lm832x.h deleted +0 -28
deleted file mode 100644
index e0e5d5ef20e..00000000000
@@ -1,28 +0,0 @@
-/*
- * National Semiconductor LM8322/8323 GPIO keyboard & PWM chips.
- *
- * Copyright (C) 2008 Nokia Corporation
- * Written by Andrzej Zaborowski <[email protected]>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 or
- * (at your option) version 3 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef HW_INPUT_LM832X_H
-#define HW_INPUT_LM832X_H
-
-#define TYPE_LM8323 "lm8323"
-
-void lm832x_key_event(DeviceState *dev, int key, int state);
-
-#endif
hw/input/lm832x.c deleted +0 -528

528 lines not on this page · raw message

hw/input/Kconfig +0 -4
index 6f3ffbc5aa1..a116cb82dff 100644
@@ -1,10 +1,6 @@
 config ADB
     bool
 
-config LM832X
-    bool
-    depends on I2C
-
 config PCKBD
     bool
     select PS2
hw/input/meson.build +0 -1
index f12796fb695..90a214962c7 100644
@@ -1,6 +1,5 @@
 system_ss.add(files('hid.c'))
 system_ss.add(when: 'CONFIG_ADB', if_true: files('adb.c', 'adb-mouse.c', 'adb-kbd.c'))
-system_ss.add(when: 'CONFIG_LM832X', if_true: files('lm832x.c'))
 system_ss.add(when: 'CONFIG_PCKBD', if_true: files('pckbd.c'))
 system_ss.add(when: 'CONFIG_PL050', if_true: files('pl050.c'))
 system_ss.add(when: 'CONFIG_PS2', if_true: files('ps2.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 31/53
#56 lore raw

Re: [PATCH for-9.2 31/53] hw/input: Remove lm832x device

Quoted 17 lines · Peter Maydell

Remove the lm832x keyboard-and-pwm i2c device model. This was only used by the n800 and n810 machines.

(Although this is an i2c device and so in theory available to create on the command line, in practice it has an outbound IRQ line that the machine model needs to wire up, and the only way to inject keys events into it is to call the lm832x_key_event() function, so it isn't in practice possible to use it separately from the n800/n810.)

---
  MAINTAINERS               |   7 -
  include/hw/input/lm832x.h |  28 --
  hw/input/lm832x.c         | 528 --------------------------------------
  hw/input/Kconfig          |   4 -
  hw/input/meson.build      |   1 -
  5 files changed, 568 deletions(-)
Quoted 2 lines

delete mode 100644 include/hw/input/lm832x.h
delete mode 100644 hw/input/lm832x.c

#57 lore raw

PATCH 32/53 hw/block: Remove OneNAND device

In reply to Peter Maydell

The OneNAND devices were only used by n800/n810, so they can be removed now.

---
 include/hw/block/flash.h |   3 -
 hw/block/onenand.c       | 872 ---------------------------------------
 hw/block/Kconfig         |   3 -
 hw/block/meson.build     |   1 -
 4 files changed, 879 deletions(-)
 delete mode 100644 hw/block/onenand.c
include/hw/block/flash.h +0 -3
index 2b5ccd92f46..b985c825a01 100644
@@ -62,9 +62,6 @@ uint32_t nand_getbuswidth(DeviceState *dev);
 #define NAND_MFR_HYNIX      0xad
 #define NAND_MFR_MICRON     0x2c
 
-/* onenand.c */
-void *onenand_raw_otp(DeviceState *onenand_device);
-
 /* ecc.c */
 typedef struct {
     uint8_t cp;     /* Column parity */
hw/block/onenand.c deleted +0 -872

872 lines not on this page · raw message

hw/block/Kconfig +0 -3
index 9e8f28f9824..002d255dced 100644
@@ -25,9 +25,6 @@ config PFLASH_CFI02
 config ECC
     bool
 
-config ONENAND
-    bool
-
 config TC58128
     bool
 
hw/block/meson.build +0 -1
index 8aa4dc3893c..74c8eb9e735 100644
@@ -8,7 +8,6 @@ system_ss.add(when: 'CONFIG_FDC', if_true: files('fdc.c'))
 system_ss.add(when: 'CONFIG_FDC_ISA', if_true: files('fdc-isa.c'))
 system_ss.add(when: 'CONFIG_FDC_SYSBUS', if_true: files('fdc-sysbus.c'))
 system_ss.add(when: 'CONFIG_NAND', if_true: files('nand.c'))
-system_ss.add(when: 'CONFIG_ONENAND', if_true: files('onenand.c'))
 system_ss.add(when: 'CONFIG_PFLASH_CFI01', if_true: files('pflash_cfi01.c'))
 system_ss.add(when: 'CONFIG_PFLASH_CFI02', if_true: files('pflash_cfi02.c'))
 system_ss.add(when: 'CONFIG_SSI_M25P80', if_true: files('m25p80.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 32/53
#58 lore raw

Re: [PATCH for-9.2 32/53] hw/block: Remove OneNAND device

Quoted 11 lines · Peter Maydell

The OneNAND devices were only used by n800/n810, so they can be removed now.

---
  include/hw/block/flash.h |   3 -
  hw/block/onenand.c       | 872 ---------------------------------------
  hw/block/Kconfig         |   3 -
  hw/block/meson.build     |   1 -
  4 files changed, 879 deletions(-)

delete mode 100644 hw/block/onenand.c

#59 lore raw

PATCH 33/53 hw/usb: Remove tusb6010 USB controller

In reply to Peter Maydell

The tusb6010 was only used by the n800/n810 machines, so it can be removed now.

---
 hw/usb/tusb6010.c  | 850 ---------------------------------------------
 hw/usb/Kconfig     |   4 -
 hw/usb/meson.build |   1 -
 3 files changed, 855 deletions(-)
 delete mode 100644 hw/usb/tusb6010.c
hw/usb/tusb6010.c deleted +0 -850
deleted file mode 100644
index 1dd4071e683..00000000000
@@ -1,850 +0,0 @@
-/*
- * Texas Instruments TUSB6010 emulation.
- * Based on reverse-engineering of a linux driver.
- *
- * Copyright (C) 2008 Nokia Corporation
- * Written by Andrzej Zaborowski <[email protected]>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 or
- * (at your option) version 3 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "qemu/osdep.h"
-#include "qemu/module.h"
-#include "qemu/timer.h"
-#include "hw/usb.h"
-#include "hw/usb/hcd-musb.h"
-#include "hw/arm/omap.h"
-#include "hw/hw.h"
-#include "hw/irq.h"
-#include "hw/sysbus.h"
-#include "qom/object.h"
-
-#define TYPE_TUSB6010 "tusb6010"
-OBJECT_DECLARE_SIMPLE_TYPE(TUSBState, TUSB6010)
-
-struct TUSBState {
-    SysBusDevice parent_obj;
-
-    MemoryRegion iomem[2];
-    qemu_irq irq;
-    MUSBState *musb;
-    QEMUTimer *otg_timer;
-    QEMUTimer *pwr_timer;
-
-    int power;
-    uint32_t scratch;
-    uint16_t test_reset;
-    uint32_t prcm_config;
-    uint32_t prcm_mngmt;
-    uint16_t otg_status;
-    uint32_t dev_config;
-    int host_mode;
-    uint32_t intr;
-    uint32_t intr_ok;
-    uint32_t mask;
-    uint32_t usbip_intr;
-    uint32_t usbip_mask;
-    uint32_t gpio_intr;
-    uint32_t gpio_mask;
-    uint32_t gpio_config;
-    uint32_t dma_intr;
-    uint32_t dma_mask;
-    uint32_t dma_map;
-    uint32_t dma_config;
-    uint32_t ep0_config;
-    uint32_t rx_config[15];
-    uint32_t tx_config[15];
-    uint32_t wkup_mask;
-    uint32_t pullup[2];
-    uint32_t control_config;
-    uint32_t otg_timer_val;
-};
-
-#define TUSB_DEVCLOCK			60000000	/* 60 MHz */
-
-#define TUSB_VLYNQ_CTRL			0x004
-
-/* Mentor Graphics OTG core registers.  */
-#define TUSB_BASE_OFFSET		0x400
-
-/* FIFO registers, 32-bit.  */
-#define TUSB_FIFO_BASE			0x600
-
-/* Device System & Control registers, 32-bit.  */
-#define TUSB_SYS_REG_BASE		0x800
-
-#define TUSB_DEV_CONF			(TUSB_SYS_REG_BASE + 0x000)
-#define	TUSB_DEV_CONF_USB_HOST_MODE	(1 << 16)
-#define	TUSB_DEV_CONF_PROD_TEST_MODE	(1 << 15)
-#define	TUSB_DEV_CONF_SOFT_ID		(1 << 1)
-#define	TUSB_DEV_CONF_ID_SEL		(1 << 0)
-
-#define TUSB_PHY_OTG_CTRL_ENABLE	(TUSB_SYS_REG_BASE + 0x004)
-#define TUSB_PHY_OTG_CTRL		(TUSB_SYS_REG_BASE + 0x008)
-#define	TUSB_PHY_OTG_CTRL_WRPROTECT	(0xa5 << 24)
-#define	TUSB_PHY_OTG_CTRL_O_ID_PULLUP	(1 << 23)
-#define	TUSB_PHY_OTG_CTRL_O_VBUS_DET_EN	(1 << 19)
-#define	TUSB_PHY_OTG_CTRL_O_SESS_END_EN	(1 << 18)
-#define	TUSB_PHY_OTG_CTRL_TESTM2	(1 << 17)
-#define	TUSB_PHY_OTG_CTRL_TESTM1	(1 << 16)
-#define	TUSB_PHY_OTG_CTRL_TESTM0	(1 << 15)
-#define	TUSB_PHY_OTG_CTRL_TX_DATA2	(1 << 14)
-#define	TUSB_PHY_OTG_CTRL_TX_GZ2	(1 << 13)
-#define	TUSB_PHY_OTG_CTRL_TX_ENABLE2	(1 << 12)
-#define	TUSB_PHY_OTG_CTRL_DM_PULLDOWN	(1 << 11)
-#define	TUSB_PHY_OTG_CTRL_DP_PULLDOWN	(1 << 10)
-#define	TUSB_PHY_OTG_CTRL_OSC_EN	(1 << 9)
-#define	TUSB_PHY_OTG_CTRL_PHYREF_CLK(v)	(((v) & 3) << 7)
-#define	TUSB_PHY_OTG_CTRL_PD		(1 << 6)
-#define	TUSB_PHY_OTG_CTRL_PLL_ON	(1 << 5)
-#define	TUSB_PHY_OTG_CTRL_EXT_RPU	(1 << 4)
-#define	TUSB_PHY_OTG_CTRL_PWR_GOOD	(1 << 3)
-#define	TUSB_PHY_OTG_CTRL_RESET		(1 << 2)
-#define	TUSB_PHY_OTG_CTRL_SUSPENDM	(1 << 1)
-#define	TUSB_PHY_OTG_CTRL_CLK_MODE	(1 << 0)
-
-/* OTG status register */
-#define TUSB_DEV_OTG_STAT		(TUSB_SYS_REG_BASE + 0x00c)
-#define	TUSB_DEV_OTG_STAT_PWR_CLK_GOOD	(1 << 8)
-#define	TUSB_DEV_OTG_STAT_SESS_END	(1 << 7)
-#define	TUSB_DEV_OTG_STAT_SESS_VALID	(1 << 6)
-#define	TUSB_DEV_OTG_STAT_VBUS_VALID	(1 << 5)
-#define	TUSB_DEV_OTG_STAT_VBUS_SENSE	(1 << 4)
-#define	TUSB_DEV_OTG_STAT_ID_STATUS	(1 << 3)
-#define	TUSB_DEV_OTG_STAT_HOST_DISCON	(1 << 2)
-#define	TUSB_DEV_OTG_STAT_LINE_STATE	(3 << 0)
-#define	TUSB_DEV_OTG_STAT_DP_ENABLE	(1 << 1)
-#define	TUSB_DEV_OTG_STAT_DM_ENABLE	(1 << 0)
-
-#define TUSB_DEV_OTG_TIMER		(TUSB_SYS_REG_BASE + 0x010)
-#define TUSB_DEV_OTG_TIMER_ENABLE	(1 << 31)
-#define TUSB_DEV_OTG_TIMER_VAL(v)	((v) & 0x07ffffff)
-#define TUSB_PRCM_REV			(TUSB_SYS_REG_BASE + 0x014)
-
-/* PRCM configuration register */
-#define TUSB_PRCM_CONF			(TUSB_SYS_REG_BASE + 0x018)
-#define	TUSB_PRCM_CONF_SFW_CPEN		(1 << 24)
-#define	TUSB_PRCM_CONF_SYS_CLKSEL(v)	(((v) & 3) << 16)
-
-/* PRCM management register */
-#define TUSB_PRCM_MNGMT			(TUSB_SYS_REG_BASE + 0x01c)
-#define	TUSB_PRCM_MNGMT_SRP_FIX_TMR(v)	(((v) & 0xf) << 25)
-#define	TUSB_PRCM_MNGMT_SRP_FIX_EN	(1 << 24)
-#define	TUSB_PRCM_MNGMT_VBUS_VAL_TMR(v)	(((v) & 0xf) << 20)
-#define	TUSB_PRCM_MNGMT_VBUS_VAL_FLT_EN	(1 << 19)
-#define	TUSB_PRCM_MNGMT_DFT_CLK_DIS	(1 << 18)
-#define	TUSB_PRCM_MNGMT_VLYNQ_CLK_DIS	(1 << 17)
-#define	TUSB_PRCM_MNGMT_OTG_SESS_END_EN	(1 << 10)
-#define	TUSB_PRCM_MNGMT_OTG_VBUS_DET_EN	(1 << 9)
-#define	TUSB_PRCM_MNGMT_OTG_ID_PULLUP	(1 << 8)
-#define	TUSB_PRCM_MNGMT_15_SW_EN	(1 << 4)
-#define	TUSB_PRCM_MNGMT_33_SW_EN	(1 << 3)
-#define	TUSB_PRCM_MNGMT_5V_CPEN		(1 << 2)
-#define	TUSB_PRCM_MNGMT_PM_IDLE		(1 << 1)
-#define	TUSB_PRCM_MNGMT_DEV_IDLE	(1 << 0)
-
-/* Wake-up source clear and mask registers */
-#define TUSB_PRCM_WAKEUP_SOURCE		(TUSB_SYS_REG_BASE + 0x020)
-#define TUSB_PRCM_WAKEUP_CLEAR		(TUSB_SYS_REG_BASE + 0x028)
-#define TUSB_PRCM_WAKEUP_MASK		(TUSB_SYS_REG_BASE + 0x02c)
-#define	TUSB_PRCM_WAKEUP_RESERVED_BITS	(0xffffe << 13)
-#define	TUSB_PRCM_WGPIO_7		(1 << 12)
-#define	TUSB_PRCM_WGPIO_6		(1 << 11)
-#define	TUSB_PRCM_WGPIO_5		(1 << 10)
-#define	TUSB_PRCM_WGPIO_4		(1 << 9)
-#define	TUSB_PRCM_WGPIO_3		(1 << 8)
-#define	TUSB_PRCM_WGPIO_2		(1 << 7)
-#define	TUSB_PRCM_WGPIO_1		(1 << 6)
-#define	TUSB_PRCM_WGPIO_0		(1 << 5)
-#define	TUSB_PRCM_WHOSTDISCON		(1 << 4)	/* Host disconnect */
-#define	TUSB_PRCM_WBUS			(1 << 3)	/* USB bus resume */
-#define	TUSB_PRCM_WNORCS		(1 << 2)	/* NOR chip select */
-#define	TUSB_PRCM_WVBUS			(1 << 1)	/* OTG PHY VBUS */
-#define	TUSB_PRCM_WID			(1 << 0)	/* OTG PHY ID detect */
-
-#define TUSB_PULLUP_1_CTRL		(TUSB_SYS_REG_BASE + 0x030)
-#define TUSB_PULLUP_2_CTRL		(TUSB_SYS_REG_BASE + 0x034)
-#define TUSB_INT_CTRL_REV		(TUSB_SYS_REG_BASE + 0x038)
-#define TUSB_INT_CTRL_CONF		(TUSB_SYS_REG_BASE + 0x03c)
-#define TUSB_USBIP_INT_SRC		(TUSB_SYS_REG_BASE + 0x040)
-#define TUSB_USBIP_INT_SET		(TUSB_SYS_REG_BASE + 0x044)
-#define TUSB_USBIP_INT_CLEAR		(TUSB_SYS_REG_BASE + 0x048)
-#define TUSB_USBIP_INT_MASK		(TUSB_SYS_REG_BASE + 0x04c)
-#define TUSB_DMA_INT_SRC		(TUSB_SYS_REG_BASE + 0x050)
-#define TUSB_DMA_INT_SET		(TUSB_SYS_REG_BASE + 0x054)
-#define TUSB_DMA_INT_CLEAR		(TUSB_SYS_REG_BASE + 0x058)
-#define TUSB_DMA_INT_MASK		(TUSB_SYS_REG_BASE + 0x05c)
-#define TUSB_GPIO_INT_SRC		(TUSB_SYS_REG_BASE + 0x060)
-#define TUSB_GPIO_INT_SET		(TUSB_SYS_REG_BASE + 0x064)
-#define TUSB_GPIO_INT_CLEAR		(TUSB_SYS_REG_BASE + 0x068)
-#define TUSB_GPIO_INT_MASK		(TUSB_SYS_REG_BASE + 0x06c)
-
-/* NOR flash interrupt source registers */
-#define TUSB_INT_SRC			(TUSB_SYS_REG_BASE + 0x070)
-#define TUSB_INT_SRC_SET		(TUSB_SYS_REG_BASE + 0x074)
-#define TUSB_INT_SRC_CLEAR		(TUSB_SYS_REG_BASE + 0x078)
-#define TUSB_INT_MASK			(TUSB_SYS_REG_BASE + 0x07c)
-#define	TUSB_INT_SRC_TXRX_DMA_DONE	(1 << 24)
-#define	TUSB_INT_SRC_USB_IP_CORE	(1 << 17)
-#define	TUSB_INT_SRC_OTG_TIMEOUT	(1 << 16)
-#define	TUSB_INT_SRC_VBUS_SENSE_CHNG	(1 << 15)
-#define	TUSB_INT_SRC_ID_STATUS_CHNG	(1 << 14)
-#define	TUSB_INT_SRC_DEV_WAKEUP		(1 << 13)
-#define	TUSB_INT_SRC_DEV_READY		(1 << 12)
-#define	TUSB_INT_SRC_USB_IP_TX		(1 << 9)
-#define	TUSB_INT_SRC_USB_IP_RX		(1 << 8)
-#define	TUSB_INT_SRC_USB_IP_VBUS_ERR	(1 << 7)
-#define	TUSB_INT_SRC_USB_IP_VBUS_REQ	(1 << 6)
-#define	TUSB_INT_SRC_USB_IP_DISCON	(1 << 5)
-#define	TUSB_INT_SRC_USB_IP_CONN	(1 << 4)
-#define	TUSB_INT_SRC_USB_IP_SOF		(1 << 3)
-#define	TUSB_INT_SRC_USB_IP_RST_BABBLE	(1 << 2)
-#define	TUSB_INT_SRC_USB_IP_RESUME	(1 << 1)
-#define	TUSB_INT_SRC_USB_IP_SUSPEND	(1 << 0)
-
-#define TUSB_GPIO_REV			(TUSB_SYS_REG_BASE + 0x080)
-#define TUSB_GPIO_CONF			(TUSB_SYS_REG_BASE + 0x084)
-#define TUSB_DMA_CTRL_REV		(TUSB_SYS_REG_BASE + 0x100)
-#define TUSB_DMA_REQ_CONF		(TUSB_SYS_REG_BASE + 0x104)
-#define TUSB_EP0_CONF			(TUSB_SYS_REG_BASE + 0x108)
-#define TUSB_EP_IN_SIZE			(TUSB_SYS_REG_BASE + 0x10c)
-#define TUSB_DMA_EP_MAP			(TUSB_SYS_REG_BASE + 0x148)
-#define TUSB_EP_OUT_SIZE		(TUSB_SYS_REG_BASE + 0x14c)
-#define TUSB_EP_MAX_PACKET_SIZE_OFFSET	(TUSB_SYS_REG_BASE + 0x188)
-#define TUSB_SCRATCH_PAD		(TUSB_SYS_REG_BASE + 0x1c4)
-#define TUSB_WAIT_COUNT			(TUSB_SYS_REG_BASE + 0x1c8)
-#define TUSB_PROD_TEST_RESET		(TUSB_SYS_REG_BASE + 0x1d8)
-
-#define TUSB_DIDR1_LO			(TUSB_SYS_REG_BASE + 0x1f8)
-#define TUSB_DIDR1_HI			(TUSB_SYS_REG_BASE + 0x1fc)
-
-/* Device System & Control register bitfields */
-#define TUSB_INT_CTRL_CONF_INT_RLCYC(v)	(((v) & 0x7) << 18)
-#define TUSB_INT_CTRL_CONF_INT_POLARITY	(1 << 17)
-#define TUSB_INT_CTRL_CONF_INT_MODE	(1 << 16)
-#define TUSB_GPIO_CONF_DMAREQ(v)	(((v) & 0x3f) << 24)
-#define TUSB_DMA_REQ_CONF_BURST_SIZE(v)	(((v) & 3) << 26)
-#define TUSB_DMA_REQ_CONF_DMA_RQ_EN(v)	(((v) & 0x3f) << 20)
-#define TUSB_DMA_REQ_CONF_DMA_RQ_ASR(v)	(((v) & 0xf) << 16)
-#define TUSB_EP0_CONFIG_SW_EN		(1 << 8)
-#define TUSB_EP0_CONFIG_DIR_TX		(1 << 7)
-#define TUSB_EP0_CONFIG_XFR_SIZE(v)	((v) & 0x7f)
-#define TUSB_EP_CONFIG_SW_EN		(1 << 31)
-#define TUSB_EP_CONFIG_XFR_SIZE(v)	((v) & 0x7fffffff)
-#define TUSB_PROD_TEST_RESET_VAL	0xa596
-
-static void tusb_intr_update(TUSBState *s)
-{
-    if (s->control_config & TUSB_INT_CTRL_CONF_INT_POLARITY)
-        qemu_set_irq(s->irq, s->intr & ~s->mask & s->intr_ok);
-    else
-        qemu_set_irq(s->irq, (!(s->intr & ~s->mask)) & s->intr_ok);
-}
-
-static void tusb_usbip_intr_update(TUSBState *s)
-{
-    /* TX interrupt in the MUSB */
-    if (s->usbip_intr & 0x0000ffff & ~s->usbip_mask)
-        s->intr |= TUSB_INT_SRC_USB_IP_TX;
-    else
-        s->intr &= ~TUSB_INT_SRC_USB_IP_TX;
-
-    /* RX interrupt in the MUSB */
-    if (s->usbip_intr & 0xffff0000 & ~s->usbip_mask)
-        s->intr |= TUSB_INT_SRC_USB_IP_RX;
-    else
-        s->intr &= ~TUSB_INT_SRC_USB_IP_RX;
-
-    /* XXX: What about TUSB_INT_SRC_USB_IP_CORE?  */
-
-    tusb_intr_update(s);
-}
-
-static void tusb_dma_intr_update(TUSBState *s)
-{
-    if (s->dma_intr & ~s->dma_mask)
-        s->intr |= TUSB_INT_SRC_TXRX_DMA_DONE;
-    else
-        s->intr &= ~TUSB_INT_SRC_TXRX_DMA_DONE;
-
-    tusb_intr_update(s);
-}
-
-static void tusb_gpio_intr_update(TUSBState *s)
-{
-    /* TODO: How is this signalled?  */
-}
-
-static uint32_t tusb_async_readb(void *opaque, hwaddr addr)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    switch (addr & 0xfff) {
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        return musb_read[0](s->musb, addr & 0x1ff);
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        return musb_read[0](s->musb, 0x20 + ((addr >> 3) & 0x3c));
-    }
-
-    printf("%s: unknown register at %03x\n",
-                    __func__, (int) (addr & 0xfff));
-    return 0;
-}
-
-static uint32_t tusb_async_readh(void *opaque, hwaddr addr)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    switch (addr & 0xfff) {
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        return musb_read[1](s->musb, addr & 0x1ff);
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        return musb_read[1](s->musb, 0x20 + ((addr >> 3) & 0x3c));
-    }
-
-    printf("%s: unknown register at %03x\n",
-                    __func__, (int) (addr & 0xfff));
-    return 0;
-}
-
-static uint32_t tusb_async_readw(void *opaque, hwaddr addr)
-{
-    TUSBState *s = (TUSBState *) opaque;
-    int offset = addr & 0xfff;
-    int epnum;
-    uint32_t ret;
-
-    switch (offset) {
-    case TUSB_DEV_CONF:
-        return s->dev_config;
-
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        return musb_read[2](s->musb, offset & 0x1ff);
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        return musb_read[2](s->musb, 0x20 + ((addr >> 3) & 0x3c));
-
-    case TUSB_PHY_OTG_CTRL_ENABLE:
-    case TUSB_PHY_OTG_CTRL:
-        return 0x00;	/* TODO */
-
-    case TUSB_DEV_OTG_STAT:
-        ret = s->otg_status;
-#if 0
-        if (!(s->prcm_mngmt & TUSB_PRCM_MNGMT_OTG_VBUS_DET_EN))
-            ret &= ~TUSB_DEV_OTG_STAT_VBUS_VALID;
-#endif
-        return ret;
-    case TUSB_DEV_OTG_TIMER:
-        return s->otg_timer_val;
-
-    case TUSB_PRCM_REV:
-        return 0x20;
-    case TUSB_PRCM_CONF:
-        return s->prcm_config;
-    case TUSB_PRCM_MNGMT:
-        return s->prcm_mngmt;
-    case TUSB_PRCM_WAKEUP_SOURCE:
-    case TUSB_PRCM_WAKEUP_CLEAR:	/* TODO: What does this one return?  */
-        return 0x00000000;
-    case TUSB_PRCM_WAKEUP_MASK:
-        return s->wkup_mask;
-
-    case TUSB_PULLUP_1_CTRL:
-        return s->pullup[0];
-    case TUSB_PULLUP_2_CTRL:
-        return s->pullup[1];
-
-    case TUSB_INT_CTRL_REV:
-        return 0x20;
-    case TUSB_INT_CTRL_CONF:
-        return s->control_config;
-
-    case TUSB_USBIP_INT_SRC:
-    case TUSB_USBIP_INT_SET:	/* TODO: What do these two return?  */
-    case TUSB_USBIP_INT_CLEAR:
-        return s->usbip_intr;
-    case TUSB_USBIP_INT_MASK:
-        return s->usbip_mask;
-
-    case TUSB_DMA_INT_SRC:
-    case TUSB_DMA_INT_SET:	/* TODO: What do these two return?  */
-    case TUSB_DMA_INT_CLEAR:
-        return s->dma_intr;
-    case TUSB_DMA_INT_MASK:
-        return s->dma_mask;
-
-    case TUSB_GPIO_INT_SRC:	/* TODO: What do these two return?  */
-    case TUSB_GPIO_INT_SET:
-    case TUSB_GPIO_INT_CLEAR:
-        return s->gpio_intr;
-    case TUSB_GPIO_INT_MASK:
-        return s->gpio_mask;
-
-    case TUSB_INT_SRC:
-    case TUSB_INT_SRC_SET:	/* TODO: What do these two return?  */
-    case TUSB_INT_SRC_CLEAR:
-        return s->intr;
-    case TUSB_INT_MASK:
-        return s->mask;
-
-    case TUSB_GPIO_REV:
-        return 0x30;
-    case TUSB_GPIO_CONF:
-        return s->gpio_config;
-
-    case TUSB_DMA_CTRL_REV:
-        return 0x30;
-    case TUSB_DMA_REQ_CONF:
-        return s->dma_config;
-    case TUSB_EP0_CONF:
-        return s->ep0_config;
-    case TUSB_EP_IN_SIZE ... (TUSB_EP_IN_SIZE + 0x3b):
-        epnum = (offset - TUSB_EP_IN_SIZE) >> 2;
-        return s->tx_config[epnum];
-    case TUSB_DMA_EP_MAP:
-        return s->dma_map;
-    case TUSB_EP_OUT_SIZE ... (TUSB_EP_OUT_SIZE + 0x3b):
-        epnum = (offset - TUSB_EP_OUT_SIZE) >> 2;
-        return s->rx_config[epnum];
-    case TUSB_EP_MAX_PACKET_SIZE_OFFSET ...
-            (TUSB_EP_MAX_PACKET_SIZE_OFFSET + 0x3b):
-        return 0x00000000;	/* TODO */
-    case TUSB_WAIT_COUNT:
-        return 0x00;		/* TODO */
-
-    case TUSB_SCRATCH_PAD:
-        return s->scratch;
-
-    case TUSB_PROD_TEST_RESET:
-        return s->test_reset;
-
-    /* DIE IDs */
-    case TUSB_DIDR1_LO:
-        return 0xa9453c59;
-    case TUSB_DIDR1_HI:
-        return 0x54059adf;
-    }
-
-    printf("%s: unknown register at %03x\n", __func__, offset);
-    return 0;
-}
-
-static void tusb_async_writeb(void *opaque, hwaddr addr,
-                uint32_t value)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    switch (addr & 0xfff) {
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        musb_write[0](s->musb, addr & 0x1ff, value);
-        break;
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        musb_write[0](s->musb, 0x20 + ((addr >> 3) & 0x3c), value);
-        break;
-
-    default:
-        printf("%s: unknown register at %03x\n",
-                        __func__, (int) (addr & 0xfff));
-        return;
-    }
-}
-
-static void tusb_async_writeh(void *opaque, hwaddr addr,
-                uint32_t value)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    switch (addr & 0xfff) {
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        musb_write[1](s->musb, addr & 0x1ff, value);
-        break;
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        musb_write[1](s->musb, 0x20 + ((addr >> 3) & 0x3c), value);
-        break;
-
-    default:
-        printf("%s: unknown register at %03x\n",
-                        __func__, (int) (addr & 0xfff));
-        return;
-    }
-}
-
-static void tusb_async_writew(void *opaque, hwaddr addr,
-                uint32_t value)
-{
-    TUSBState *s = (TUSBState *) opaque;
-    int offset = addr & 0xfff;
-    int epnum;
-
-    switch (offset) {
-    case TUSB_VLYNQ_CTRL:
-        break;
-
-    case TUSB_BASE_OFFSET ... (TUSB_BASE_OFFSET | 0x1ff):
-        musb_write[2](s->musb, offset & 0x1ff, value);
-        break;
-
-    case TUSB_FIFO_BASE ... (TUSB_FIFO_BASE | 0x1ff):
-        musb_write[2](s->musb, 0x20 + ((addr >> 3) & 0x3c), value);
-        break;
-
-    case TUSB_DEV_CONF:
-        s->dev_config = value;
-        s->host_mode = (value & TUSB_DEV_CONF_USB_HOST_MODE);
-        if (value & TUSB_DEV_CONF_PROD_TEST_MODE)
-            hw_error("%s: Product Test mode not allowed\n", __func__);
-        break;
-
-    case TUSB_PHY_OTG_CTRL_ENABLE:
-    case TUSB_PHY_OTG_CTRL:
-        return;		/* TODO */
-    case TUSB_DEV_OTG_TIMER:
-        s->otg_timer_val = value;
-        if (value & TUSB_DEV_OTG_TIMER_ENABLE)
-            timer_mod(s->otg_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
-                            muldiv64(TUSB_DEV_OTG_TIMER_VAL(value),
-                                     NANOSECONDS_PER_SECOND, TUSB_DEVCLOCK));
-        else
-            timer_del(s->otg_timer);
-        break;
-
-    case TUSB_PRCM_CONF:
-        s->prcm_config = value;
-        break;
-    case TUSB_PRCM_MNGMT:
-        s->prcm_mngmt = value;
-        break;
-    case TUSB_PRCM_WAKEUP_CLEAR:
-        break;
-    case TUSB_PRCM_WAKEUP_MASK:
-        s->wkup_mask = value;
-        break;
-
-    case TUSB_PULLUP_1_CTRL:
-        s->pullup[0] = value;
-        break;
-    case TUSB_PULLUP_2_CTRL:
-        s->pullup[1] = value;
-        break;
-    case TUSB_INT_CTRL_CONF:
-        s->control_config = value;
-        tusb_intr_update(s);
-        break;
-
-    case TUSB_USBIP_INT_SET:
-        s->usbip_intr |= value;
-        tusb_usbip_intr_update(s);
-        break;
-    case TUSB_USBIP_INT_CLEAR:
-        s->usbip_intr &= ~value;
-        tusb_usbip_intr_update(s);
-        musb_core_intr_clear(s->musb, ~value);
-        break;
-    case TUSB_USBIP_INT_MASK:
-        s->usbip_mask = value;
-        tusb_usbip_intr_update(s);
-        break;
-
-    case TUSB_DMA_INT_SET:
-        s->dma_intr |= value;
-        tusb_dma_intr_update(s);
-        break;
-    case TUSB_DMA_INT_CLEAR:
-        s->dma_intr &= ~value;
-        tusb_dma_intr_update(s);
-        break;
-    case TUSB_DMA_INT_MASK:
-        s->dma_mask = value;
-        tusb_dma_intr_update(s);
-        break;
-
-    case TUSB_GPIO_INT_SET:
-        s->gpio_intr |= value;
-        tusb_gpio_intr_update(s);
-        break;
-    case TUSB_GPIO_INT_CLEAR:
-        s->gpio_intr &= ~value;
-        tusb_gpio_intr_update(s);
-        break;
-    case TUSB_GPIO_INT_MASK:
-        s->gpio_mask = value;
-        tusb_gpio_intr_update(s);
-        break;
-
-    case TUSB_INT_SRC_SET:
-        s->intr |= value;
-        tusb_intr_update(s);
-        break;
-    case TUSB_INT_SRC_CLEAR:
-        s->intr &= ~value;
-        tusb_intr_update(s);
-        break;
-    case TUSB_INT_MASK:
-        s->mask = value;
-        tusb_intr_update(s);
-        break;
-
-    case TUSB_GPIO_CONF:
-        s->gpio_config = value;
-        break;
-    case TUSB_DMA_REQ_CONF:
-        s->dma_config = value;
-        break;
-    case TUSB_EP0_CONF:
-        s->ep0_config = value & 0x1ff;
-        musb_set_size(s->musb, 0, TUSB_EP0_CONFIG_XFR_SIZE(value),
-                        value & TUSB_EP0_CONFIG_DIR_TX);
-        break;
-    case TUSB_EP_IN_SIZE ... (TUSB_EP_IN_SIZE + 0x3b):
-        epnum = (offset - TUSB_EP_IN_SIZE) >> 2;
-        s->tx_config[epnum] = value;
-        musb_set_size(s->musb, epnum + 1, TUSB_EP_CONFIG_XFR_SIZE(value), 1);
-        break;
-    case TUSB_DMA_EP_MAP:
-        s->dma_map = value;
-        break;
-    case TUSB_EP_OUT_SIZE ... (TUSB_EP_OUT_SIZE + 0x3b):
-        epnum = (offset - TUSB_EP_OUT_SIZE) >> 2;
-        s->rx_config[epnum] = value;
-        musb_set_size(s->musb, epnum + 1, TUSB_EP_CONFIG_XFR_SIZE(value), 0);
-        break;
-    case TUSB_EP_MAX_PACKET_SIZE_OFFSET ...
-            (TUSB_EP_MAX_PACKET_SIZE_OFFSET + 0x3b):
-        return;		/* TODO */
-    case TUSB_WAIT_COUNT:
-        return;		/* TODO */
-
-    case TUSB_SCRATCH_PAD:
-        s->scratch = value;
-        break;
-
-    case TUSB_PROD_TEST_RESET:
-        s->test_reset = value;
-        break;
-
-    default:
-        printf("%s: unknown register at %03x\n", __func__, offset);
-        return;
-    }
-}
-
-static uint64_t tusb_async_readfn(void *opaque, hwaddr addr, unsigned size)
-{
-    switch (size) {
-    case 1:
-        return tusb_async_readb(opaque, addr);
-    case 2:
-        return tusb_async_readh(opaque, addr);
-    case 4:
-        return tusb_async_readw(opaque, addr);
-    default:
-        g_assert_not_reached();
-    }
-}
-
-static void tusb_async_writefn(void *opaque, hwaddr addr,
-                               uint64_t value, unsigned size)
-{
-    switch (size) {
-    case 1:
-        tusb_async_writeb(opaque, addr, value);
-        break;
-    case 2:
-        tusb_async_writeh(opaque, addr, value);
-        break;
-    case 4:
-        tusb_async_writew(opaque, addr, value);
-        break;
-    default:
-        g_assert_not_reached();
-    }
-}
-
-static const MemoryRegionOps tusb_async_ops = {
-    .read = tusb_async_readfn,
-    .write = tusb_async_writefn,
-    .valid.min_access_size = 1,
-    .valid.max_access_size = 4,
-    .endianness = DEVICE_NATIVE_ENDIAN,
-};
-
-static void tusb_otg_tick(void *opaque)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    s->otg_timer_val = 0;
-    s->intr |= TUSB_INT_SRC_OTG_TIMEOUT;
-    tusb_intr_update(s);
-}
-
-static void tusb_power_tick(void *opaque)
-{
-    TUSBState *s = (TUSBState *) opaque;
-
-    if (s->power) {
-        s->intr_ok = ~0;
-        tusb_intr_update(s);
-    }
-}
-
-static void tusb_musb_core_intr(void *opaque, int source, int level)
-{
-    TUSBState *s = (TUSBState *) opaque;
-    uint16_t otg_status = s->otg_status;
-
-    switch (source) {
-    case musb_set_vbus:
-        if (level)
-            otg_status |= TUSB_DEV_OTG_STAT_VBUS_VALID;
-        else
-            otg_status &= ~TUSB_DEV_OTG_STAT_VBUS_VALID;
-
-        /* XXX: only if TUSB_PHY_OTG_CTRL_OTG_VBUS_DET_EN set?  */
-        /* XXX: only if TUSB_PRCM_MNGMT_OTG_VBUS_DET_EN set?  */
-        if (s->otg_status != otg_status) {
-            s->otg_status = otg_status;
-            s->intr |= TUSB_INT_SRC_VBUS_SENSE_CHNG;
-            tusb_intr_update(s);
-        }
-        break;
-
-    case musb_set_session:
-        /* XXX: only if TUSB_PHY_OTG_CTRL_OTG_SESS_END_EN set?  */
-        /* XXX: only if TUSB_PRCM_MNGMT_OTG_SESS_END_EN set?  */
-        if (level) {
-            s->otg_status |= TUSB_DEV_OTG_STAT_SESS_VALID;
-            s->otg_status &= ~TUSB_DEV_OTG_STAT_SESS_END;
-        } else {
-            s->otg_status &= ~TUSB_DEV_OTG_STAT_SESS_VALID;
-            s->otg_status |= TUSB_DEV_OTG_STAT_SESS_END;
-        }
-
-        /* XXX: some IRQ or anything?  */
-        break;
-
-    case musb_irq_tx:
-    case musb_irq_rx:
-        s->usbip_intr = musb_core_intr_get(s->musb);
-        /* Fall through.  */
-    default:
-        if (level)
-            s->intr |= 1 << source;
-        else
-            s->intr &= ~(1 << source);
-        tusb_intr_update(s);
-        break;
-    }
-}
-
-static void tusb6010_power(TUSBState *s, int on)
-{
-    if (!on) {
-        s->power = 0;
-    } else if (!s->power && on) {
-        s->power = 1;
-        /* Pull the interrupt down after TUSB6010 comes up.  */
-        s->intr_ok = 0;
-        tusb_intr_update(s);
-        timer_mod(s->pwr_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
-                  NANOSECONDS_PER_SECOND / 2);
-    }
-}
-
-static void tusb6010_irq(void *opaque, int source, int level)
-{
-    if (source) {
-        tusb_musb_core_intr(opaque, source - 1, level);
-    } else {
-        tusb6010_power(opaque, level);
-    }
-}
-
-static void tusb6010_reset(DeviceState *dev)
-{
-    TUSBState *s = TUSB6010(dev);
-    int i;
-
-    s->test_reset = TUSB_PROD_TEST_RESET_VAL;
-    s->host_mode = 0;
-    s->dev_config = 0;
-    s->otg_status = 0;	/* !TUSB_DEV_OTG_STAT_ID_STATUS means host mode */
-    s->power = 0;
-    s->mask = 0xffffffff;
-    s->intr = 0x00000000;
-    s->otg_timer_val = 0;
-    s->scratch = 0;
-    s->prcm_config = 0;
-    s->prcm_mngmt = 0;
-    s->intr_ok = 0;
-    s->usbip_intr = 0;
-    s->usbip_mask = 0;
-    s->gpio_intr = 0;
-    s->gpio_mask = 0;
-    s->gpio_config = 0;
-    s->dma_intr = 0;
-    s->dma_mask = 0;
-    s->dma_map = 0;
-    s->dma_config = 0;
-    s->ep0_config = 0;
-    s->wkup_mask = 0;
-    s->pullup[0] = s->pullup[1] = 0;
-    s->control_config = 0;
-    for (i = 0; i < 15; i++) {
-        s->rx_config[i] = s->tx_config[i] = 0;
-    }
-    musb_reset(s->musb);
-}
-
-static void tusb6010_realize(DeviceState *dev, Error **errp)
-{
-    TUSBState *s = TUSB6010(dev);
-    SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
-
-    s->otg_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, tusb_otg_tick, s);
-    s->pwr_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, tusb_power_tick, s);
-    memory_region_init_io(&s->iomem[1], OBJECT(s), &tusb_async_ops, s,
-                          "tusb-async", UINT32_MAX);
-    sysbus_init_mmio(sbd, &s->iomem[0]);
-    sysbus_init_mmio(sbd, &s->iomem[1]);
-    sysbus_init_irq(sbd, &s->irq);
-    qdev_init_gpio_in(dev, tusb6010_irq, musb_irq_max + 1);
-    s->musb = musb_init(dev, 1);
-}
-
-static void tusb6010_class_init(ObjectClass *klass, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(klass);
-
-    dc->realize = tusb6010_realize;
-    dc->reset = tusb6010_reset;
-}
-
-static const TypeInfo tusb6010_info = {
-    .name          = TYPE_TUSB6010,
-    .parent        = TYPE_SYS_BUS_DEVICE,
-    .instance_size = sizeof(TUSBState),
-    .class_init    = tusb6010_class_init,
-};
-
-static void tusb6010_register_types(void)
-{
-    type_register_static(&tusb6010_info);
-}
-
-type_init(tusb6010_register_types)
hw/usb/Kconfig +0 -4
index 84bc7fbe36c..0bffcda1b19 100644
@@ -61,10 +61,6 @@ config USB_DWC2
     bool
     select USB
 
-config TUSB6010
-    bool
-    select USB_MUSB
-
 config USB_HUB
     bool
     default y
hw/usb/meson.build +0 -1
index d7de1003e3d..ae901481597 100644
@@ -27,7 +27,6 @@ system_ss.add(when: 'CONFIG_USB_MUSB', if_true: files('hcd-musb.c'))
 system_ss.add(when: 'CONFIG_USB_DWC2', if_true: files('hcd-dwc2.c'))
 system_ss.add(when: 'CONFIG_USB_DWC3', if_true: files('hcd-dwc3.c'))
 
-system_ss.add(when: 'CONFIG_TUSB6010', if_true: files('tusb6010.c'))
 system_ss.add(when: 'CONFIG_IMX', if_true: files('chipidea.c'))
 system_ss.add(when: 'CONFIG_IMX_USBPHY', if_true: files('imx-usb-phy.c'))
 system_ss.add(when: 'CONFIG_VT82C686', if_true: files('vt82c686-uhci-pci.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 33/53
#60 lore raw

Re: [PATCH for-9.2 33/53] hw/usb: Remove tusb6010 USB controller

Quoted 10 lines · Peter Maydell

The tusb6010 was only used by the n800/n810 machines, so it can be removed now.

---
  hw/usb/tusb6010.c  | 850 ---------------------------------------------
  hw/usb/Kconfig     |   4 -
  hw/usb/meson.build |   1 -
  3 files changed, 855 deletions(-)

delete mode 100644 hw/usb/tusb6010.c

#61 lore raw

PATCH 34/53 hw/usb: Remove MUSB USB host controller

In reply to Peter Maydell

Remove the MUSB USB2.0 OTG-compliant USB host controller device model. This was only used by the tusb6010 USB controller in the n800/n810 machines.

---
 include/hw/usb/hcd-musb.h |   49 --
 hw/usb/hcd-musb.c         | 1553 -------------------------------------
 hw/usb/Kconfig            |    4 -
 hw/usb/meson.build        |    1 -
 4 files changed, 1607 deletions(-)
 delete mode 100644 include/hw/usb/hcd-musb.h
 delete mode 100644 hw/usb/hcd-musb.c
include/hw/usb/hcd-musb.h deleted +0 -49
deleted file mode 100644
index 4d4b1ec0fc2..00000000000
@@ -1,49 +0,0 @@
-/*
- * "Inventra" High-speed Dual-Role Controller (MUSB-HDRC), Mentor Graphics,
- * USB2.0 OTG compliant core used in various chips.
- *
- * Only host-mode and non-DMA accesses are currently supported.
- *
- * Copyright (C) 2008 Nokia Corporation
- * Written by Andrzej Zaborowski <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- */
-
-#ifndef HW_USB_HCD_MUSB_H
-#define HW_USB_HCD_MUSB_H
-
-#include "exec/hwaddr.h"
-
-enum musb_irq_source_e {
-    musb_irq_suspend = 0,
-    musb_irq_resume,
-    musb_irq_rst_babble,
-    musb_irq_sof,
-    musb_irq_connect,
-    musb_irq_disconnect,
-    musb_irq_vbus_request,
-    musb_irq_vbus_error,
-    musb_irq_rx,
-    musb_irq_tx,
-    musb_set_vbus,
-    musb_set_session,
-    /* Add new interrupts here */
-    musb_irq_max /* total number of interrupts defined */
-};
-
-/* TODO convert hcd-musb to QOM/qdev and remove MUSBReadFunc/MUSBWriteFunc */
-typedef void MUSBWriteFunc(void *opaque, hwaddr addr, uint32_t value);
-typedef uint32_t MUSBReadFunc(void *opaque, hwaddr addr);
-extern MUSBReadFunc * const musb_read[];
-extern MUSBWriteFunc * const musb_write[];
-
-typedef struct MUSBState MUSBState;
-
-MUSBState *musb_init(DeviceState *parent_device, int gpio_base);
-void musb_reset(MUSBState *s);
-uint32_t musb_core_intr_get(MUSBState *s);
-void musb_core_intr_clear(MUSBState *s, uint32_t mask);
-void musb_set_size(MUSBState *s, int epnum, int size, int is_tx);
-
-#endif
hw/usb/hcd-musb.c deleted +0 -1553

1,553 lines not on this page · raw message

hw/usb/Kconfig +0 -4
index 0bffcda1b19..5fbecd2f43b 100644
@@ -53,10 +53,6 @@ config USB_XHCI_SYSBUS
     bool
     select USB_XHCI
 
-config USB_MUSB
-    bool
-    select USB
-
 config USB_DWC2
     bool
     select USB
hw/usb/meson.build +0 -1
index ae901481597..1b4d1507e41 100644
@@ -23,7 +23,6 @@ system_ss.add(when: 'CONFIG_USB_XHCI', if_true: files('hcd-xhci.c'))
 system_ss.add(when: 'CONFIG_USB_XHCI_PCI', if_true: files('hcd-xhci-pci.c'))
 system_ss.add(when: 'CONFIG_USB_XHCI_SYSBUS', if_true: files('hcd-xhci-sysbus.c'))
 system_ss.add(when: 'CONFIG_USB_XHCI_NEC', if_true: files('hcd-xhci-nec.c'))
-system_ss.add(when: 'CONFIG_USB_MUSB', if_true: files('hcd-musb.c'))
 system_ss.add(when: 'CONFIG_USB_DWC2', if_true: files('hcd-dwc2.c'))
 system_ss.add(when: 'CONFIG_USB_DWC3', if_true: files('hcd-dwc3.c'))
 
Signature · 1 line
2.34.1
Reviewed-by on v1 34/53
#62 lore raw

Re: [PATCH for-9.2 34/53] hw/usb: Remove MUSB USB host controller

Quoted 5 lines · Peter Maydell

Remove the MUSB USB2.0 OTG-compliant USB host controller device model. This was only used by the tusb6010 USB controller in the n800/n810 machines.

Quoted 8 lines
---
  include/hw/usb/hcd-musb.h |   49 --
  hw/usb/hcd-musb.c         | 1553 -------------------------------------
  hw/usb/Kconfig            |    4 -
  hw/usb/meson.build        |    1 -
  4 files changed, 1607 deletions(-)

delete mode 100644 include/hw/usb/hcd-musb.h
delete mode 100644 hw/usb/hcd-musb.c

#63 lore raw

PATCH 35/53 hw: Remove PCMCIA subsystem

In reply to Peter Maydell

The only PCMCIA subsystem was the PXA2xx SoC and the machines using it, which have now been removed. Although in theory we have a few machine types which have PCMCIA (e.g. kzm, the strongarm machines, sh4's sh7750), none of those machines implement their PCMCIA controller, and they're all old and no longer very interesting machine types.

Rather than keeping all the PCMCIA code in-tree without any active users of it, delete it. If we need PCMCIA in future we can always resurrect it.

---
 include/hw/pcmcia.h   | 63 -------------------------------------------
 hw/pcmcia/pcmcia.c    | 24 -----------------
 hw/Kconfig            |  1 -
 hw/meson.build        |  1 -
 hw/pcmcia/Kconfig     |  2 --
 hw/pcmcia/meson.build |  1 -
 6 files changed, 92 deletions(-)
 delete mode 100644 include/hw/pcmcia.h
 delete mode 100644 hw/pcmcia/pcmcia.c
 delete mode 100644 hw/pcmcia/Kconfig
 delete mode 100644 hw/pcmcia/meson.build
include/hw/pcmcia.h deleted +0 -63
deleted file mode 100644
index 6c08ad616a5..00000000000
@@ -1,63 +0,0 @@
-#ifndef HW_PCMCIA_H
-#define HW_PCMCIA_H
-
-/* PCMCIA/Cardbus */
-
-#include "hw/qdev-core.h"
-#include "qom/object.h"
-
-typedef struct PCMCIASocket {
-    qemu_irq irq;
-    bool attached;
-} PCMCIASocket;
-
-#define TYPE_PCMCIA_CARD "pcmcia-card"
-OBJECT_DECLARE_TYPE(PCMCIACardState, PCMCIACardClass, PCMCIA_CARD)
-
-struct PCMCIACardState {
-    /*< private >*/
-    DeviceState parent_obj;
-    /*< public >*/
-
-    PCMCIASocket *slot;
-};
-
-struct PCMCIACardClass {
-    /*< private >*/
-    DeviceClass parent_class;
-    /*< public >*/
-
-    int (*attach)(PCMCIACardState *state);
-    int (*detach)(PCMCIACardState *state);
-
-    const uint8_t *cis;
-    int cis_len;
-
-    /* Only valid if attached */
-    uint8_t (*attr_read)(PCMCIACardState *card, uint32_t address);
-    void (*attr_write)(PCMCIACardState *card, uint32_t address, uint8_t value);
-    uint16_t (*common_read)(PCMCIACardState *card, uint32_t address);
-    void (*common_write)(PCMCIACardState *card,
-                         uint32_t address, uint16_t value);
-    uint16_t (*io_read)(PCMCIACardState *card, uint32_t address);
-    void (*io_write)(PCMCIACardState *card, uint32_t address, uint16_t value);
-};
-
-#define CISTPL_DEVICE         0x01  /* 5V Device Information Tuple */
-#define CISTPL_NO_LINK        0x14  /* No Link Tuple */
-#define CISTPL_VERS_1         0x15  /* Level 1 Version Tuple */
-#define CISTPL_JEDEC_C        0x18  /* JEDEC ID Tuple */
-#define CISTPL_JEDEC_A        0x19  /* JEDEC ID Tuple */
-#define CISTPL_CONFIG         0x1a  /* Configuration Tuple */
-#define CISTPL_CFTABLE_ENTRY  0x1b  /* 16-bit PCCard Configuration */
-#define CISTPL_DEVICE_OC      0x1c  /* Additional Device Information */
-#define CISTPL_DEVICE_OA      0x1d  /* Additional Device Information */
-#define CISTPL_DEVICE_GEO     0x1e  /* Additional Device Information */
-#define CISTPL_DEVICE_GEO_A   0x1f  /* Additional Device Information */
-#define CISTPL_MANFID         0x20  /* Manufacture ID Tuple */
-#define CISTPL_FUNCID         0x21  /* Function ID Tuple */
-#define CISTPL_FUNCE          0x22  /* Function Extension Tuple */
-#define CISTPL_END            0xff  /* Tuple End */
-#define CISTPL_ENDMARK        0xff
-
-#endif
hw/pcmcia/pcmcia.c deleted +0 -24
deleted file mode 100644
index 03d13e7d670..00000000000
@@ -1,24 +0,0 @@
-/*
- * PCMCIA emulation
- *
- * Copyright 2013 SUSE LINUX Products GmbH
- */
-
-#include "qemu/osdep.h"
-#include "qemu/module.h"
-#include "hw/pcmcia.h"
-
-static const TypeInfo pcmcia_card_type_info = {
-    .name = TYPE_PCMCIA_CARD,
-    .parent = TYPE_DEVICE,
-    .instance_size = sizeof(PCMCIACardState),
-    .abstract = true,
-    .class_size = sizeof(PCMCIACardClass),
-};
-
-static void pcmcia_register_types(void)
-{
-    type_register_static(&pcmcia_card_type_info);
-}
-
-type_init(pcmcia_register_types)
hw/Kconfig +0 -1
index f7866e76f73..72aea9b8b73 100644
@@ -27,7 +27,6 @@ source nvme/Kconfig
 source nvram/Kconfig
 source pci-bridge/Kconfig
 source pci-host/Kconfig
-source pcmcia/Kconfig
 source pci/Kconfig
 source remote/Kconfig
 source rtc/Kconfig
hw/meson.build +0 -1
index 1c6308fe957..b871cdca75c 100644
@@ -27,7 +27,6 @@ subdir('nvram')
 subdir('pci')
 subdir('pci-bridge')
 subdir('pci-host')
-subdir('pcmcia')
 subdir('rtc')
 subdir('scsi')
 subdir('sd')
hw/pcmcia/Kconfig deleted +0 -2
deleted file mode 100644
index 41f2df91366..00000000000
@@ -1,2 +0,0 @@
-config PCMCIA
-    bool
hw/pcmcia/meson.build deleted +0 -1
deleted file mode 100644
index edcb7f5d263..00000000000
@@ -1 +0,0 @@
-system_ss.add(when: 'CONFIG_PCMCIA', if_true: files('pcmcia.c'))
Signature · 1 line
2.34.1
Reviewed-by on v1 35/53
#64 lore raw

Re: [PATCH for-9.2 35/53] hw: Remove PCMCIA subsystem

Quoted 20 lines · Peter Maydell

The only PCMCIA subsystem was the PXA2xx SoC and the machines using it, which have now been removed. Although in theory we have a few machine types which have PCMCIA (e.g. kzm, the strongarm machines, sh4's sh7750), none of those machines implement their PCMCIA controller, and they're all old and no longer very interesting machine types.

Rather than keeping all the PCMCIA code in-tree without any active users of it, delete it. If we need PCMCIA in future we can always resurrect it.

---
  include/hw/pcmcia.h   | 63 -------------------------------------------
  hw/pcmcia/pcmcia.c    | 24 -----------------
  hw/Kconfig            |  1 -
  hw/meson.build        |  1 -
  hw/pcmcia/Kconfig     |  2 --
  hw/pcmcia/meson.build |  1 -
  6 files changed, 92 deletions(-)
Quoted 4 lines

delete mode 100644 include/hw/pcmcia.h
delete mode 100644 hw/pcmcia/pcmcia.c
delete mode 100644 hw/pcmcia/Kconfig
delete mode 100644 hw/pcmcia/meson.build

#65 lore raw

PATCH 36/53 docs: Document removal of old Arm boards

In reply to Peter Maydell

Now we have removed all the board types that it covers, we can move the text about old Arm boards from deprecated.rst to removed-features.rst, tweaking it appropriately.

---
 docs/about/deprecated.rst       | 15 ---------------
 docs/about/removed-features.rst | 15 +++++++++++++++
 2 files changed, 15 insertions(+), 15 deletions(-)
docs/about/deprecated.rst +0 -15
index 88f0f037865..bb04daa52b3 100644
@@ -246,21 +246,6 @@ to correct issues, mostly regarding migration compatibility. These are
 no longer maintained and removing them will make the code easier to
 read and maintain. Use versions 3.0 and above as a replacement.
 
-Arm machines ``akita``, ``borzoi``, ``cheetah``, ``connex``, ``mainstone``, ``n800``, ``n810``, ``spitz``, ``terrier``, ``tosa``, ``verdex``, ``z2`` (since 9.0)
-''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
-
-QEMU includes models of some machine types where the QEMU code that
-emulates their SoCs is very old and unmaintained. This code is now
-blocking our ability to move forward with various changes across
-the codebase, and over many years nobody has been interested in
-trying to modernise it. We don't expect any of these machines to have
-a large number of users, because they're all modelling hardware that
-has now passed away into history. We are therefore dropping support
-for all machine types using the PXA2xx and OMAP2 SoCs. We are also
-dropping the ``cheetah`` OMAP1 board, because we don't have any
-test images for it and don't know of anybody who does; the ``sx1``
-and ``sx1-v1`` OMAP1 machines remain supported for now.
-
 PPC 405 ``ref405ep`` machine (since 9.1)
 ''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +15 -0
index fc7b28e6373..815d63f5941 100644
@@ -978,6 +978,21 @@ Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1)
 
 The Nios II architecture was orphan.
 
+Arm machines ``akita``, ``borzoi``, ``cheetah``, ``connex``, ``mainstone``, ``n800``, ``n810``, ``spitz``, ``terrier``, ``tosa``, ``verdex``, ``z2`` (removed in 9.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+QEMU included models of some machine types where the QEMU code that
+emulates their SoCs was very old and unmaintained. This code was
+blocking our ability to move forward with various changes across
+the codebase, and over many years nobody has been interested in
+trying to modernise it. We don't expect any of these machines to have
+a large number of users, because they're all modelling hardware that
+has now passed away into history. We are therefore dropping support
+for all machine types using the PXA2xx and OMAP2 SoCs. We are also
+dropping the ``cheetah`` OMAP1 board, because we don't have any
+test images for it and don't know of anybody who does; the ``sx1``
+and ``sx1-v1`` OMAP1 machines remain supported for now.
+
 linux-user mode CPUs
 --------------------
 
Signature · 1 line
2.34.1
Reviewed-by on v1 36/53
#66 lore raw

Re: [PATCH for-9.2 36/53] docs: Document removal of old Arm boards

Quoted 17 lines · Peter Maydell

Now we have removed all the board types that it covers, we can move the text about old Arm boards from deprecated.rst to removed-features.rst, tweaking it appropriately.

---
  docs/about/deprecated.rst       | 15 ---------------
  docs/about/removed-features.rst | 15 +++++++++++++++
  2 files changed, 15 insertions(+), 15 deletions(-)
docs/about/removed-features.rst +0 -0
index fc7b28e6373..815d63f5941 100644
@@ -978,6 +978,21 @@ Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1)
 

docs/about/removed-features.rst Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1) · line 988

Quoted 10 lines
docs/about/removed-features.rst +8 -0
  The Nios II architecture was orphan.
 
+Arm machines ``akita``, ``borzoi``, ``cheetah``, ``connex``, ``mainstone``, ``n800``, ``n810``, ``spitz``, ``terrier``, ``tosa``, ``verdex``, ``z2`` (removed in 9.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+QEMU included models of some machine types where the QEMU code that
+emulates their SoCs was very old and unmaintained. This code was
+blocking our ability to move forward with various changes across
+the codebase, and over many years nobody has been interested in
+trying to modernise it. We don't expect any of these machines to have

Note, sx1 also contains "code blocking our ability to move forward with various changes across the codebase".

docs/about/removed-features.rst Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1) · line 994

Quoted 6 lines
docs/about/removed-features.rst +6 -0
+a large number of users, because they're all modelling hardware that
+has now passed away into history. We are therefore dropping support
+for all machine types using the PXA2xx and OMAP2 SoCs. We are also
+dropping the ``cheetah`` OMAP1 board, because we don't have any
+test images for it and don't know of anybody who does; the ``sx1``
+and ``sx1-v1`` OMAP1 machines remain supported for now.

I'd remove the "the ``sx1`` and ``sx1-v1`` OMAP1 machines remain supported for now." part which doesn't seem so relevant in the removed-features.rst file.

Otherwise,

#67 lore raw

PATCH 37/53 hw/arm: Remove omap2.c

In reply to Peter Maydell

The users of the OMAP2 SoC emulation have been removed, so we can delete omap2.c.

---
 include/hw/arm/omap.h |    8 -
 hw/arm/omap2.c        | 2715 -----------------------------------------
 hw/arm/meson.build    |    1 -
 3 files changed, 2724 deletions(-)
 delete mode 100644 hw/arm/omap2.c
include/hw/arm/omap.h +0 -8
index 0ca7c9604e7..e3f50b4ab13 100644
@@ -972,26 +972,18 @@ struct omap_mpu_state_s {
     struct omap_gp_timer_s *gptimer[12];
     struct omap_synctimer_s *synctimer;
 
-    struct omap_prcm_s *prcm;
     struct omap_sdrc_s *sdrc;
     struct omap_gpmc_s *gpmc;
-    struct omap_sysctl_s *sysc;
 
     struct omap_mcspi_s *mcspi[2];
 
     struct omap_dss_s *dss;
-
-    struct omap_eac_s *eac;
 };
 
 /* omap1.c */
 struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *sdram,
                 const char *core);
 
-/* omap2.c */
-struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sdram,
-                const char *core);
-
 uint32_t omap_badwidth_read8(void *opaque, hwaddr addr);
 void omap_badwidth_write8(void *opaque, hwaddr addr,
                 uint32_t value);
hw/arm/omap2.c deleted +0 -2715

2,715 lines not on this page · raw message

hw/arm/meson.build +0 -1
index dc00d91d731..0e08155b8d7 100644
@@ -62,7 +62,6 @@ system_ss.add(when: 'CONFIG_ARM_SMMUV3', if_true: files('smmu-common.c'))
 system_ss.add(when: 'CONFIG_COLLIE', if_true: files('collie.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4_boards.c'))
 system_ss.add(when: 'CONFIG_NETDUINO2', if_true: files('netduino2.c'))
-system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap2.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2838_peripherals.c'))
 system_ss.add(when: 'CONFIG_STRONGARM', if_true: files('strongarm.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 37/53
#68 lore raw

Re: [PATCH for-9.2 37/53] hw/arm: Remove omap2.c

Quoted 10 lines · Peter Maydell

The users of the OMAP2 SoC emulation have been removed, so we can delete omap2.c.

---
  include/hw/arm/omap.h |    8 -
  hw/arm/omap2.c        | 2715 -----------------------------------------
  hw/arm/meson.build    |    1 -
  3 files changed, 2724 deletions(-)

delete mode 100644 hw/arm/omap2.c

Yay!

#69 lore raw

PATCH 38/53 hw/gpio: Remove TYPE_OMAP2_GPIO

In reply to Peter Maydell

We've removed the OMAP2 SoC, so we can remove the OMAP2 GPIO device. (The source file remains, as it also has the model of the OMAP1 GPIO device.)

---
 include/hw/arm/omap.h |   8 -
 hw/gpio/omap_gpio.c   | 557 ------------------------------------------
 2 files changed, 565 deletions(-)
include/hw/arm/omap.h +0 -8
index e3f50b4ab13..b569580b09e 100644
@@ -105,17 +105,9 @@ typedef struct Omap1GpioState Omap1GpioState;
 DECLARE_INSTANCE_CHECKER(Omap1GpioState, OMAP1_GPIO,
                          TYPE_OMAP1_GPIO)
 
-#define TYPE_OMAP2_GPIO "omap2-gpio"
-typedef struct Omap2GpioState Omap2GpioState;
-DECLARE_INSTANCE_CHECKER(Omap2GpioState, OMAP2_GPIO,
-                         TYPE_OMAP2_GPIO)
-
 /* TODO: clock framework (see above) */
 void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk);
 
-void omap2_gpio_set_iclk(Omap2GpioState *gpio, omap_clk clk);
-void omap2_gpio_set_fclk(Omap2GpioState *gpio, uint8_t i, omap_clk clk);
-
 /* OMAP2 l4 Interconnect */
 struct omap_l4_s;
 struct omap_l4_region_s {
hw/gpio/omap_gpio.c +0 -557

584 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 38/53
#70 lore raw

Re: [PATCH for-9.2 38/53] hw/gpio: Remove TYPE_OMAP2_GPIO

Quoted 9 lines · Peter Maydell

We've removed the OMAP2 SoC, so we can remove the OMAP2 GPIO device. (The source file remains, as it also has the model of the OMAP1 GPIO device.)

---
  include/hw/arm/omap.h |   8 -
  hw/gpio/omap_gpio.c   | 557 ------------------------------------------
  2 files changed, 565 deletions(-)
#71 lore raw

PATCH 39/53 hw/char: Remove omap2_uart

In reply to Peter Maydell

Remove the OMAP2 specific code from omap_uart.c.

---
 include/hw/arm/omap.h |   5 --
 hw/char/omap_uart.c   | 113 ------------------------------------------
 2 files changed, 118 deletions(-)
include/hw/arm/omap.h +0 -5
index b569580b09e..67bb83dff5d 100644
@@ -709,11 +709,6 @@ struct omap_uart_s *omap_uart_init(hwaddr base,
                 qemu_irq irq, omap_clk fclk, omap_clk iclk,
                 qemu_irq txdma, qemu_irq rxdma,
                 const char *label, Chardev *chr);
-struct omap_uart_s *omap2_uart_init(MemoryRegion *sysmem,
-                struct omap_target_agent_s *ta,
-                qemu_irq irq, omap_clk fclk, omap_clk iclk,
-                qemu_irq txdma, qemu_irq rxdma,
-                const char *label, Chardev *chr);
 void omap_uart_reset(struct omap_uart_s *s);
 
 struct omap_mpuio_s;
hw/char/omap_uart.c +0 -113

128 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 39/53
#72 lore raw

Re: [PATCH for-9.2 39/53] hw/char: Remove omap2_uart

Quoted 7 lines · Peter Maydell

Remove the OMAP2 specific code from omap_uart.c.

---
  include/hw/arm/omap.h |   5 --
  hw/char/omap_uart.c   | 113 ------------------------------------------
  2 files changed, 118 deletions(-)
#73 lore raw

PATCH 40/53 hw/intc: Remove omap2-intc device

In reply to Peter Maydell

Remove the OMAP2 specific code from omap_intc.c.

---
 hw/intc/omap_intc.c | 276 --------------------------------------------
 1 file changed, 276 deletions(-)
hw/intc/omap_intc.c +0 -276
index 435c47600fc..c14b22d3819 100644
@@ -50,8 +50,6 @@ struct OMAPIntcState {
     int level_only;
     uint32_t size;
 
-    uint8_t revision;
-
     /* state */
     uint32_t new_agr[2];
     int sir_intr[2];
@@ -133,26 +131,6 @@ static void omap_set_intr(void *opaque, int irq, int req)
     }
 }
 
-/* Simplified version with no edge detection */
-static void omap_set_intr_noedge(void *opaque, int irq, int req)
-{
-    OMAPIntcState *ih = opaque;
-    uint32_t rise;
-
-    struct omap_intr_handler_bank_s *bank = &ih->bank[irq >> 5];
-    int n = irq & 31;
-
-    if (req) {
-        rise = ~bank->inputs & (1 << n);
-        if (rise) {
-            bank->irqs |= bank->inputs |= rise;
-            omap_inth_update(ih, 0);
-            omap_inth_update(ih, 1);
-        }
-    } else
-        bank->irqs = (bank->inputs &= ~(1 << n)) | bank->swi;
-}
-
 static uint64_t omap_inth_read(void *opaque, hwaddr addr,
                                unsigned size)
 {
@@ -420,259 +398,6 @@ static const TypeInfo omap_intc_info = {
     .class_init    = omap_intc_class_init,
 };
 
-static uint64_t omap2_inth_read(void *opaque, hwaddr addr,
-                                unsigned size)
-{
-    OMAPIntcState *s = opaque;
-    int offset = addr;
-    int bank_no, line_no;
-    struct omap_intr_handler_bank_s *bank = NULL;
-
-    if ((offset & 0xf80) == 0x80) {
-        bank_no = (offset & 0x60) >> 5;
-        if (bank_no < s->nbanks) {
-            offset &= ~0x60;
-            bank = &s->bank[bank_no];
-        } else {
-            OMAP_BAD_REG(addr);
-            return 0;
-        }
-    }
-
-    switch (offset) {
-    case 0x00:	/* INTC_REVISION */
-        return s->revision;
-
-    case 0x10:	/* INTC_SYSCONFIG */
-        return (s->autoidle >> 2) & 1;
-
-    case 0x14:	/* INTC_SYSSTATUS */
-        return 1;						/* RESETDONE */
-
-    case 0x40:	/* INTC_SIR_IRQ */
-        return s->sir_intr[0];
-
-    case 0x44:	/* INTC_SIR_FIQ */
-        return s->sir_intr[1];
-
-    case 0x48:	/* INTC_CONTROL */
-        return (!s->mask) << 2;					/* GLOBALMASK */
-
-    case 0x4c:	/* INTC_PROTECTION */
-        return 0;
-
-    case 0x50:	/* INTC_IDLE */
-        return s->autoidle & 3;
-
-    /* Per-bank registers */
-    case 0x80:	/* INTC_ITR */
-        return bank->inputs;
-
-    case 0x84:	/* INTC_MIR */
-        return bank->mask;
-
-    case 0x88:	/* INTC_MIR_CLEAR */
-    case 0x8c:	/* INTC_MIR_SET */
-        return 0;
-
-    case 0x90:	/* INTC_ISR_SET */
-        return bank->swi;
-
-    case 0x94:	/* INTC_ISR_CLEAR */
-        return 0;
-
-    case 0x98:	/* INTC_PENDING_IRQ */
-        return bank->irqs & ~bank->mask & ~bank->fiq;
-
-    case 0x9c:	/* INTC_PENDING_FIQ */
-        return bank->irqs & ~bank->mask & bank->fiq;
-
-    /* Per-line registers */
-    case 0x100 ... 0x300:	/* INTC_ILR */
-        bank_no = (offset - 0x100) >> 7;
-        if (bank_no > s->nbanks)
-            break;
-        bank = &s->bank[bank_no];
-        line_no = (offset & 0x7f) >> 2;
-        return (bank->priority[line_no] << 2) |
-                ((bank->fiq >> line_no) & 1);
-    }
-    OMAP_BAD_REG(addr);
-    return 0;
-}
-
-static void omap2_inth_write(void *opaque, hwaddr addr,
-                             uint64_t value, unsigned size)
-{
-    OMAPIntcState *s = opaque;
-    int offset = addr;
-    int bank_no, line_no;
-    struct omap_intr_handler_bank_s *bank = NULL;
-
-    if ((offset & 0xf80) == 0x80) {
-        bank_no = (offset & 0x60) >> 5;
-        if (bank_no < s->nbanks) {
-            offset &= ~0x60;
-            bank = &s->bank[bank_no];
-        } else {
-            OMAP_BAD_REG(addr);
-            return;
-        }
-    }
-
-    switch (offset) {
-    case 0x10:	/* INTC_SYSCONFIG */
-        s->autoidle &= 4;
-        s->autoidle |= (value & 1) << 2;
-        if (value & 2) {                                        /* SOFTRESET */
-            omap_inth_reset(DEVICE(s));
-        }
-        return;
-
-    case 0x48:	/* INTC_CONTROL */
-        s->mask = (value & 4) ? 0 : ~0;				/* GLOBALMASK */
-        if (value & 2) {					/* NEWFIQAGR */
-            qemu_set_irq(s->parent_intr[1], 0);
-            s->new_agr[1] = ~0;
-            omap_inth_update(s, 1);
-        }
-        if (value & 1) {					/* NEWIRQAGR */
-            qemu_set_irq(s->parent_intr[0], 0);
-            s->new_agr[0] = ~0;
-            omap_inth_update(s, 0);
-        }
-        return;
-
-    case 0x4c:	/* INTC_PROTECTION */
-        /* TODO: Make a bitmap (or sizeof(char)map) of access privileges
-         * for every register, see Chapter 3 and 4 for privileged mode.  */
-        if (value & 1)
-            fprintf(stderr, "%s: protection mode enable attempt\n",
-                            __func__);
-        return;
-
-    case 0x50:	/* INTC_IDLE */
-        s->autoidle &= ~3;
-        s->autoidle |= value & 3;
-        return;
-
-    /* Per-bank registers */
-    case 0x84:	/* INTC_MIR */
-        bank->mask = value;
-        omap_inth_update(s, 0);
-        omap_inth_update(s, 1);
-        return;
-
-    case 0x88:	/* INTC_MIR_CLEAR */
-        bank->mask &= ~value;
-        omap_inth_update(s, 0);
-        omap_inth_update(s, 1);
-        return;
-
-    case 0x8c:	/* INTC_MIR_SET */
-        bank->mask |= value;
-        return;
-
-    case 0x90:	/* INTC_ISR_SET */
-        bank->irqs |= bank->swi |= value;
-        omap_inth_update(s, 0);
-        omap_inth_update(s, 1);
-        return;
-
-    case 0x94:	/* INTC_ISR_CLEAR */
-        bank->swi &= ~value;
-        bank->irqs = bank->swi & bank->inputs;
-        return;
-
-    /* Per-line registers */
-    case 0x100 ... 0x300:	/* INTC_ILR */
-        bank_no = (offset - 0x100) >> 7;
-        if (bank_no > s->nbanks)
-            break;
-        bank = &s->bank[bank_no];
-        line_no = (offset & 0x7f) >> 2;
-        bank->priority[line_no] = (value >> 2) & 0x3f;
-        bank->fiq &= ~(1 << line_no);
-        bank->fiq |= (value & 1) << line_no;
-        return;
-
-    case 0x00:	/* INTC_REVISION */
-    case 0x14:	/* INTC_SYSSTATUS */
-    case 0x40:	/* INTC_SIR_IRQ */
-    case 0x44:	/* INTC_SIR_FIQ */
-    case 0x80:	/* INTC_ITR */
-    case 0x98:	/* INTC_PENDING_IRQ */
-    case 0x9c:	/* INTC_PENDING_FIQ */
-        OMAP_RO_REG(addr);
-        return;
-    }
-    OMAP_BAD_REG(addr);
-}
-
-static const MemoryRegionOps omap2_inth_mem_ops = {
-    .read = omap2_inth_read,
-    .write = omap2_inth_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
-    .valid = {
-        .min_access_size = 4,
-        .max_access_size = 4,
-    },
-};
-
-static void omap2_intc_init(Object *obj)
-{
-    DeviceState *dev = DEVICE(obj);
-    OMAPIntcState *s = OMAP_INTC(obj);
-    SysBusDevice *sbd = SYS_BUS_DEVICE(obj);
-
-    s->level_only = 1;
-    s->nbanks = 3;
-    sysbus_init_irq(sbd, &s->parent_intr[0]);
-    sysbus_init_irq(sbd, &s->parent_intr[1]);
-    qdev_init_gpio_in(dev, omap_set_intr_noedge, s->nbanks * 32);
-    memory_region_init_io(&s->mmio, obj, &omap2_inth_mem_ops, s,
-                          "omap2-intc", 0x1000);
-    sysbus_init_mmio(sbd, &s->mmio);
-}
-
-static void omap2_intc_realize(DeviceState *dev, Error **errp)
-{
-    OMAPIntcState *s = OMAP_INTC(dev);
-
-    if (!s->iclk) {
-        error_setg(errp, "omap2-intc: iclk not connected");
-        return;
-    }
-    if (!s->fclk) {
-        error_setg(errp, "omap2-intc: fclk not connected");
-        return;
-    }
-}
-
-static Property omap2_intc_properties[] = {
-    DEFINE_PROP_UINT8("revision", OMAPIntcState,
-    revision, 0x21),
-    DEFINE_PROP_END_OF_LIST(),
-};
-
-static void omap2_intc_class_init(ObjectClass *klass, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(klass);
-
-    dc->reset = omap_inth_reset;
-    device_class_set_props(dc, omap2_intc_properties);
-    /* Reason: pointer property "iclk", "fclk" */
-    dc->user_creatable = false;
-    dc->realize = omap2_intc_realize;
-}
-
-static const TypeInfo omap2_intc_info = {
-    .name          = "omap2-intc",
-    .parent        = TYPE_OMAP_INTC,
-    .instance_init = omap2_intc_init,
-    .class_init    = omap2_intc_class_init,
-};
-
 static const TypeInfo omap_intc_type_info = {
     .name          = TYPE_OMAP_INTC,
     .parent        = TYPE_SYS_BUS_DEVICE,
@@ -684,7 +409,6 @@ static void omap_intc_register_types(void)
 {
     type_register_static(&omap_intc_type_info);
     type_register_static(&omap_intc_info);
-    type_register_static(&omap2_intc_info);
 }
 
 type_init(omap_intc_register_types)
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 40/53
#74 lore raw

Re: [PATCH for-9.2 40/53] hw/intc: Remove omap2-intc device

Quoted 19 lines · Peter Maydell

Remove the OMAP2 specific code from omap_intc.c.

---
  hw/intc/omap_intc.c | 276 --------------------------------------------
  1 file changed, 276 deletions(-)
(quoted diff) +0 -7
-static const TypeInfo omap2_intc_info = {
-    .name          = "omap2-intc",
-    .parent        = TYPE_OMAP_INTC,
-    .instance_init = omap2_intc_init,
-    .class_init    = omap2_intc_class_init,
-};
-
  static const TypeInfo omap_intc_type_info = {
      .name          = TYPE_OMAP_INTC,
      .parent        = TYPE_SYS_BUS_DEVICE,

Review static void omap_intc_register_types(void) · line 414

Quoted 7 lines
(quoted diff) +0 -1
@@ -684,7 +409,6 @@ static void omap_intc_register_types(void)
  {
      type_register_static(&omap_intc_type_info);
      type_register_static(&omap_intc_info);
-    type_register_static(&omap2_intc_info);
  }
 
  type_init(omap_intc_register_types)

I'd squash in the same commit the abstract parent removal:

-- >8 --

include/hw/arm/omap.h +1 -1
index 67bb83dff5..43a1a9ebe7 100644
@@ -68,7 +68,7 @@ int64_t omap_clk_getrate(omap_clk clk);
 void omap_clk_reparent(omap_clk clk, omap_clk parent);
 
 /* omap_intc.c */
-#define TYPE_OMAP_INTC "common-omap-intc"
+#define TYPE_OMAP_INTC "omap-intc"
 typedef struct OMAPIntcState OMAPIntcState;
 DECLARE_INSTANCE_CHECKER(OMAPIntcState, OMAP_INTC, TYPE_OMAP_INTC)
 
hw/intc/omap_intc.c +3 -10
index c14b22d381..f4f5f8455b 100644
@@ -392,22 +392,15 @@ static void omap_intc_class_init(ObjectClass *klass, void *data)
 }
 
 static const TypeInfo omap_intc_info = {
-    .name          = "omap-intc",
-    .parent        = TYPE_OMAP_INTC,
+    .name          = TYPE_OMAP_INTC,
+    .parent        = TYPE_SYS_BUS_DEVICE,
+    .instance_size = sizeof(OMAPIntcState),
     .instance_init = omap_intc_init,
     .class_init    = omap_intc_class_init,
 };
 
-static const TypeInfo omap_intc_type_info = {
-    .name          = TYPE_OMAP_INTC,
-    .parent        = TYPE_SYS_BUS_DEVICE,
-    .instance_size = sizeof(OMAPIntcState),
-    .abstract      = true,
-};
-
 static void omap_intc_register_types(void)
 {
-    type_register_static(&omap_intc_type_info);
     type_register_static(&omap_intc_info);
 }
 

---

But this can be done on top, so:

#75 lore raw

PATCH 41/53 hw/sd: Remove omap2_mmc device

In reply to Peter Maydell

Remove the OMAP2 specific code from omap_mmc.c.

---
 include/hw/arm/omap.h |  5 ----
 hw/sd/omap_mmc.c      | 63 -------------------------------------------
 2 files changed, 68 deletions(-)
include/hw/arm/omap.h +0 -5
index 67bb83dff5d..b0bd1e6f540 100644
@@ -797,12 +797,7 @@ struct omap_mmc_s *omap_mmc_init(hwaddr base,
                 MemoryRegion *sysmem,
                 BlockBackend *blk,
                 qemu_irq irq, qemu_irq dma[], omap_clk clk);
-struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta,
-                BlockBackend *blk, qemu_irq irq, qemu_irq dma[],
-                omap_clk fclk, omap_clk iclk);
 void omap_mmc_reset(struct omap_mmc_s *s);
-void omap_mmc_handlers(struct omap_mmc_s *s, qemu_irq ro, qemu_irq cover);
-void omap_mmc_enable(struct omap_mmc_s *s, int enable);
 
 /* omap_i2c.c */
 I2CBus *omap_i2c_bus(DeviceState *omap_i2c);
hw/sd/omap_mmc.c +0 -63

72 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 41/53
#76 lore raw

Re: [PATCH for-9.2 41/53] hw/sd: Remove omap2_mmc device

Quoted 43 lines · Peter Maydell

Remove the OMAP2 specific code from omap_mmc.c.

---
  include/hw/arm/omap.h |  5 ----
  hw/sd/omap_mmc.c      | 63 -------------------------------------------
  2 files changed, 68 deletions(-)
hw/sd/omap_mmc.c +0 -34
-struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta,
-                BlockBackend *blk, qemu_irq irq, qemu_irq dma[],
-                omap_clk fclk, omap_clk iclk)
-{
-    struct omap_mmc_s *s = g_new0(struct omap_mmc_s, 1);
-
-    s->irq = irq;
-    s->dma = dma;
-    s->clk = fclk;
-    s->lines = 4;
-    s->rev = 2;
-
-    memory_region_init_io(&s->iomem, NULL, &omap_mmc_ops, s, "omap.mmc",
-                          omap_l4_region_size(ta, 0));
-    omap_l4_attach(ta, 0, &s->iomem);
-
-    /* Instantiate the storage */
-    s->card = sd_init(blk, false);
-    if (s->card == NULL) {
-        exit(1);
-    }
-
-    s->cdet = qemu_allocate_irq(omap_mmc_cover_cb, s, 0);
-    sd_set_cb(s->card, NULL, s->cdet);
-
-    omap_mmc_reset(s);
-
-    return s;
-}
-
-void omap_mmc_handlers(struct omap_mmc_s *s, qemu_irq ro, qemu_irq cover)
-{
-    if (s->cdet) {
-        sd_set_cb(s->card, ro, s->cdet);

hw/sd/omap_mmc.c struct omap_mmc_s *omap_mmc_init(hwaddr base, · line 664

Quoted 10 lines
hw/sd/omap_mmc.c +0 -10
-        s->coverswitch = cover;
-        qemu_set_irq(cover, s->cdet_state);
-    } else
-        sd_set_cb(s->card, ro, cover);
-}
-
-void omap_mmc_enable(struct omap_mmc_s *s, int enable)
-{
-    sd_enable(s->card, enable);
-}

Yeah, few less legacy users \o/

#77 lore raw

PATCH 42/53 hw/misc: Remove omap_sdrc device

In reply to Peter Maydell

The omap_sdrc device is only in OMAP2, which we are removing.

---
 include/hw/arm/omap.h |   7 --
 hw/misc/omap_sdrc.c   | 167 ------------------------------------------
 hw/misc/meson.build   |   1 -
 3 files changed, 175 deletions(-)
 delete mode 100644 hw/misc/omap_sdrc.c
include/hw/arm/omap.h +0 -7
index b0bd1e6f540..dcd338c7c49 100644
@@ -147,12 +147,6 @@ hwaddr omap_l4_region_base(struct omap_target_agent_s *ta,
 hwaddr omap_l4_region_size(struct omap_target_agent_s *ta,
                                        int region);
 
-/* OMAP2 SDRAM controller */
-struct omap_sdrc_s;
-struct omap_sdrc_s *omap_sdrc_init(MemoryRegion *sysmem,
-                                   hwaddr base);
-void omap_sdrc_reset(struct omap_sdrc_s *s);
-
 /* OMAP2 general purpose memory controller */
 struct omap_gpmc_s;
 struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
@@ -954,7 +948,6 @@ struct omap_mpu_state_s {
     struct omap_gp_timer_s *gptimer[12];
     struct omap_synctimer_s *synctimer;
 
-    struct omap_sdrc_s *sdrc;
     struct omap_gpmc_s *gpmc;
 
     struct omap_mcspi_s *mcspi[2];
hw/misc/omap_sdrc.c deleted +0 -167

167 lines not on this page · raw message

hw/misc/meson.build +0 -1
index 01b77ca200f..7c9addbe68f 100644
@@ -77,7 +77,6 @@ system_ss.add(when: 'CONFIG_OMAP', if_true: files(
   'omap_clk.c',
   'omap_gpmc.c',
   'omap_l4.c',
-  'omap_sdrc.c',
   'omap_tap.c',
 ))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files(
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 42/53
#78 lore raw

Re: [PATCH for-9.2 42/53] hw/misc: Remove omap_sdrc device

Quoted 9 lines · Peter Maydell

The omap_sdrc device is only in OMAP2, which we are removing.

---
  include/hw/arm/omap.h |   7 --
  hw/misc/omap_sdrc.c   | 167 ------------------------------------------
  hw/misc/meson.build   |   1 -
  3 files changed, 175 deletions(-)

delete mode 100644 hw/misc/omap_sdrc.c

#79 lore raw

PATCH 43/53 hw/misc: Remove omap_gpmc

In reply to Peter Maydell

The omap_gpmc device is only in OMAP2, which we are removing.

---
 include/hw/arm/omap.h |  11 -
 hw/misc/omap_gpmc.c   | 898 ------------------------------------------
 hw/misc/meson.build   |   1 -
 3 files changed, 910 deletions(-)
 delete mode 100644 hw/misc/omap_gpmc.c
include/hw/arm/omap.h +0 -11
index dcd338c7c49..0cbbf2fecb5 100644
@@ -147,15 +147,6 @@ hwaddr omap_l4_region_base(struct omap_target_agent_s *ta,
 hwaddr omap_l4_region_size(struct omap_target_agent_s *ta,
                                        int region);
 
-/* OMAP2 general purpose memory controller */
-struct omap_gpmc_s;
-struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
-                                   hwaddr base,
-                                   qemu_irq irq, qemu_irq drq);
-void omap_gpmc_reset(struct omap_gpmc_s *s);
-void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem);
-void omap_gpmc_attach_nand(struct omap_gpmc_s *s, int cs, DeviceState *nand);
-
 /*
  * Common IRQ numbers for level 1 interrupt handler
  * See /usr/include/asm-arm/arch-omap/irqs.h in Linux.
@@ -948,8 +939,6 @@ struct omap_mpu_state_s {
     struct omap_gp_timer_s *gptimer[12];
     struct omap_synctimer_s *synctimer;
 
-    struct omap_gpmc_s *gpmc;
-
     struct omap_mcspi_s *mcspi[2];
 
     struct omap_dss_s *dss;
hw/misc/omap_gpmc.c deleted +0 -898

898 lines not on this page · raw message

hw/misc/meson.build +0 -1
index 7c9addbe68f..122084b1694 100644
@@ -75,7 +75,6 @@ system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
 ))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files(
   'omap_clk.c',
-  'omap_gpmc.c',
   'omap_l4.c',
   'omap_tap.c',
 ))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 43/53
#80 lore raw

Re: [PATCH for-9.2 43/53] hw/misc: Remove omap_gpmc

Quoted 9 lines · Peter Maydell

The omap_gpmc device is only in OMAP2, which we are removing.

---
  include/hw/arm/omap.h |  11 -
  hw/misc/omap_gpmc.c   | 898 ------------------------------------------
  hw/misc/meson.build   |   1 -
  3 files changed, 910 deletions(-)

delete mode 100644 hw/misc/omap_gpmc.c

#81 lore raw

PATCH 44/53 hw/timer: Remove omap_gptimer

In reply to Peter Maydell

The omap_gptimer device is only in the OMAP2 SoC, which we are removing.

---
 include/hw/arm/omap.h   |   8 -
 hw/timer/omap_gptimer.c | 512 ----------------------------------------
 hw/timer/meson.build    |   1 -
 3 files changed, 521 deletions(-)
 delete mode 100644 hw/timer/omap_gptimer.c
include/hw/arm/omap.h +0 -8
index 0cbbf2fecb5..cced3d28605 100644
@@ -676,13 +676,6 @@ struct omap_dma_lcd_channel_s {
 # define OMAP24XX_DMA_MS		63	/* Not in OMAP2420 */
 # define OMAP24XX_DMA_EXT_DMAREQ5	64
 
-/* omap[123].c */
-/* OMAP2 gp timer */
-struct omap_gp_timer_s;
-struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta,
-                qemu_irq irq, omap_clk fclk, omap_clk iclk);
-void omap_gp_timer_reset(struct omap_gp_timer_s *s);
-
 /* OMAP2 sysctimer */
 struct omap_synctimer_s;
 struct omap_synctimer_s *omap_synctimer_init(struct omap_target_agent_s *ta,
@@ -936,7 +929,6 @@ struct omap_mpu_state_s {
     /* OMAP2-only peripherals */
     struct omap_l4_s *l4;
 
-    struct omap_gp_timer_s *gptimer[12];
     struct omap_synctimer_s *synctimer;
 
     struct omap_mcspi_s *mcspi[2];
hw/timer/omap_gptimer.c deleted +0 -512

512 lines not on this page · raw message

hw/timer/meson.build +0 -1
index 3a78636ab45..1292d9530ca 100644
@@ -22,7 +22,6 @@ system_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c'))
 system_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c'))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_timer.c'))
 system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_timer.c'))
-system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_gptimer.c'))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_synctimer.c'))
 system_ss.add(when: 'CONFIG_PXA2XX_TIMER', if_true: files('pxa2xx_timer.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_systmr.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 44/53
#82 lore raw

Re: [PATCH for-9.2 44/53] hw/timer: Remove omap_gptimer

Quoted 10 lines · Peter Maydell

The omap_gptimer device is only in the OMAP2 SoC, which we are removing.

---
  include/hw/arm/omap.h   |   8 -
  hw/timer/omap_gptimer.c | 512 ----------------------------------------
  hw/timer/meson.build    |   1 -
  3 files changed, 521 deletions(-)

delete mode 100644 hw/timer/omap_gptimer.c

#83 lore raw

PATCH 45/53 hw/timer: Remove omap_synctimer

In reply to Peter Maydell

Remove the omap_synctimer device, which is only in the OMAP2 SoC.

---
 include/hw/arm/omap.h     |   8 ---
 hw/timer/omap_synctimer.c | 110 --------------------------------------
 hw/timer/meson.build      |   1 -
 3 files changed, 119 deletions(-)
 delete mode 100644 hw/timer/omap_synctimer.c
include/hw/arm/omap.h +0 -8
index cced3d28605..982341d0079 100644
@@ -676,12 +676,6 @@ struct omap_dma_lcd_channel_s {
 # define OMAP24XX_DMA_MS		63	/* Not in OMAP2420 */
 # define OMAP24XX_DMA_EXT_DMAREQ5	64
 
-/* OMAP2 sysctimer */
-struct omap_synctimer_s;
-struct omap_synctimer_s *omap_synctimer_init(struct omap_target_agent_s *ta,
-                struct omap_mpu_state_s *mpu, omap_clk fclk, omap_clk iclk);
-void omap_synctimer_reset(struct omap_synctimer_s *s);
-
 struct omap_uart_s;
 struct omap_uart_s *omap_uart_init(hwaddr base,
                 qemu_irq irq, omap_clk fclk, omap_clk iclk,
@@ -929,8 +923,6 @@ struct omap_mpu_state_s {
     /* OMAP2-only peripherals */
     struct omap_l4_s *l4;
 
-    struct omap_synctimer_s *synctimer;
-
     struct omap_mcspi_s *mcspi[2];
 
     struct omap_dss_s *dss;
hw/timer/omap_synctimer.c deleted +0 -110

110 lines not on this page · raw message

hw/timer/meson.build +0 -1
index 1292d9530ca..fe131666b17 100644
@@ -22,7 +22,6 @@ system_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c'))
 system_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c'))
 system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_timer.c'))
 system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_timer.c'))
-system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_synctimer.c'))
 system_ss.add(when: 'CONFIG_PXA2XX_TIMER', if_true: files('pxa2xx_timer.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_systmr.c'))
 system_ss.add(when: 'CONFIG_SH_TIMER', if_true: files('sh_timer.c'))
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 45/53
#84 lore raw

Re: [PATCH for-9.2 45/53] hw/timer: Remove omap_synctimer

Quoted 9 lines · Peter Maydell

Remove the omap_synctimer device, which is only in the OMAP2 SoC.

---
  include/hw/arm/omap.h     |   8 ---
  hw/timer/omap_synctimer.c | 110 --------------------------------------
  hw/timer/meson.build      |   1 -
  3 files changed, 119 deletions(-)

delete mode 100644 hw/timer/omap_synctimer.c

#85 lore raw

PATCH 46/53 hw/block: Remove ecc

In reply to Peter Maydell

The ecc.c code was used only by the PXA2xx and OMAP2 SoC devices, which we have removed, so it is now completely unused.

Note that hw/misc/eccmemctl.c does not in fact use any of the code frome ecc.c, so that KConfig dependency was incorrect.

---
 include/hw/block/flash.h | 11 -----
 hw/block/ecc.c           | 91 ----------------------------------------
 hw/arm/Kconfig           |  1 -
 hw/block/Kconfig         |  3 --
 hw/block/meson.build     |  1 -
 hw/misc/Kconfig          |  1 -
 6 files changed, 108 deletions(-)
 delete mode 100644 hw/block/ecc.c
include/hw/block/flash.h +0 -11
index b985c825a01..5fd67f5bb79 100644
@@ -62,17 +62,6 @@ uint32_t nand_getbuswidth(DeviceState *dev);
 #define NAND_MFR_HYNIX      0xad
 #define NAND_MFR_MICRON     0x2c
 
-/* ecc.c */
-typedef struct {
-    uint8_t cp;     /* Column parity */
-    uint16_t lp[2]; /* Line parity */
-    uint16_t count;
-} ECCState;
-
-uint8_t ecc_digest(ECCState *s, uint8_t sample);
-void ecc_reset(ECCState *s);
-extern const VMStateDescription vmstate_ecc_state;
-
 /* m25p80.c */
 
 #define TYPE_M25P80 "m25p80-generic"
hw/block/ecc.c deleted +0 -91

91 lines not on this page · raw message

hw/arm/Kconfig +0 -1
index a70ceff504b..7b19a9559f6 100644
@@ -146,7 +146,6 @@ config OMAP
     bool
     select FRAMEBUFFER
     select I2C
-    select ECC
     select NAND
     select PFLASH_CFI01
     select SD
hw/block/Kconfig +0 -3
index 002d255dced..741390742c2 100644
@@ -22,9 +22,6 @@ config PFLASH_CFI01
 config PFLASH_CFI02
     bool
 
-config ECC
-    bool
-
 config TC58128
     bool
 
hw/block/meson.build +0 -1
index 74c8eb9e735..3735065631a 100644
@@ -3,7 +3,6 @@ system_ss.add(files(
   'cdrom.c',
   'hd-geometry.c'
 ))
-system_ss.add(when: 'CONFIG_ECC', if_true: files('ecc.c'))
 system_ss.add(when: 'CONFIG_FDC', if_true: files('fdc.c'))
 system_ss.add(when: 'CONFIG_FDC_ISA', if_true: files('fdc-isa.c'))
 system_ss.add(when: 'CONFIG_FDC_SYSBUS', if_true: files('fdc-sysbus.c'))
hw/misc/Kconfig +0 -1
index 1e08785b832..8568aaa2293 100644
@@ -74,7 +74,6 @@ config IVSHMEM_DEVICE
 
 config ECCMEMCTL
     bool
-    select ECC
 
 config IMX
     bool
Signature · 1 line
2.34.1
#86 lore raw

PATCH 47/53 hw/ssi: Remove omap_mcspi

In reply to Peter Maydell

The omap_mcspi device is used only in the OMAP2 SoC, which we are removing.

---
 include/hw/arm/omap.h |  11 --
 hw/ssi/omap_spi.c     | 380 ------------------------------------------
 hw/ssi/meson.build    |   1 -
 3 files changed, 392 deletions(-)
 delete mode 100644 hw/ssi/omap_spi.c
include/hw/arm/omap.h +0 -11
index 982341d0079..118874d8775 100644
@@ -698,15 +698,6 @@ struct omap_uwire_s;
 void omap_uwire_attach(struct omap_uwire_s *s,
                 uWireSlave *slave, int chipselect);
 
-/* OMAP2 spi */
-struct omap_mcspi_s;
-struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum,
-                qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk);
-void omap_mcspi_attach(struct omap_mcspi_s *s,
-                uint32_t (*txrx)(void *opaque, uint32_t, int), void *opaque,
-                int chipselect);
-void omap_mcspi_reset(struct omap_mcspi_s *s);
-
 struct I2SCodec {
     void *opaque;
 
@@ -923,8 +914,6 @@ struct omap_mpu_state_s {
     /* OMAP2-only peripherals */
     struct omap_l4_s *l4;
 
-    struct omap_mcspi_s *mcspi[2];
-
     struct omap_dss_s *dss;
 };
 
hw/ssi/omap_spi.c deleted +0 -380

380 lines not on this page · raw message

hw/ssi/meson.build +0 -1
index b7ad7fca3b3..23cd425ab00 100644
@@ -9,7 +9,6 @@ system_ss.add(when: 'CONFIG_XILINX_SPI', if_true: files('xilinx_spi.c'))
 system_ss.add(when: 'CONFIG_XILINX_SPIPS', if_true: files('xilinx_spips.c'))
 system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-ospi.c'))
 system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_spi.c'))
-system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_spi.c'))
 system_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_spi_host.c'))
 system_ss.add(when: 'CONFIG_BCM2835_SPI', if_true: files('bcm2835_spi.c'))
 system_ss.add(when: 'CONFIG_PNV_SPI', if_true: files('pnv_spi.c'))
Signature · 1 line
2.34.1
#87 lore raw

PATCH 48/53 hw/misc: Remove omap_tap device

In reply to Peter Maydell

The omap_tap device is OMAP2 only, and we are removing it.

---
 include/hw/arm/omap.h |   3 --
 hw/misc/omap_tap.c    | 117 ------------------------------------------
 hw/misc/meson.build   |   1 -
 3 files changed, 121 deletions(-)
 delete mode 100644 hw/misc/omap_tap.c
include/hw/arm/omap.h +0 -3
index 118874d8775..82721b46fa0 100644
@@ -725,9 +725,6 @@ struct I2SCodec {
 struct omap_mcbsp_s;
 void omap_mcbsp_i2s_attach(struct omap_mcbsp_s *s, I2SCodec *slave);
 
-void omap_tap_init(struct omap_target_agent_s *ta,
-                struct omap_mpu_state_s *mpu);
-
 /* omap_lcdc.c */
 struct omap_lcd_panel_s;
 void omap_lcdc_reset(struct omap_lcd_panel_s *s);
hw/misc/omap_tap.c deleted +0 -117

117 lines not on this page · raw message

hw/misc/meson.build +0 -1
index 122084b1694..b7e97e47cf9 100644
@@ -76,7 +76,6 @@ system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
 system_ss.add(when: 'CONFIG_OMAP', if_true: files(
   'omap_clk.c',
   'omap_l4.c',
-  'omap_tap.c',
 ))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files(
   'bcm2835_mbox.c',
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 48/53
#88 lore raw

Re: [PATCH for-9.2 48/53] hw/misc: Remove omap_tap device

Quoted 9 lines · Peter Maydell

The omap_tap device is OMAP2 only, and we are removing it.

---
  include/hw/arm/omap.h |   3 --
  hw/misc/omap_tap.c    | 117 ------------------------------------------
  hw/misc/meson.build   |   1 -
  3 files changed, 121 deletions(-)

delete mode 100644 hw/misc/omap_tap.c

#89 lore raw

PATCH 49/53 hw/display: Remove omap_dss

In reply to Peter Maydell

The omap_dss device is OMAP2 only, and we are removing it.

---
 include/hw/arm/omap.h  |   19 -
 hw/display/omap_dss.c  | 1093 ----------------------------------------
 hw/display/meson.build |    1 -
 3 files changed, 1113 deletions(-)
 delete mode 100644 hw/display/omap_dss.c
include/hw/arm/omap.h +0 -19
index 82721b46fa0..2300b97716d 100644
@@ -734,23 +734,6 @@ struct omap_lcd_panel_s *omap_lcdc_init(MemoryRegion *sysmem,
                                         struct omap_dma_lcd_channel_s *dma,
                                         omap_clk clk);
 
-/* omap_dss.c */
-struct rfbi_chip_s {
-    void *opaque;
-    void (*write)(void *opaque, int dc, uint16_t value);
-    void (*block)(void *opaque, int dc, void *buf, size_t len, int pitch);
-    uint16_t (*read)(void *opaque, int dc);
-};
-struct omap_dss_s;
-void omap_dss_reset(struct omap_dss_s *s);
-struct omap_dss_s *omap_dss_init(struct omap_target_agent_s *ta,
-                MemoryRegion *sysmem,
-                hwaddr l3_base,
-                qemu_irq irq, qemu_irq drq,
-                omap_clk fck1, omap_clk fck2, omap_clk ck54m,
-                omap_clk ick1, omap_clk ick2);
-void omap_rfbi_attach(struct omap_dss_s *s, int cs, struct rfbi_chip_s *chip);
-
 /* omap_mmc.c */
 struct omap_mmc_s;
 struct omap_mmc_s *omap_mmc_init(hwaddr base,
@@ -910,8 +893,6 @@ struct omap_mpu_state_s {
 
     /* OMAP2-only peripherals */
     struct omap_l4_s *l4;
-
-    struct omap_dss_s *dss;
 };
 
 /* omap1.c */
hw/display/omap_dss.c deleted +0 -1093

1,093 lines not on this page · raw message

hw/display/meson.build +0 -1
index 2b1693ad728..20a94973fa2 100644
@@ -25,7 +25,6 @@ system_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c'))
 system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c'))
 system_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c'))
 
-system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dss.c'))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_fb.c'))
 system_ss.add(when: 'CONFIG_SM501', if_true: files('sm501.c'))
 system_ss.add(when: 'CONFIG_TCX', if_true: files('tcx.c'))
Signature · 1 line
2.34.1
#90 lore raw

PATCH 50/53 hw/misc: Remove omap_l4 device

In reply to Peter Maydell

The omap_l4 device is OMAP2 only, so we can remove it.

---
 include/hw/arm/omap.h |  42 -----------
 hw/misc/omap_l4.c     | 162 ------------------------------------------
 hw/misc/meson.build   |   1 -
 3 files changed, 205 deletions(-)
 delete mode 100644 hw/misc/omap_l4.c
include/hw/arm/omap.h +0 -42
index 2300b97716d..f82b820d4d8 100644
@@ -108,45 +108,6 @@ DECLARE_INSTANCE_CHECKER(Omap1GpioState, OMAP1_GPIO,
 /* TODO: clock framework (see above) */
 void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk);
 
-/* OMAP2 l4 Interconnect */
-struct omap_l4_s;
-struct omap_l4_region_s {
-    hwaddr offset;
-    size_t size;
-    int access;
-};
-struct omap_l4_agent_info_s {
-    int ta;
-    int region;
-    int regions;
-    int ta_region;
-};
-struct omap_target_agent_s {
-    MemoryRegion iomem;
-    struct omap_l4_s *bus;
-    int regions;
-    const struct omap_l4_region_s *start;
-    hwaddr base;
-    uint32_t component;
-    uint32_t control;
-    uint32_t status;
-};
-struct omap_l4_s *omap_l4_init(MemoryRegion *address_space,
-                               hwaddr base, int ta_num);
-
-struct omap_target_agent_s;
-struct omap_target_agent_s *omap_l4ta_get(
-    struct omap_l4_s *bus,
-    const struct omap_l4_region_s *regions,
-    const struct omap_l4_agent_info_s *agents,
-    int cs);
-hwaddr omap_l4_attach(struct omap_target_agent_s *ta,
-                                         int region, MemoryRegion *mr);
-hwaddr omap_l4_region_base(struct omap_target_agent_s *ta,
-                                       int region);
-hwaddr omap_l4_region_size(struct omap_target_agent_s *ta,
-                                       int region);
-
 /*
  * Common IRQ numbers for level 1 interrupt handler
  * See /usr/include/asm-arm/arch-omap/irqs.h in Linux.
@@ -890,9 +851,6 @@ struct omap_mpu_state_s {
         uint16_t dsp_idlect2;
         uint16_t dsp_rstct2;
     } clkm;
-
-    /* OMAP2-only peripherals */
-    struct omap_l4_s *l4;
 };
 
 /* omap1.c */
hw/misc/omap_l4.c deleted +0 -162

162 lines not on this page · raw message

hw/misc/meson.build +0 -1
index b7e97e47cf9..a2951951b59 100644
@@ -75,7 +75,6 @@ system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
 ))
 system_ss.add(when: 'CONFIG_OMAP', if_true: files(
   'omap_clk.c',
-  'omap_l4.c',
 ))
 system_ss.add(when: 'CONFIG_RASPI', if_true: files(
   'bcm2835_mbox.c',
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 50/53
#91 lore raw

Re: [PATCH for-9.2 50/53] hw/misc: Remove omap_l4 device

Quoted 9 lines · Peter Maydell

The omap_l4 device is OMAP2 only, so we can remove it.

---
  include/hw/arm/omap.h |  42 -----------
  hw/misc/omap_l4.c     | 162 ------------------------------------------
  hw/misc/meson.build   |   1 -
  3 files changed, 205 deletions(-)

delete mode 100644 hw/misc/omap_l4.c

#92 lore raw

PATCH 51/53 hw/misc/omap_clk: Remove OMAP2-specifics

In reply to Peter Maydell

Remove the handling for all non-OMAP1 SoCs.

---
 hw/misc/omap_clk.c | 527 +--------------------------------------------
 1 file changed, 2 insertions(+), 525 deletions(-)
hw/misc/omap_clk.c +2 -525
index c77ca2fc74e..0157c9be759 100644
@@ -35,9 +35,6 @@ struct clk {
 #define CLOCK_IN_OMAP730	(1 << 11)
 #define CLOCK_IN_OMAP1510	(1 << 12)
 #define CLOCK_IN_OMAP16XX	(1 << 13)
-#define CLOCK_IN_OMAP242X	(1 << 14)
-#define CLOCK_IN_OMAP243X	(1 << 15)
-#define CLOCK_IN_OMAP343X	(1 << 16)
     uint32_t flags;
     int id;
 
@@ -59,8 +56,7 @@ static struct clk xtal_osc12m = {
 static struct clk xtal_osc32k = {
     .name	= "xtal_osc_32k",
     .rate	= 32768,
-    .flags	= CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | CLOCK_IN_OMAP310 |
-            CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
+    .flags	= CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX | CLOCK_IN_OMAP310,
 };
 
 static struct clk ck_ref = {
@@ -507,449 +503,10 @@ static struct clk i2c_ick = {
 static struct clk clk32k = {
     .name	= "clk32-kHz",
     .flags	= CLOCK_IN_OMAP310 | CLOCK_IN_OMAP1510 | CLOCK_IN_OMAP16XX |
-            CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
+            ALWAYS_ENABLED,
     .parent	= &xtal_osc32k,
 };
 
-static struct clk ref_clk = {
-    .name	= "ref_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 12000000,	/* 12 MHz or 13 MHz or 19.2 MHz */
-    /*.parent	= sys.xtalin */
-};
-
-static struct clk apll_96m = {
-    .name	= "apll_96m",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 96000000,
-    /*.parent	= ref_clk */
-};
-
-static struct clk apll_54m = {
-    .name	= "apll_54m",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 54000000,
-    /*.parent	= ref_clk */
-};
-
-static struct clk sys_clk = {
-    .name	= "sys_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 32768,
-    /*.parent	= sys.xtalin */
-};
-
-static struct clk sleep_clk = {
-    .name	= "sleep_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 32768,
-    /*.parent	= sys.xtalin */
-};
-
-static struct clk dpll_ck = {
-    .name	= "dpll",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .parent	= &ref_clk,
-};
-
-static struct clk dpll_x2_ck = {
-    .name	= "dpll_x2",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .parent	= &ref_clk,
-};
-
-static struct clk wdt1_sys_clk = {
-    .name	= "wdt1_sys_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | ALWAYS_ENABLED,
-    .rate	= 32768,
-    /*.parent	= sys.xtalin */
-};
-
-static struct clk func_96m_clk = {
-    .name	= "func_96m_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .divisor	= 1,
-    .parent	= &apll_96m,
-};
-
-static struct clk func_48m_clk = {
-    .name	= "func_48m_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .divisor	= 2,
-    .parent	= &apll_96m,
-};
-
-static struct clk func_12m_clk = {
-    .name	= "func_12m_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .divisor	= 8,
-    .parent	= &apll_96m,
-};
-
-static struct clk func_54m_clk = {
-    .name	= "func_54m_clk",
-    .flags	= CLOCK_IN_OMAP242X,
-    .divisor	= 1,
-    .parent	= &apll_54m,
-};
-
-static struct clk sys_clkout = {
-    .name	= "clkout",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk sys_clkout2 = {
-    .name	= "clkout2",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_clk = {
-    .name	= "core_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &dpll_x2_ck,	/* Switchable between dpll_ck and clk32k */
-};
-
-static struct clk l3_clk = {
-    .name	= "l3_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk core_l4_iclk = {
-    .name	= "core_l4_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &l3_clk,
-};
-
-static struct clk wu_l4_iclk = {
-    .name	= "wu_l4_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &l3_clk,
-};
-
-static struct clk core_l3_iclk = {
-    .name	= "core_l3_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk core_l4_usb_clk = {
-    .name	= "core_l4_usb_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &l3_clk,
-};
-
-static struct clk wu_gpt1_clk = {
-    .name	= "wu_gpt1_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk wu_32k_clk = {
-    .name	= "wu_32k_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk uart1_fclk = {
-    .name	= "uart1_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_48m_clk,
-};
-
-static struct clk uart1_iclk = {
-    .name	= "uart1_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk uart2_fclk = {
-    .name	= "uart2_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_48m_clk,
-};
-
-static struct clk uart2_iclk = {
-    .name	= "uart2_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk uart3_fclk = {
-    .name	= "uart3_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_48m_clk,
-};
-
-static struct clk uart3_iclk = {
-    .name	= "uart3_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk mpu_fclk = {
-    .name	= "mpu_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk mpu_iclk = {
-    .name	= "mpu_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk int_m_fclk = {
-    .name	= "int_m_fclk",
-    .alias	= "mpu_intc_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk int_m_iclk = {
-    .name	= "int_m_iclk",
-    .alias	= "mpu_intc_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_clk,
-};
-
-static struct clk core_gpt2_clk = {
-    .name	= "core_gpt2_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt3_clk = {
-    .name	= "core_gpt3_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt4_clk = {
-    .name	= "core_gpt4_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt5_clk = {
-    .name	= "core_gpt5_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt6_clk = {
-    .name	= "core_gpt6_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt7_clk = {
-    .name	= "core_gpt7_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt8_clk = {
-    .name	= "core_gpt8_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt9_clk = {
-    .name	= "core_gpt9_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt10_clk = {
-    .name	= "core_gpt10_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt11_clk = {
-    .name	= "core_gpt11_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk core_gpt12_clk = {
-    .name	= "core_gpt12_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &sys_clk,
-};
-
-static struct clk mcbsp1_clk = {
-    .name	= "mcbsp1_cg",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .divisor	= 2,
-    .parent	= &func_96m_clk,
-};
-
-static struct clk mcbsp2_clk = {
-    .name	= "mcbsp2_cg",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .divisor	= 2,
-    .parent	= &func_96m_clk,
-};
-
-static struct clk emul_clk = {
-    .name	= "emul_ck",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_54m_clk,
-};
-
-static struct clk sdma_fclk = {
-    .name	= "sdma_fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &l3_clk,
-};
-
-static struct clk sdma_iclk = {
-    .name	= "sdma_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l3_iclk, /* core_l4_iclk for the configuration port */
-};
-
-static struct clk i2c1_fclk = {
-    .name	= "i2c1.fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_12m_clk,
-    .divisor	= 1,
-};
-
-static struct clk i2c1_iclk = {
-    .name	= "i2c1.iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk i2c2_fclk = {
-    .name	= "i2c2.fclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_12m_clk,
-    .divisor	= 1,
-};
-
-static struct clk i2c2_iclk = {
-    .name	= "i2c2.iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk gpio_dbclk[5] = {
-    {
-        .name	= "gpio1_dbclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &wu_32k_clk,
-    }, {
-        .name	= "gpio2_dbclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &wu_32k_clk,
-    }, {
-        .name	= "gpio3_dbclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &wu_32k_clk,
-    }, {
-        .name	= "gpio4_dbclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &wu_32k_clk,
-    }, {
-        .name   = "gpio5_dbclk",
-        .flags  = CLOCK_IN_OMAP243X,
-        .parent = &wu_32k_clk,
-    },
-};
-
-static struct clk gpio_iclk = {
-    .name	= "gpio_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &wu_l4_iclk,
-};
-
-static struct clk mmc_fck = {
-    .name	= "mmc_fclk",
-    .flags	= CLOCK_IN_OMAP242X,
-    .parent	= &func_96m_clk,
-};
-
-static struct clk mmc_ick = {
-    .name	= "mmc_iclk",
-    .flags	= CLOCK_IN_OMAP242X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk spi_fclk[3] = {
-    {
-        .name	= "spi1_fclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &func_48m_clk,
-    }, {
-        .name	= "spi2_fclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &func_48m_clk,
-    }, {
-        .name	= "spi3_fclk",
-        .flags	= CLOCK_IN_OMAP243X,
-        .parent	= &func_48m_clk,
-    },
-};
-
-static struct clk dss_clk[2] = {
-    {
-        .name	= "dss_clk1",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &core_clk,
-    }, {
-        .name	= "dss_clk2",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &sys_clk,
-    },
-};
-
-static struct clk dss_54m_clk = {
-    .name	= "dss_54m_clk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &func_54m_clk,
-};
-
-static struct clk dss_l3_iclk = {
-    .name	= "dss_l3_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l3_iclk,
-};
-
-static struct clk dss_l4_iclk = {
-    .name	= "dss_l4_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    .parent	= &core_l4_iclk,
-};
-
-static struct clk spi_iclk[3] = {
-    {
-        .name	= "spi1_iclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &core_l4_iclk,
-    }, {
-        .name	= "spi2_iclk",
-        .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-        .parent	= &core_l4_iclk,
-    }, {
-        .name	= "spi3_iclk",
-        .flags	= CLOCK_IN_OMAP243X,
-        .parent	= &core_l4_iclk,
-    },
-};
-
-static struct clk omapctrl_clk = {
-    .name	= "omapctrl_iclk",
-    .flags	= CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
-    /* XXX Should be in WKUP domain */
-    .parent	= &core_l4_iclk,
-};
-
 static struct clk *onchip_clks[] = {
     /* OMAP 1 */
 
@@ -1019,80 +576,6 @@ static struct clk *onchip_clks[] = {
     &i2c_fck,
     &i2c_ick,
 
-    /* OMAP 2 */
-
-    &ref_clk,
-    &apll_96m,
-    &apll_54m,
-    &sys_clk,
-    &sleep_clk,
-    &dpll_ck,
-    &dpll_x2_ck,
-    &wdt1_sys_clk,
-    &func_96m_clk,
-    &func_48m_clk,
-    &func_12m_clk,
-    &func_54m_clk,
-    &sys_clkout,
-    &sys_clkout2,
-    &core_clk,
-    &l3_clk,
-    &core_l4_iclk,
-    &wu_l4_iclk,
-    &core_l3_iclk,
-    &core_l4_usb_clk,
-    &wu_gpt1_clk,
-    &wu_32k_clk,
-    &uart1_fclk,
-    &uart1_iclk,
-    &uart2_fclk,
-    &uart2_iclk,
-    &uart3_fclk,
-    &uart3_iclk,
-    &mpu_fclk,
-    &mpu_iclk,
-    &int_m_fclk,
-    &int_m_iclk,
-    &core_gpt2_clk,
-    &core_gpt3_clk,
-    &core_gpt4_clk,
-    &core_gpt5_clk,
-    &core_gpt6_clk,
-    &core_gpt7_clk,
-    &core_gpt8_clk,
-    &core_gpt9_clk,
-    &core_gpt10_clk,
-    &core_gpt11_clk,
-    &core_gpt12_clk,
-    &mcbsp1_clk,
-    &mcbsp2_clk,
-    &emul_clk,
-    &sdma_fclk,
-    &sdma_iclk,
-    &i2c1_fclk,
-    &i2c1_iclk,
-    &i2c2_fclk,
-    &i2c2_iclk,
-    &gpio_dbclk[0],
-    &gpio_dbclk[1],
-    &gpio_dbclk[2],
-    &gpio_dbclk[3],
-    &gpio_iclk,
-    &mmc_fck,
-    &mmc_ick,
-    &spi_fclk[0],
-    &spi_iclk[0],
-    &spi_fclk[1],
-    &spi_iclk[1],
-    &spi_fclk[2],
-    &spi_iclk[2],
-    &dss_clk[0],
-    &dss_clk[1],
-    &dss_54m_clk,
-    &dss_l3_iclk,
-    &dss_l4_iclk,
-    &omapctrl_clk,
-
     NULL
 };
 
@@ -1230,12 +713,6 @@ void omap_clk_init(struct omap_mpu_state_s *mpu)
         flag = CLOCK_IN_OMAP310;
     else if (cpu_is_omap1510(mpu))
         flag = CLOCK_IN_OMAP1510;
-    else if (cpu_is_omap2410(mpu) || cpu_is_omap2420(mpu))
-        flag = CLOCK_IN_OMAP242X;
-    else if (cpu_is_omap2430(mpu))
-        flag = CLOCK_IN_OMAP243X;
-    else if (cpu_is_omap3430(mpu))
-        flag = CLOCK_IN_OMAP243X;
     else
         return;
 
Signature · 1 line
2.34.1
#93 lore raw

PATCH 52/53 hw/dma: Remove omap_dma4 device

In reply to Peter Maydell

The omap_dma4 device was only used in the OMAP2 SoC, which has been removed.

---
 include/hw/arm/omap.h |   1 -
 hw/dma/omap_dma.c     | 451 +-----------------------------------------
 2 files changed, 3 insertions(+), 449 deletions(-)
include/hw/arm/omap.h +0 -1
index f82b820d4d8..3f9860070b9 100644
@@ -421,7 +421,6 @@ enum omap_dma_model {
     omap_dma_3_0,
     omap_dma_3_1,
     omap_dma_3_2,
-    omap_dma_4,
 };
 
 struct soc_dma_s;
hw/dma/omap_dma.c +3 -448

481 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 52/53
#94 lore raw

Re: [PATCH for-9.2 52/53] hw/dma: Remove omap_dma4 device

Quoted 8 lines · Peter Maydell

The omap_dma4 device was only used in the OMAP2 SoC, which has been removed.

---
  include/hw/arm/omap.h |   1 -
  hw/dma/omap_dma.c     | 451 +-----------------------------------------
  2 files changed, 3 insertions(+), 449 deletions(-)
#95 lore raw

PATCH 53/53 hw: Remove omap2 specific defines and enums

In reply to Peter Maydell

Remove some defines and enums that are OMAP2 specific and no longer used anywhere.

---
 include/hw/arm/omap.h | 207 ------------------------------------------
 1 file changed, 207 deletions(-)
include/hw/arm/omap.h +0 -207
index 3f9860070b9..cf5f0219a2f 100644
@@ -26,7 +26,6 @@
 #include "qom/object.h"
 
 # define OMAP_EMIFS_BASE	0x00000000
-# define OMAP2_Q0_BASE		0x00000000
 # define OMAP_CS0_BASE		0x00000000
 # define OMAP_CS1_BASE		0x04000000
 # define OMAP_CS2_BASE		0x08000000
@@ -34,20 +33,12 @@
 # define OMAP_EMIFF_BASE	0x10000000
 # define OMAP_IMIF_BASE		0x20000000
 # define OMAP_LOCALBUS_BASE	0x30000000
-# define OMAP2_Q1_BASE		0x40000000
-# define OMAP2_L4_BASE		0x48000000
-# define OMAP2_SRAM_BASE	0x40200000
-# define OMAP2_L3_BASE		0x68000000
-# define OMAP2_Q2_BASE		0x80000000
-# define OMAP2_Q3_BASE		0xc0000000
 # define OMAP_MPUI_BASE		0xe1000000
 
 # define OMAP730_SRAM_SIZE	0x00032000
 # define OMAP15XX_SRAM_SIZE	0x00030000
 # define OMAP16XX_SRAM_SIZE	0x00004000
 # define OMAP1611_SRAM_SIZE	0x0003e800
-# define OMAP242X_SRAM_SIZE	0x000a0000
-# define OMAP243X_SRAM_SIZE	0x00010000
 # define OMAP_CS0_SIZE		0x04000000
 # define OMAP_CS1_SIZE		0x04000000
 # define OMAP_CS2_SIZE		0x04000000
@@ -335,87 +326,6 @@ void omap_gpio_set_clk(Omap1GpioState *gpio, omap_clk clk);
 # define OMAP_INT_730_DMA_CH15		62
 # define OMAP_INT_730_NAND		63
 
-/*
- * OMAP-24xx common IRQ numbers
- */
-# define OMAP_INT_24XX_STI		4
-# define OMAP_INT_24XX_SYS_NIRQ		7
-# define OMAP_INT_24XX_L3_IRQ		10
-# define OMAP_INT_24XX_PRCM_MPU_IRQ	11
-# define OMAP_INT_24XX_SDMA_IRQ0	12
-# define OMAP_INT_24XX_SDMA_IRQ1	13
-# define OMAP_INT_24XX_SDMA_IRQ2	14
-# define OMAP_INT_24XX_SDMA_IRQ3	15
-# define OMAP_INT_243X_MCBSP2_IRQ	16
-# define OMAP_INT_243X_MCBSP3_IRQ	17
-# define OMAP_INT_243X_MCBSP4_IRQ	18
-# define OMAP_INT_243X_MCBSP5_IRQ	19
-# define OMAP_INT_24XX_GPMC_IRQ		20
-# define OMAP_INT_24XX_GUFFAW_IRQ	21
-# define OMAP_INT_24XX_IVA_IRQ		22
-# define OMAP_INT_24XX_EAC_IRQ		23
-# define OMAP_INT_24XX_CAM_IRQ		24
-# define OMAP_INT_24XX_DSS_IRQ		25
-# define OMAP_INT_24XX_MAIL_U0_MPU	26
-# define OMAP_INT_24XX_DSP_UMA		27
-# define OMAP_INT_24XX_DSP_MMU		28
-# define OMAP_INT_24XX_GPIO_BANK1	29
-# define OMAP_INT_24XX_GPIO_BANK2	30
-# define OMAP_INT_24XX_GPIO_BANK3	31
-# define OMAP_INT_24XX_GPIO_BANK4	32
-# define OMAP_INT_243X_GPIO_BANK5	33
-# define OMAP_INT_24XX_MAIL_U3_MPU	34
-# define OMAP_INT_24XX_WDT3		35
-# define OMAP_INT_24XX_WDT4		36
-# define OMAP_INT_24XX_GPTIMER1		37
-# define OMAP_INT_24XX_GPTIMER2		38
-# define OMAP_INT_24XX_GPTIMER3		39
-# define OMAP_INT_24XX_GPTIMER4		40
-# define OMAP_INT_24XX_GPTIMER5		41
-# define OMAP_INT_24XX_GPTIMER6		42
-# define OMAP_INT_24XX_GPTIMER7		43
-# define OMAP_INT_24XX_GPTIMER8		44
-# define OMAP_INT_24XX_GPTIMER9		45
-# define OMAP_INT_24XX_GPTIMER10	46
-# define OMAP_INT_24XX_GPTIMER11	47
-# define OMAP_INT_24XX_GPTIMER12	48
-# define OMAP_INT_24XX_PKA_IRQ		50
-# define OMAP_INT_24XX_SHA1MD5_IRQ	51
-# define OMAP_INT_24XX_RNG_IRQ		52
-# define OMAP_INT_24XX_MG_IRQ		53
-# define OMAP_INT_24XX_I2C1_IRQ		56
-# define OMAP_INT_24XX_I2C2_IRQ		57
-# define OMAP_INT_24XX_MCBSP1_IRQ_TX	59
-# define OMAP_INT_24XX_MCBSP1_IRQ_RX	60
-# define OMAP_INT_24XX_MCBSP2_IRQ_TX	62
-# define OMAP_INT_24XX_MCBSP2_IRQ_RX	63
-# define OMAP_INT_243X_MCBSP1_IRQ	64
-# define OMAP_INT_24XX_MCSPI1_IRQ	65
-# define OMAP_INT_24XX_MCSPI2_IRQ	66
-# define OMAP_INT_24XX_SSI1_IRQ0	67
-# define OMAP_INT_24XX_SSI1_IRQ1	68
-# define OMAP_INT_24XX_SSI2_IRQ0	69
-# define OMAP_INT_24XX_SSI2_IRQ1	70
-# define OMAP_INT_24XX_SSI_GDD_IRQ	71
-# define OMAP_INT_24XX_UART1_IRQ	72
-# define OMAP_INT_24XX_UART2_IRQ	73
-# define OMAP_INT_24XX_UART3_IRQ	74
-# define OMAP_INT_24XX_USB_IRQ_GEN	75
-# define OMAP_INT_24XX_USB_IRQ_NISO	76
-# define OMAP_INT_24XX_USB_IRQ_ISO	77
-# define OMAP_INT_24XX_USB_IRQ_HGEN	78
-# define OMAP_INT_24XX_USB_IRQ_HSOF	79
-# define OMAP_INT_24XX_USB_IRQ_OTG	80
-# define OMAP_INT_24XX_VLYNQ_IRQ	81
-# define OMAP_INT_24XX_MMC_IRQ		83
-# define OMAP_INT_24XX_MS_IRQ		84
-# define OMAP_INT_24XX_FAC_IRQ		85
-# define OMAP_INT_24XX_MCSPI3_IRQ	91
-# define OMAP_INT_243X_HS_USB_MC	92
-# define OMAP_INT_243X_HS_USB_DMA	93
-# define OMAP_INT_243X_CARKIT		94
-# define OMAP_INT_34XX_GPTIMER12	95
-
 /* omap_dma.c */
 enum omap_dma_model {
     omap_dma_3_0,
@@ -568,74 +478,6 @@ struct omap_dma_lcd_channel_s {
 # define OMAP_DMA_MMC2_RX		55
 # define OMAP_DMA_CRYPTO_DES_OUT	56
 
-/*
- * DMA request numbers for the OMAP2
- */
-# define OMAP24XX_DMA_NO_DEVICE		0
-# define OMAP24XX_DMA_XTI_DMA		1	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_EXT_DMAREQ0	2
-# define OMAP24XX_DMA_EXT_DMAREQ1	3
-# define OMAP24XX_DMA_GPMC		4
-# define OMAP24XX_DMA_GFX		5	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_DSS		6
-# define OMAP24XX_DMA_VLYNQ_TX		7	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_CWT		8	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_AES_TX		9	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_AES_RX		10	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_DES_TX		11	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_DES_RX		12	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_SHA1MD5_RX	13	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_EXT_DMAREQ2	14
-# define OMAP24XX_DMA_EXT_DMAREQ3	15
-# define OMAP24XX_DMA_EXT_DMAREQ4	16
-# define OMAP24XX_DMA_EAC_AC_RD		17
-# define OMAP24XX_DMA_EAC_AC_WR		18
-# define OMAP24XX_DMA_EAC_MD_UL_RD	19
-# define OMAP24XX_DMA_EAC_MD_UL_WR	20
-# define OMAP24XX_DMA_EAC_MD_DL_RD	21
-# define OMAP24XX_DMA_EAC_MD_DL_WR	22
-# define OMAP24XX_DMA_EAC_BT_UL_RD	23
-# define OMAP24XX_DMA_EAC_BT_UL_WR	24
-# define OMAP24XX_DMA_EAC_BT_DL_RD	25
-# define OMAP24XX_DMA_EAC_BT_DL_WR	26
-# define OMAP24XX_DMA_I2C1_TX		27
-# define OMAP24XX_DMA_I2C1_RX		28
-# define OMAP24XX_DMA_I2C2_TX		29
-# define OMAP24XX_DMA_I2C2_RX		30
-# define OMAP24XX_DMA_MCBSP1_TX		31
-# define OMAP24XX_DMA_MCBSP1_RX		32
-# define OMAP24XX_DMA_MCBSP2_TX		33
-# define OMAP24XX_DMA_MCBSP2_RX		34
-# define OMAP24XX_DMA_SPI1_TX0		35
-# define OMAP24XX_DMA_SPI1_RX0		36
-# define OMAP24XX_DMA_SPI1_TX1		37
-# define OMAP24XX_DMA_SPI1_RX1		38
-# define OMAP24XX_DMA_SPI1_TX2		39
-# define OMAP24XX_DMA_SPI1_RX2		40
-# define OMAP24XX_DMA_SPI1_TX3		41
-# define OMAP24XX_DMA_SPI1_RX3		42
-# define OMAP24XX_DMA_SPI2_TX0		43
-# define OMAP24XX_DMA_SPI2_RX0		44
-# define OMAP24XX_DMA_SPI2_TX1		45
-# define OMAP24XX_DMA_SPI2_RX1		46
-
-# define OMAP24XX_DMA_UART1_TX		49
-# define OMAP24XX_DMA_UART1_RX		50
-# define OMAP24XX_DMA_UART2_TX		51
-# define OMAP24XX_DMA_UART2_RX		52
-# define OMAP24XX_DMA_UART3_TX		53
-# define OMAP24XX_DMA_UART3_RX		54
-# define OMAP24XX_DMA_USB_W2FC_TX0	55
-# define OMAP24XX_DMA_USB_W2FC_RX0	56
-# define OMAP24XX_DMA_USB_W2FC_TX1	57
-# define OMAP24XX_DMA_USB_W2FC_RX1	58
-# define OMAP24XX_DMA_USB_W2FC_TX2	59
-# define OMAP24XX_DMA_USB_W2FC_RX2	60
-# define OMAP24XX_DMA_MMC1_TX		61
-# define OMAP24XX_DMA_MMC1_RX		62
-# define OMAP24XX_DMA_MS		63	/* Not in OMAP2420 */
-# define OMAP24XX_DMA_EXT_DMAREQ5	64
-
 struct omap_uart_s;
 struct omap_uart_s *omap_uart_init(hwaddr base,
                 qemu_irq irq, omap_clk fclk, omap_clk iclk,
@@ -709,24 +551,11 @@ I2CBus *omap_i2c_bus(DeviceState *omap_i2c);
 # define cpu_is_omap1510(cpu)		(cpu->mpu_model == omap1510)
 # define cpu_is_omap1610(cpu)		(cpu->mpu_model == omap1610)
 # define cpu_is_omap1710(cpu)		(cpu->mpu_model == omap1710)
-# define cpu_is_omap2410(cpu)		(cpu->mpu_model == omap2410)
-# define cpu_is_omap2420(cpu)		(cpu->mpu_model == omap2420)
-# define cpu_is_omap2430(cpu)		(cpu->mpu_model == omap2430)
-# define cpu_is_omap3430(cpu)		(cpu->mpu_model == omap3430)
-# define cpu_is_omap3630(cpu)           (cpu->mpu_model == omap3630)
 
 # define cpu_is_omap15xx(cpu)		\
         (cpu_is_omap310(cpu) || cpu_is_omap1510(cpu))
 # define cpu_is_omap16xx(cpu)		\
         (cpu_is_omap1610(cpu) || cpu_is_omap1710(cpu))
-# define cpu_is_omap24xx(cpu)		\
-        (cpu_is_omap2410(cpu) || cpu_is_omap2420(cpu) || cpu_is_omap2430(cpu))
-
-# define cpu_class_omap1(cpu)		\
-        (cpu_is_omap15xx(cpu) || cpu_is_omap16xx(cpu))
-# define cpu_class_omap2(cpu)		cpu_is_omap24xx(cpu)
-# define cpu_class_omap3(cpu) \
-        (cpu_is_omap3430(cpu) || cpu_is_omap3630(cpu))
 
 struct omap_mpu_state_s {
     enum omap_mpu_model {
@@ -734,13 +563,6 @@ struct omap_mpu_state_s {
         omap1510,
         omap1610,
         omap1710,
-        omap2410,
-        omap2420,
-        omap2422,
-        omap2423,
-        omap2430,
-        omap3430,
-        omap3630,
     } mpu_model;
 
     ARMCPU *cpu;
@@ -876,35 +698,6 @@ void omap_mpu_wakeup(void *opaque, int irq, int req);
                                        HWADDR_PRIx "\n", \
                       __func__, paddr)
 
-/* OMAP-specific Linux bootloader tags for the ATAG_BOARD area
- * (Board-specific tags are not here)
- */
-#define OMAP_TAG_CLOCK		0x4f01
-#define OMAP_TAG_MMC		0x4f02
-#define OMAP_TAG_SERIAL_CONSOLE	0x4f03
-#define OMAP_TAG_USB		0x4f04
-#define OMAP_TAG_LCD		0x4f05
-#define OMAP_TAG_GPIO_SWITCH	0x4f06
-#define OMAP_TAG_UART		0x4f07
-#define OMAP_TAG_FBMEM		0x4f08
-#define OMAP_TAG_STI_CONSOLE	0x4f09
-#define OMAP_TAG_CAMERA_SENSOR	0x4f0a
-#define OMAP_TAG_PARTITION	0x4f0b
-#define OMAP_TAG_TEA5761	0x4f10
-#define OMAP_TAG_TMP105		0x4f11
-#define OMAP_TAG_BOOT_REASON	0x4f80
-#define OMAP_TAG_FLASH_PART_STR	0x4f81
-#define OMAP_TAG_VERSION_STR	0x4f82
-
-enum {
-    OMAP_GPIOSW_TYPE_COVER	= 0 << 4,
-    OMAP_GPIOSW_TYPE_CONNECTION	= 1 << 4,
-    OMAP_GPIOSW_TYPE_ACTIVITY	= 2 << 4,
-};
-
-#define OMAP_GPIOSW_INVERTED	0x0001
-#define OMAP_GPIOSW_OUTPUT	0x0002
-
 # define OMAP_MPUI_REG_MASK		0x000007ff
 
 #endif
Signature · 1 line
2.34.1
Reviewed-by Tested-by on v1 53/53
#96 lore raw

Re: [PATCH for-9.2 53/53] hw: Remove omap2 specific defines and enums

Quoted 7 lines · Peter Maydell

Remove some defines and enums that are OMAP2 specific and no longer used anywhere.

---
  include/hw/arm/omap.h | 207 ------------------------------------------
  1 file changed, 207 deletions(-)
#97 lore raw
In reply to Peter Maydell
Quoted 8 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2
We get to drop over 30,000 lines of unmaintained code. So it's a big patchset but it's almost all deletions.

Quoted 8 lines

We have some command line options which were documented as only used by the pxa2xx LCD display driver: -portrait and -rotate. These allowed the user to tell the display device to rotate its output by 90/180/270 degrees (and the ui input layer to correspondingly rotate mouse event coordinates to match). I didn't realize these existed when we deprecated the pxa2xx machines -- do we need a separate deprecate-and-drop period to remove the command line options? (If so, I can drop the relevant patch from this series.)

They are not specific to PXA; PXA LCD is the only one that supports passing it to the guest, but the logic is generic: if (for whatever reason) your VM generates output that is rotated, you can use the option to rotate mouse input.

It's okay to remove it without deprecation notice, but also to keep it. Your choice, it's not a lot of code.

Paolo

Quoted 240 lines

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

Removing these machines hopefully will make it easier to complete some API transitions (e.g. there is only one caller of the ui/input-legacy.c function qemu_add_kbd_event_handler() left, and five of qemu_add_mouse_event_handler(); a lot of qemu_register_reset() calls have gone; and so on).

(There will be a trivial conflict with my reset patch that gets rid of direct setting of DeviceClass::reset in some places, but I'll fix that up when merging.)

thanks
-- PMM

Peter Maydell (53):
hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device
hw/ide: Remove DSCM-1XXXX microdrive device model hw/display: Remove tc6393xb device
hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP
hw/arm: Remove 'cheetah' machine
hw/arm: Remove 'connex' and 'verdex' machines
hw/arm: Remove 'mainstone' machine
hw/misc: Remove MAINSTONE_FPGA device
hw/arm: Remove 'z2' machine
hw/arm: Remove STRONGARM->PXA2XX dependency hw/timer/pxa2xx_timer: Remove use of pxa.h header
hw/arm: Remove pxa2xx.c
hw/sd: Remove pxa2xx_mmci.c
hw/input: Remove pxa2xx_keypad
hw/display: Remove pxa2xx_lcd.c
hw/dma: Remove pxa2xx_dma
hw/pcmcia: Remove pxa2xx pcmcia device
hw/arm: Remove pxa2xx_gpio
hw/arm: Remove pxa2xx_pic
hw/timer: Remove pxa27x-timer
vl.c: Remove pxa2xx-specific -portrait and -rotate options hw/arm: Remove 'n800' and 'n810' machines
hw/misc: Remove cbus
hw/display: Remove Blizzard display device
hw/input: Remove tsc2005 touchscreen controller
hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device
hw/input: Remove lm832x device
hw/block: Remove OneNAND device
hw/usb: Remove tusb6010 USB controller
hw/usb: Remove MUSB USB host controller
hw: Remove PCMCIA subsystem
docs: Document removal of old Arm boards
hw/arm: Remove omap2.c
hw/gpio: Remove TYPE_OMAP2_GPIO
hw/char: Remove omap2_uart
hw/intc: Remove omap2-intc device
hw/sd: Remove omap2_mmc device
hw/misc: Remove omap_sdrc device
hw/misc: Remove omap_gpmc
hw/timer: Remove omap_gptimer
hw/timer: Remove omap_synctimer
hw/block: Remove ecc
hw/ssi: Remove omap_mcspi
hw/misc: Remove omap_tap device
hw/display: Remove omap_dss
hw/misc: Remove omap_l4 device
hw/misc/omap_clk: Remove OMAP2-specifics
hw/dma: Remove omap_dma4 device
hw: Remove omap2 specific defines and enums

  MAINTAINERS                             |   58 +-
  docs/about/deprecated.rst               |   15 -
  docs/about/removed-features.rst         |   15 +
  docs/system/arm/gumstix.rst             |   21 -
  docs/system/arm/mainstone.rst           |   25 -
  docs/system/arm/nseries.rst             |   33 -
  docs/system/arm/palm.rst                |   23 -
  docs/system/arm/xscale.rst              |   35 -
  docs/system/target-arm.rst              |    5 -
  configs/devices/arm-softmmu/default.mak |    7 -
  include/hw/adc/max111x.h                |   56 -
  include/hw/arm/omap.h                   |  350 +--
  include/hw/arm/pxa.h                    |  197 --
  include/hw/block/flash.h                |   14 -
  include/hw/display/blizzard.h           |   21 -
  include/hw/display/tc6393xb.h           |   21 -
  include/hw/input/lm832x.h               |   28 -
  include/hw/input/tsc2xxx.h              |   41 -
  include/hw/misc/cbus.h                  |   31 -
  include/hw/pcmcia.h                     |   66 -
  include/hw/usb/hcd-musb.h               |   49 -
  include/sysemu/sysemu.h                 |    1 -
  hw/adc/max111x.c                        |  236 --
  hw/arm/gumstix.c                        |  141 --
  hw/arm/mainstone.c                      |  175 --
  hw/arm/nseries.c                        | 1473 ------------
  hw/arm/omap2.c                          | 2715 -----------------------
  hw/arm/palm.c                           |  324 ---
  hw/arm/pxa2xx.c                         | 2393 --------------------
  hw/arm/pxa2xx_gpio.c                    |  365 ---
  hw/arm/pxa2xx_pic.c                     |  359 ---
  hw/arm/spitz.c                          | 1284 -----------
  hw/arm/tosa.c                           |  327 ---
  hw/arm/z2.c                             |  355 ---
  hw/block/ecc.c                          |   91 -
  hw/block/onenand.c                      |  872 --------
  hw/char/omap_uart.c                     |  113 -
  hw/display/blizzard.c                   | 1026 ---------
  hw/display/omap_dss.c                   | 1093 ---------
  hw/display/pxa2xx_lcd.c                 | 1451 ------------
  hw/display/tc6393xb.c                   |  568 -----
  hw/dma/omap_dma.c                       |  451 +---
  hw/dma/pxa2xx_dma.c                     |  591 -----
  hw/gpio/max7310.c                       |  217 --
  hw/gpio/omap_gpio.c                     |  557 -----
  hw/ide/microdrive.c                     |  644 ------
  hw/input/ads7846.c                      |  186 --
  hw/input/lm832x.c                       |  528 -----
  hw/input/pxa2xx_keypad.c                |  331 ---
  hw/input/tsc2005.c                      |  571 -----
  hw/input/tsc210x.c                      | 1241 -----------
  hw/intc/omap_intc.c                     |  276 ---
  hw/misc/cbus.c                          |  619 ------
  hw/misc/mst_fpga.c                      |  269 ---
  hw/misc/omap_clk.c                      |  527 +----
  hw/misc/omap_gpmc.c                     |  898 --------
  hw/misc/omap_l4.c                       |  162 --
  hw/misc/omap_sdrc.c                     |  167 --
  hw/misc/omap_tap.c                      |  117 -
  hw/pcmcia/pcmcia.c                      |   24 -
  hw/pcmcia/pxa2xx.c                      |  248 ---
  hw/rtc/twl92230.c                       |  882 --------
  hw/sd/omap_mmc.c                        |   63 -
  hw/sd/pxa2xx_mmci.c                     |  594 -----
  hw/ssi/omap_spi.c                       |  380 ----
  hw/timer/omap_gptimer.c                 |  512 -----
  hw/timer/omap_synctimer.c               |  110 -
  hw/timer/pxa2xx_timer.c                 |   25 -
  hw/usb/hcd-musb.c                       | 1553 -------------
  hw/usb/tusb6010.c                       |  850 -------
  system/globals.c                        |    1 -
  system/vl.c                             |   11 -
  ui/input.c                              |   36 -
  hw/Kconfig                              |    1 -
  hw/adc/Kconfig                          |    3 -
  hw/adc/meson.build                      |    1 -
  hw/arm/Kconfig                          |   90 +-
  hw/arm/meson.build                      |    9 -
  hw/block/Kconfig                        |    6 -
  hw/block/meson.build                    |    2 -
  hw/display/Kconfig                      |    3 -
  hw/display/meson.build                  |    4 -
  hw/dma/meson.build                      |    1 -
  hw/gpio/Kconfig                         |    7 +-
  hw/gpio/meson.build                     |    3 +-
  hw/ide/Kconfig                          |    6 -
  hw/ide/meson.build                      |    1 -
  hw/input/Kconfig                        |   13 -
  hw/input/meson.build                    |    5 -
  hw/input/trace-events                   |    3 -
  hw/meson.build                          |    1 -
  hw/misc/Kconfig                         |    1 -
  hw/misc/meson.build                     |    6 -
  hw/pcmcia/Kconfig                       |    2 -
  hw/pcmcia/meson.build                   |    2 -
  hw/rtc/Kconfig                          |    4 -
  hw/rtc/meson.build                      |    1 -
  hw/sd/meson.build                       |    1 -
  hw/sd/trace-events                      |    4 -
  hw/ssi/meson.build                      |    1 -
  hw/timer/Kconfig                        |    3 +
  hw/timer/meson.build                    |    4 +-
  hw/usb/Kconfig                          |    8 -
  hw/usb/meson.build                      |    2 -
  qemu-options.hx                         |   16 -
  tests/avocado/machine_arm_n8x0.py       |   49 -
  106 files changed, 39 insertions(+), 30338 deletions(-)

delete mode 100644 docs/system/arm/gumstix.rst delete mode 100644 docs/system/arm/mainstone.rst delete mode 100644 docs/system/arm/nseries.rst delete mode 100644 docs/system/arm/palm.rst delete mode 100644 docs/system/arm/xscale.rst delete mode 100644 include/hw/adc/max111x.h delete mode 100644 include/hw/arm/pxa.h delete mode 100644 include/hw/display/blizzard.h delete mode 100644 include/hw/display/tc6393xb.h delete mode 100644 include/hw/input/lm832x.h delete mode 100644 include/hw/input/tsc2xxx.h delete mode 100644 include/hw/misc/cbus.h delete mode 100644 include/hw/pcmcia.h delete mode 100644 include/hw/usb/hcd-musb.h delete mode 100644 hw/adc/max111x.c
delete mode 100644 hw/arm/gumstix.c
delete mode 100644 hw/arm/mainstone.c delete mode 100644 hw/arm/nseries.c
delete mode 100644 hw/arm/omap2.c
delete mode 100644 hw/arm/palm.c
delete mode 100644 hw/arm/pxa2xx.c
delete mode 100644 hw/arm/pxa2xx_gpio.c delete mode 100644 hw/arm/pxa2xx_pic.c delete mode 100644 hw/arm/spitz.c
delete mode 100644 hw/arm/tosa.c
delete mode 100644 hw/arm/z2.c
delete mode 100644 hw/block/ecc.c
delete mode 100644 hw/block/onenand.c delete mode 100644 hw/display/blizzard.c delete mode 100644 hw/display/omap_dss.c delete mode 100644 hw/display/pxa2xx_lcd.c delete mode 100644 hw/display/tc6393xb.c delete mode 100644 hw/dma/pxa2xx_dma.c delete mode 100644 hw/gpio/max7310.c
delete mode 100644 hw/ide/microdrive.c delete mode 100644 hw/input/ads7846.c delete mode 100644 hw/input/lm832x.c
delete mode 100644 hw/input/pxa2xx_keypad.c delete mode 100644 hw/input/tsc2005.c delete mode 100644 hw/input/tsc210x.c delete mode 100644 hw/misc/cbus.c
delete mode 100644 hw/misc/mst_fpga.c delete mode 100644 hw/misc/omap_gpmc.c delete mode 100644 hw/misc/omap_l4.c
delete mode 100644 hw/misc/omap_sdrc.c delete mode 100644 hw/misc/omap_tap.c delete mode 100644 hw/pcmcia/pcmcia.c delete mode 100644 hw/pcmcia/pxa2xx.c delete mode 100644 hw/rtc/twl92230.c
delete mode 100644 hw/sd/pxa2xx_mmci.c delete mode 100644 hw/ssi/omap_spi.c
delete mode 100644 hw/timer/omap_gptimer.c delete mode 100644 hw/timer/omap_synctimer.c delete mode 100644 hw/usb/hcd-musb.c
delete mode 100644 hw/usb/tusb6010.c
delete mode 100644 hw/pcmcia/Kconfig
delete mode 100644 hw/pcmcia/meson.build delete mode 100644 tests/avocado/machine_arm_n8x0.py

#98 lore raw
Quoted 19 lines · Paolo Bonzini
Quoted 8 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2
We get to drop over 30,000 lines of unmaintained code. So it's a big patchset but it's almost all deletions.

Quoted 8 lines

We have some command line options which were documented as only used by the pxa2xx LCD display driver: -portrait and -rotate. These allowed the user to tell the display device to rotate its output by 90/180/270 degrees (and the ui input layer to correspondingly rotate mouse event coordinates to match). I didn't realize these existed when we deprecated the pxa2xx machines -- do we need a separate deprecate-and-drop period to remove the command line options? (If so, I can drop the relevant patch from this series.)

Quoted 7 lines

They are not specific to PXA; PXA LCD is the only one that supports passing it to the guest, but the logic is generic: if (for whatever reason) your VM generates output that is rotated, you can use the option to rotate mouse input.

It's okay to remove it without deprecation notice, but also to keep it. Your choice, it's not a lot of code.

Well, the documentation for them says:
-portrait rotate graphical output 90 deg left (only PXA LCD)
-rotate <deg> rotate graphical output some deg left (only PXA LCD)

so the original intent was clearly (a) that the main effect was rotation of the graphical output and (b) that these were only effective for PXA.

The PXA display device doesn't pass anything through to the guest, by the way -- it just draws the pixels in the guest framebuffer in a different place in the UI window. As the FIXME comment in pxa2xx_lcd.c notes, this should really have been done in common code, not in a specific display driver.

As we both note, the UI input layer part *is* generic code so it will do the rotation regardless of whether the display device is also rotating the guest output. But that seems to me more of an accident than an intentional feature.

I don't care very much because there's not that much code involved. It's all separated out into patch 24 of this series:
https://patchew.org/QEMU/[email protected]/[email protected]/

-- PMM

#99 lore raw
Quoted 5 lines · Peter Maydell

The PXA display device doesn't pass anything through to the guest, by the way -- it just draws the pixels in the guest framebuffer in a different place in the UI window. As the FIXME comment in pxa2xx_lcd.c notes, this should really have been done in common code, not in a specific display driver.

spitz also passes it through SPITZ_GPIO_SWB ("Tablet mode"), though it's incomplete because it should have treated 180 the same as 0.

Quoted 4 lines

As we both note, the UI input layer part *is* generic code so it will do the rotation regardless of whether the display device is also rotating the guest output. But that seems to me more of an accident than an intentional feature.

Yes, it is, though it *is* working. On the other hand I doubt anyone is using it. Since we have in the past removed single options like -alt-grab, whoever needs it can resurrect the code from git and add the options to -display. They can also add rotation of the output as a separate knob from rotation of the input.

Paolo

#100 lore raw
Quoted 10 lines · Paolo Bonzini
Quoted 5 lines · Peter Maydell

The PXA display device doesn't pass anything through to the guest, by the way -- it just draws the pixels in the guest framebuffer in a different place in the UI window. As the FIXME comment in pxa2xx_lcd.c notes, this should really have been done in common code, not in a specific display driver.

spitz also passes it through SPITZ_GPIO_SWB ("Tablet mode"), though it's incomplete because it should have treated 180 the same as 0.

Whoops, yes -- by the time I got to grepping the sources for uses of the graphic_rotate variable I'd already deleted the spitz.c source file, so I missed that :-)

Quoted 10 lines
Quoted 4 lines

As we both note, the UI input layer part *is* generic code so it will do the rotation regardless of whether the display device is also rotating the guest output. But that seems to me more of an accident than an intentional feature.

Yes, it is, though it *is* working. On the other hand I doubt anyone is using it. Since we have in the past removed single options like -alt-grab, whoever needs it can resurrect the code from git and add the options to -display. They can also add rotation of the output as a separate knob from rotation of the input.

Yeah, I agree. I'll reroll this particular patch separately from the rest and include a paragraph for removed-features.rst specifically documenting that -portrait and -rotate have gone away and why.

thanks
-- PMM

#101 lore raw
In reply to Peter Maydell

Hi,

Quoted 15 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Quoted 10 lines

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device hw/input: Remove tsc2005 touchscreen controller hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device hw/input: Remove lm832x device
hw/usb: Remove tusb6010 USB controller hw/usb: Remove MUSB USB host controller

Some of these devices are user-creatable and only rely on a bus (not a particular removed machine), so could potentially be used on other maintained machines which expose a similar bus. We don't have in-tree (tests/) examples, but I wonder if it is OK to remove them without first explicitly deprecating them in docs/about/deprecated.rst. I wouldn't surprise users when 9.2 is release. Maybe this isn't an issue, but I prefer to mention it now to be sure.

Regards,

Phil.

#102 lore raw
Quoted 30 lines · Philippe Mathieu-Daudé

Hi,

Quoted 15 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Quoted 10 lines

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device hw/input: Remove tsc2005 touchscreen controller hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device hw/input: Remove lm832x device
hw/usb: Remove tusb6010 USB controller hw/usb: Remove MUSB USB host controller

Quoted 3 lines

Some of these devices are user-creatable and only rely on a bus (not a particular removed machine), so could potentially be used on other maintained machines which expose a similar bus.

Which ones in particular? Almost all of them are sysbus. At least one of them that I looked at (lm832x) is an I2C device but it also requires the board to wire up a GPIO line and to call a specific C function to inject key events, so it's not actually generally usable.

Quoted 5 lines

We don't have in-tree (tests/) examples, but I wonder if it is OK to remove them without first explicitly deprecating them in docs/about/deprecated.rst. I wouldn't surprise users when 9.2 is release. Maybe this isn't an issue, but I prefer to mention it now to be sure.

I think this is unlikely to be a problem, but if you have a specific device you think might be a problem we can look at whether it seems likely (e.g. whether a web search turns up users using it in odd ways).

thanks
-- PMM

#103 lore raw

Hi Peter,

Quoted 47 lines · Peter Maydell
Quoted 30 lines · Philippe Mathieu-Daudé

Hi,

Quoted 15 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Quoted 10 lines

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device hw/input: Remove tsc2005 touchscreen controller hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device hw/input: Remove lm832x device
hw/usb: Remove tusb6010 USB controller hw/usb: Remove MUSB USB host controller

Quoted 3 lines

Some of these devices are user-creatable and only rely on a bus (not a particular removed machine), so could potentially be used on other maintained machines which expose a similar bus.

Which ones in particular? Almost all of them are sysbus. At least one of them that I looked at (lm832x) is an I2C device but it also requires the board to wire up a GPIO line and to call a specific C function to inject key events, so it's not actually generally usable.

Quoted 5 lines

We don't have in-tree (tests/) examples, but I wonder if it is OK to remove them without first explicitly deprecating them in docs/about/deprecated.rst. I wouldn't surprise users when 9.2 is release. Maybe this isn't an issue, but I prefer to mention it now to be sure.

Quoted 4 lines

I think this is unlikely to be a problem, but if you have a specific device you think might be a problem we can look at whether it seems likely (e.g. whether a web search turns up users using it in odd ways).

I don't have specific example and am happy to remove these legacy devices.

I'm wondering more generically about removing user-creatable & on-bus devices, when explicit use is removed (deprecated board removed), but we can still use them elsewhere. IMHO for clarity in the future we should list them in deprecated.rst along with some lines like "this device is explicitly used by the FOO machine which is being deprecated; if you want to keep them, provide test cases".

(To be clear, I'm not asking we do that for this devices set.)

Regards,

Phil.

#104 lore raw
Quoted 59 lines · Philippe Mathieu-Daudé

Hi Peter,

Quoted 47 lines · Peter Maydell
Quoted 30 lines · Philippe Mathieu-Daudé

Hi,

Quoted 15 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Quoted 10 lines

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device hw/input: Remove tsc2005 touchscreen controller hw/input: Remove tsc210x device
hw/rtc: Remove twl92230 device hw/input: Remove lm832x device
hw/usb: Remove tusb6010 USB controller hw/usb: Remove MUSB USB host controller

Quoted 3 lines

Some of these devices are user-creatable and only rely on a bus (not a particular removed machine), so could potentially be used on other maintained machines which expose a similar bus.

Which ones in particular? Almost all of them are sysbus. At least one of them that I looked at (lm832x) is an I2C device but it also requires the board to wire up a GPIO line and to call a specific C function to inject key events, so it's not actually generally usable.

Quoted 5 lines

We don't have in-tree (tests/) examples, but I wonder if it is OK to remove them without first explicitly deprecating them in docs/about/deprecated.rst. I wouldn't surprise users when 9.2 is release. Maybe this isn't an issue, but I prefer to mention it now to be sure.

Quoted 4 lines

I think this is unlikely to be a problem, but if you have a specific device you think might be a problem we can look at whether it seems likely (e.g. whether a web search turns up users using it in odd ways).

I don't have specific example and am happy to remove these legacy devices.

Quoted 6 lines

I'm wondering more generically about removing user-creatable & on-bus devices, when explicit use is removed (deprecated board removed), but we can still use them elsewhere. IMHO for clarity in the future we should list them in deprecated.rst along with some lines like "this device is explicitly used by the FOO machine which is being deprecated; if you want to keep them, provide test cases".

Yes, I think that would be a good idea going forward. I didn't realise in this case that some of the boards used devices that were i2c or whatever and at least nominally usable elsewhere.

-- PMM

#105 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 22 lines · Philippe Mathieu-Daudé

Hi,

Quoted 19 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
  akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
  * the OneNAND flash memory device
  * the PCMCIA subsystem
  * the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Peter Maydell (53):
   hw/input: Drop ADS7846 device
   hw/adc: Remove MAX111X device
   hw/gpio: Remove MAX7310 device

max7310 is a gpio controller which is at least somewhat compatible to pca953x. It is used on imx6qdl-sabreauto, and also instantiated by Linux with the INT3491 ACPI ID.

Is there real pressure to remove support for such devices ?

Thanks,
Guenter

Quoted 19 lines
Quoted 6 lines

   hw/input: Remove tsc2005 touchscreen controller hw/input: Remove tsc210x device
   hw/rtc: Remove twl92230 device hw/input: Remove lm832x device
   hw/usb: Remove tusb6010 USB controller hw/usb: Remove MUSB USB host controller

Some of these devices are user-creatable and only rely on a bus (not a particular removed machine), so could potentially be used on other maintained machines which expose a similar bus. We don't have in-tree (tests/) examples, but I wonder if it is OK to remove them without first explicitly deprecating them in docs/about/deprecated.rst. I wouldn't surprise users when 9.2 is release. Maybe this isn't an issue, but I prefer to mention it now to be sure.

Regards,

Phil.

#106 lore raw
Quoted 25 lines · Guenter Roeck
Quoted 22 lines · Philippe Mathieu-Daudé

Hi,

Quoted 19 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device

Quoted 5 lines

max7310 is a gpio controller which is at least somewhat compatible to pca953x. It is used on imx6qdl-sabreauto, and also instantiated by Linux with the INT3491 ACPI ID.

Is there real pressure to remove support for such devices ?

"git grep" says the only place we use our max7310 device is on the "spitz" board. The point of removing all those elderly Arm boards is that all this code is ancient and unmaintained. If we were using this device on the imx6 boards I would have kept it, but we aren't. I don't want to keep old, unmaintained, untested, dead code in the tree. If anybody does want to use it on some board in future they can always pull it out of the git history (and check whether it needs work to bring it up to modern standards, and write some tests for it...)

thanks
-- PMM

#107 lore raw
Quoted 21 lines · Peter Maydell
Quoted 20 lines · Guenter Roeck
Quoted 18 lines · Philippe Mathieu-Daudé

Hi,

Quoted 15 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device

max7310 is a gpio controller which is at least somewhat compatible to pca953x. It is used on imx6qdl-sabreauto, and also instantiated by Linux with the INT3491 ACPI ID.

Can you use the PCF8574 port expander instead? It uses more recent QEMU design model.

Quoted 15 lines
Quoted 1 line

Is there real pressure to remove support for such devices ?

"git grep" says the only place we use our max7310 device is on the "spitz" board. The point of removing all those elderly Arm boards is that all this code is ancient and unmaintained. If we were using this device on the imx6 boards I would have kept it, but we aren't. I don't want to keep old, unmaintained, untested, dead code in the tree. If anybody does want to use it on some board in future they can always pull it out of the git history (and check whether it needs work to bring it up to modern standards, and write some tests for it...)

thanks
-- PMM

#108 lore raw
Quoted 27 lines · Philippe Mathieu-Daudé
Quoted 26 lines · Peter Maydell
Quoted 25 lines · Guenter Roeck
Quoted 22 lines · Philippe Mathieu-Daudé

Hi,

Quoted 19 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

max7310 is a gpio controller which is at least somewhat compatible to pca953x. It is used on imx6qdl-sabreauto, and also instantiated by Linux with the INT3491 ACPI ID.

Can you use the PCF8574 port expander instead? It uses more recent QEMU design model.

Ok with me.

Guenter

#109 lore raw
In reply to Peter Maydell
Quoted 31 lines · Peter Maydell
Quoted 29 lines · Guenter Roeck
Quoted 22 lines · Philippe Mathieu-Daudé

Hi,

Quoted 19 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2

The series includes removal of some code which while not strictly specific to these machines was in practice used only by them:
* the OneNAND flash memory device
* the PCMCIA subsystem
* the MUSB USB2.0 OTG USB controller chip (hcd-musb)

thanks
-- PMM

Peter Maydell (53):
hw/input: Drop ADS7846 device
hw/adc: Remove MAX111X device
hw/gpio: Remove MAX7310 device

max7310 is a gpio controller which is at least somewhat compatible to pca953x. It is used on imx6qdl-sabreauto, and also instantiated by Linux with the INT3491 ACPI ID.

Quoted 8 lines
Quoted 1 line

Is there real pressure to remove support for such devices ?

"git grep" says the only place we use our max7310 device is on the "spitz" board. The point of removing all those elderly Arm boards is that all this code is ancient and unmaintained. If we were using this device on the imx6 boards I would have kept it, but we aren't. I don't want to keep old, unmaintained, untested, dead code in the tree.

I should clarify here that if anybody is actually using these devices with some other board model today, then that would be a good reason to keep them. The situations that I don't think justify retaining them are "in theory somebody could create this device on the command line with some other board" and "some future machine or SoC model that we don't yet have might want this device".

thanks
-- PMM

#110 lore raw
In reply to Peter Maydell
Quoted 8 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2
We get to drop over 30,000 lines of unmaintained code. So it's a big patchset but it's almost all deletions.

Hi -- ping for review on at least patches 06, 08, 18:

Quoted 3 lines

hw/display: Remove tc6393xb device
hw/arm: Remove 'cheetah' machine
hw/display: Remove pxa2xx_lcd.c

These are all straightforward removals of either deprecated machines or devices that are definitely exclusively used by those machines. That would be enough for me to get the bulk of the uncontroversial reviewed parts of this series upstream. I can then roll a much smaller v2 with the parts still under discussion.

Patches 22, 26 would also be helpful but they're a bit further down the patchstack so less critical:

Quoted 2 lines

hw/arm: Remove pxa2xx_pic
hw/misc: Remove cbus

thanks
-- PMM

#111 lore raw
Quoted 25 lines · Peter Maydell
Quoted 8 lines · Peter Maydell

This patchset removes the various Arm machines which we deprecated for the 9.0 release and are therefore allowed to remove for the 9.2 release:
akita, borzoi, cheetah, connex, mainstone, n800, n810, spitz, terrier, tosa, verdex, z2
We get to drop over 30,000 lines of unmaintained code. So it's a big patchset but it's almost all deletions.

Hi -- ping for review on at least patches 06, 08, 18:

Quoted 3 lines

hw/display: Remove tc6393xb device
hw/arm: Remove 'cheetah' machine
hw/display: Remove pxa2xx_lcd.c

These are all straightforward removals of either deprecated machines or devices that are definitely exclusively used by those machines. That would be enough for me to get the bulk of the uncontroversial reviewed parts of this series upstream. I can then roll a much smaller v2 with the parts still under discussion.

Quoted 5 lines

Patches 22, 26 would also be helpful but they're a bit further down the patchstack so less critical:

Quoted 2 lines

hw/arm: Remove pxa2xx_pic
hw/misc: Remove cbus

In the absence of further review I'm taking these patches anyway; they're only removals, so not complex stuff that benefits from close review, and this patchset is too big to be sat unapplied for long.

thanks
-- PMM