2018-05-07 06:58:06 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-02-27 07:59:21 +09:00
|
|
|
#
|
|
|
|
# Copyright (c) 2013 Google, Inc
|
|
|
|
|
2021-03-08 09:34:46 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += test-dm.o
|
2020-10-04 00:25:26 +09:00
|
|
|
|
|
|
|
# Tests for particular subsystems - when enabling driver model for a new
|
|
|
|
# subsystem you must add sandbox tests here.
|
2020-10-26 11:38:29 +09:00
|
|
|
ifeq ($(CONFIG_SPL_BUILD),y)
|
|
|
|
obj-$(CONFIG_SPL_OF_PLATDATA) += of_platdata.o
|
|
|
|
else
|
2015-05-21 04:27:29 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += bus.o
|
|
|
|
obj-$(CONFIG_UT_DM) += test-driver.o
|
|
|
|
obj-$(CONFIG_UT_DM) += test-fdt.o
|
|
|
|
obj-$(CONFIG_UT_DM) += test-uclass.o
|
2014-02-27 07:59:21 +09:00
|
|
|
|
2015-05-21 04:27:29 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += core.o
|
2021-01-12 21:55:23 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += read.o
|
2021-01-12 21:55:27 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += phys2bus.o
|
2014-06-12 14:29:50 +09:00
|
|
|
ifneq ($(CONFIG_SANDBOX),)
|
2020-04-09 07:57:34 +09:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpi.o
|
2020-07-08 04:11:42 +09:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpigen.o
|
2020-07-08 04:11:56 +09:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpi_dp.o
|
2018-12-11 02:37:47 +09:00
|
|
|
obj-$(CONFIG_SOUND) += audio.o
|
2016-03-13 23:22:36 +09:00
|
|
|
obj-$(CONFIG_BLK) += blk.o
|
2020-07-25 01:19:52 +09:00
|
|
|
obj-$(CONFIG_BUTTON) += button.o
|
2018-12-15 05:14:29 +09:00
|
|
|
obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
|
2019-06-24 22:50:50 +09:00
|
|
|
obj-$(CONFIG_CLK) += clk.o clk_ccf.o
|
2021-01-17 06:52:22 +09:00
|
|
|
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
2019-12-30 13:19:26 +09:00
|
|
|
obj-$(CONFIG_DEVRES) += devres.o
|
2019-10-07 22:29:05 +09:00
|
|
|
obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi_host.o
|
sandbox: Add a DSA sandbox driver and unit test
The DSA sandbox driver is used for unit testing the DSA class code.
It implements a simple 2 port switch plus 1 CPU port, and uses a
very simple tag to identify the ports.
The DSA sandbox device is connected via CPU port to a regular Ethernet
sandbox device, called 'dsa-test-eth, managed by the existing eth
sandbox driver. The 'dsa-test-eth' is not intended for testing the
eth class code however, but it is used to emulate traffic through the
'lan0' and 'lan1' front pannel switch ports. To achieve this the dsa
sandbox driver registers a tx handler for the 'dsa-test-eth' device.
The switch ports, labeled as 'lan0' and 'lan1', are also registered
as eth devices by the dsa class code this time. So pinging through
these switch ports is as easy as:
=> setenv ethact lan0
=> ping 1.2.3.5
Unit tests for the dsa class code were also added. The 'dsa_probe'
test exercises most API functions from dsa.h. The 'dsa' unit test
simply exercises ARP/ICMP traffic through the two switch ports,
including tag injection and extraction, with the help of the dsa
sandbox driver.
I took care to minimize the impact on the existing eth unit tests,
though some adjustments needed to be made with the addition of
extra eth interfaces used by the dsa unit tests. The additional eth
interfaces also require MAC addresses, these have been added to the
sandbox default environment.
Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-Id: <20210216224804.3355044-5-olteanv@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2021-03-14 21:14:57 +09:00
|
|
|
obj-$(CONFIG_DM_DSA) += dsa.o
|
2015-03-23 07:09:15 +09:00
|
|
|
obj-$(CONFIG_DM_ETH) += eth.o
|
2018-09-19 19:43:46 +09:00
|
|
|
obj-$(CONFIG_FIRMWARE) += firmware.o
|
2014-02-27 07:59:21 +09:00
|
|
|
obj-$(CONFIG_DM_GPIO) += gpio.o
|
2018-11-27 21:49:50 +09:00
|
|
|
obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock.o
|
2014-12-11 00:55:55 +09:00
|
|
|
obj-$(CONFIG_DM_I2C) += i2c.o
|
2018-12-11 02:37:47 +09:00
|
|
|
obj-$(CONFIG_SOUND) += i2s.o
|
2019-12-07 13:41:59 +09:00
|
|
|
obj-y += irq.o
|
2015-07-07 03:54:34 +09:00
|
|
|
obj-$(CONFIG_LED) += led.o
|
2016-05-17 08:41:37 +09:00
|
|
|
obj-$(CONFIG_DM_MAILBOX) += mailbox.o
|
2015-07-07 03:54:32 +09:00
|
|
|
obj-$(CONFIG_DM_MMC) += mmc.o
|
2020-10-16 19:46:36 +09:00
|
|
|
obj-$(CONFIG_CMD_MUX) += mux-cmd.o
|
2020-04-03 19:43:04 +09:00
|
|
|
obj-y += fdtdec.o
|
2020-10-04 00:25:26 +09:00
|
|
|
obj-$(CONFIG_UT_DM) += nop.o
|
2020-01-13 19:34:56 +09:00
|
|
|
obj-y += ofnode.o
|
|
|
|
obj-y += ofread.o
|
2021-01-22 05:57:14 +09:00
|
|
|
obj-y += of_extra.o
|
2018-09-27 16:19:31 +09:00
|
|
|
obj-$(CONFIG_OSD) += osd.o
|
2018-10-02 03:22:40 +09:00
|
|
|
obj-$(CONFIG_DM_VIDEO) += panel.o
|
2015-03-06 04:25:34 +09:00
|
|
|
obj-$(CONFIG_DM_PCI) += pci.o
|
2019-12-07 13:41:57 +09:00
|
|
|
obj-$(CONFIG_P2SB) += p2sb.o
|
2019-04-27 17:15:24 +09:00
|
|
|
obj-$(CONFIG_PCI_ENDPOINT) += pci_ep.o
|
2019-02-17 12:24:50 +09:00
|
|
|
obj-$(CONFIG_PCH) += pch.o
|
2017-04-24 18:51:28 +09:00
|
|
|
obj-$(CONFIG_PHY) += phy.o
|
2016-07-14 04:45:31 +09:00
|
|
|
obj-$(CONFIG_POWER_DOMAIN) += power-domain.o
|
2019-12-07 13:41:54 +09:00
|
|
|
obj-$(CONFIG_ACPI_PMC) += pmc.o
|
2017-04-17 12:01:11 +09:00
|
|
|
obj-$(CONFIG_DM_PWM) += pwm.o
|
2015-07-07 03:54:31 +09:00
|
|
|
obj-$(CONFIG_RAM) += ram.o
|
2015-07-07 03:54:39 +09:00
|
|
|
obj-y += regmap.o
|
2015-09-18 05:42:42 +09:00
|
|
|
obj-$(CONFIG_REMOTEPROC) += remoteproc.o
|
2016-06-18 00:43:59 +09:00
|
|
|
obj-$(CONFIG_DM_RESET) += reset.o
|
2016-05-13 03:03:35 +09:00
|
|
|
obj-$(CONFIG_SYSRESET) += sysreset.o
|
2015-04-21 03:37:31 +09:00
|
|
|
obj-$(CONFIG_DM_RTC) += rtc.o
|
2016-02-25 01:14:57 +09:00
|
|
|
obj-$(CONFIG_DM_SPI_FLASH) += sf.o
|
2018-07-02 08:58:00 +09:00
|
|
|
obj-$(CONFIG_SMEM) += smem.o
|
2016-02-25 01:14:57 +09:00
|
|
|
obj-$(CONFIG_DM_SPI) += spi.o
|
2015-07-07 03:54:35 +09:00
|
|
|
obj-y += syscon.o
|
2020-10-16 19:46:34 +09:00
|
|
|
obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
|
|
|
|
obj-$(CONFIG_MULTIPLEXER) += mux-emul.o
|
2015-03-26 03:23:05 +09:00
|
|
|
obj-$(CONFIG_DM_USB) += usb.o
|
2015-05-13 20:38:33 +09:00
|
|
|
obj-$(CONFIG_DM_PMIC) += pmic.o
|
|
|
|
obj-$(CONFIG_DM_REGULATOR) += regulator.o
|
2015-10-30 16:35:52 +09:00
|
|
|
obj-$(CONFIG_TIMER) += timer.o
|
2016-01-19 11:52:26 +09:00
|
|
|
obj-$(CONFIG_DM_VIDEO) += video.o
|
2015-10-27 21:08:07 +09:00
|
|
|
obj-$(CONFIG_ADC) += adc.o
|
2016-04-01 06:12:28 +09:00
|
|
|
obj-$(CONFIG_SPMI) += spmi.o
|
2017-04-18 04:00:21 +09:00
|
|
|
obj-$(CONFIG_WDT) += wdt.o
|
2018-08-09 21:51:20 +09:00
|
|
|
obj-$(CONFIG_AXI) += axi.o
|
2018-07-31 21:24:14 +09:00
|
|
|
obj-$(CONFIG_MISC) += misc.o
|
2018-08-03 22:07:41 +09:00
|
|
|
obj-$(CONFIG_DM_SERIAL) += serial.o
|
2018-08-06 17:23:44 +09:00
|
|
|
obj-$(CONFIG_CPU) += cpu.o
|
2020-07-16 13:39:58 +09:00
|
|
|
obj-$(CONFIG_SOC_DEVICE) += soc.o
|
2018-12-11 02:37:47 +09:00
|
|
|
obj-$(CONFIG_SOUND) += sound.o
|
2020-11-05 22:32:05 +09:00
|
|
|
obj-$(CONFIG_SYSINFO) += sysinfo.o
|
2018-09-25 23:40:19 +09:00
|
|
|
obj-$(CONFIG_TEE) += tee.o
|
2018-10-15 18:21:26 +09:00
|
|
|
obj-$(CONFIG_VIRTIO_SANDBOX) += virtio.o
|
2018-11-29 03:17:51 +09:00
|
|
|
obj-$(CONFIG_DMA) += dma.o
|
2019-06-04 01:12:28 +09:00
|
|
|
obj-$(CONFIG_DM_MDIO) += mdio.o
|
2019-07-12 16:13:53 +09:00
|
|
|
obj-$(CONFIG_DM_MDIO_MUX) += mdio_mux.o
|
2019-12-29 03:28:33 +09:00
|
|
|
obj-$(CONFIG_DM_RNG) += rng.o
|
2020-06-24 19:41:09 +09:00
|
|
|
obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
|
2020-06-24 19:41:12 +09:00
|
|
|
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
|
2020-06-24 19:41:14 +09:00
|
|
|
obj-$(CONFIG_RESET_SYSCON) += syscon-reset.o
|
2020-09-10 01:44:00 +09:00
|
|
|
obj-$(CONFIG_SCMI_FIRMWARE) += scmi.o
|
2020-09-15 00:01:57 +09:00
|
|
|
ifneq ($(CONFIG_PINMUX),)
|
|
|
|
obj-$(CONFIG_PINCONF) += pinmux.o
|
|
|
|
endif
|
2021-02-05 23:38:54 +09:00
|
|
|
ifneq ($(CONFIG_EFI_PARTITION),)
|
|
|
|
obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o
|
|
|
|
endif
|
2021-03-19 16:21:41 +09:00
|
|
|
obj-$(CONFIG_QFW) += qfw.o
|
2014-06-12 14:29:50 +09:00
|
|
|
endif
|
2020-10-04 00:25:26 +09:00
|
|
|
endif # !SPL
|