2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-02-26 22:59:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2013 Google, Inc
|
|
|
|
|
2021-03-08 00:34:46 +00:00
|
|
|
obj-$(CONFIG_UT_DM) += test-dm.o
|
2020-10-03 15:25:26 +00:00
|
|
|
|
|
|
|
# Tests for particular subsystems - when enabling driver model for a new
|
|
|
|
# subsystem you must add sandbox tests here.
|
2020-10-26 02:38:29 +00:00
|
|
|
ifeq ($(CONFIG_SPL_BUILD),y)
|
|
|
|
obj-$(CONFIG_SPL_OF_PLATDATA) += of_platdata.o
|
|
|
|
else
|
2015-05-20 19:27:29 +00: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-26 22:59:21 +00:00
|
|
|
|
2015-05-20 19:27:29 +00:00
|
|
|
obj-$(CONFIG_UT_DM) += core.o
|
2021-01-12 12:55:23 +00:00
|
|
|
obj-$(CONFIG_UT_DM) += read.o
|
2021-01-12 12:55:27 +00:00
|
|
|
obj-$(CONFIG_UT_DM) += phys2bus.o
|
2014-06-12 05:29:50 +00:00
|
|
|
ifneq ($(CONFIG_SANDBOX),)
|
2020-04-08 22:57:34 +00:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpi.o
|
2020-07-07 19:11:42 +00:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpigen.o
|
2020-07-07 19:11:56 +00:00
|
|
|
obj-$(CONFIG_ACPIGEN) += acpi_dp.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_ADC) += adc.o
|
2018-12-10 17:37:47 +00:00
|
|
|
obj-$(CONFIG_SOUND) += audio.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_AXI) += axi.o
|
2016-03-13 14:22:36 +00:00
|
|
|
obj-$(CONFIG_BLK) += blk.o
|
2020-07-24 16:19:52 +00:00
|
|
|
obj-$(CONFIG_BUTTON) += button.o
|
2018-12-14 20:14:29 +00:00
|
|
|
obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
|
2021-06-10 13:56:44 +00:00
|
|
|
obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode.o
|
2019-06-24 13:50:50 +00:00
|
|
|
obj-$(CONFIG_CLK) += clk.o clk_ccf.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_CPU) += cpu.o
|
2021-01-16 21:52:22 +00:00
|
|
|
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
2021-05-19 16:33:31 +00:00
|
|
|
obj-$(CONFIG_PWM_CROS_EC) += cros_ec_pwm.o
|
2019-12-30 04:19:26 +00:00
|
|
|
obj-$(CONFIG_DEVRES) += devres.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_DMA) += dma.o
|
2019-10-07 13:29:05 +00: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 12:14:57 +00:00
|
|
|
obj-$(CONFIG_DM_DSA) += dsa.o
|
2021-07-29 16:47:19 +00:00
|
|
|
obj-$(CONFIG_ECDSA_VERIFY) += ecdsa.o
|
2015-03-22 22:09:15 +00:00
|
|
|
obj-$(CONFIG_DM_ETH) += eth.o
|
2021-04-20 15:03:12 +00:00
|
|
|
ifneq ($(CONFIG_EFI_PARTITION),)
|
|
|
|
obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o
|
|
|
|
endif
|
2018-09-19 10:43:46 +00:00
|
|
|
obj-$(CONFIG_FIRMWARE) += firmware.o
|
2014-02-26 22:59:21 +00:00
|
|
|
obj-$(CONFIG_DM_GPIO) += gpio.o
|
2018-11-27 12:49:50 +00:00
|
|
|
obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock.o
|
2014-12-10 15:55:55 +00:00
|
|
|
obj-$(CONFIG_DM_I2C) += i2c.o
|
2018-12-10 17:37:47 +00:00
|
|
|
obj-$(CONFIG_SOUND) += i2s.o
|
2019-12-07 04:41:59 +00:00
|
|
|
obj-y += irq.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
|
2021-10-23 14:58:02 +00:00
|
|
|
obj-$(CONFIG_IOMMU) += iommu.o
|
2015-07-06 18:54:34 +00:00
|
|
|
obj-$(CONFIG_LED) += led.o
|
2016-05-16 23:41:37 +00:00
|
|
|
obj-$(CONFIG_DM_MAILBOX) += mailbox.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_DM_MDIO) += mdio.o
|
|
|
|
obj-$(CONFIG_DM_MDIO_MUX) += mdio_mux.o
|
|
|
|
obj-$(CONFIG_MISC) += misc.o
|
2015-07-06 18:54:32 +00:00
|
|
|
obj-$(CONFIG_DM_MMC) += mmc.o
|
2020-10-16 10:46:36 +00:00
|
|
|
obj-$(CONFIG_CMD_MUX) += mux-cmd.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_MULTIPLEXER) += mux-emul.o
|
|
|
|
obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
|
2020-04-03 10:43:04 +00:00
|
|
|
obj-y += fdtdec.o
|
2020-10-03 15:25:26 +00:00
|
|
|
obj-$(CONFIG_UT_DM) += nop.o
|
2020-01-13 10:34:56 +00:00
|
|
|
obj-y += ofnode.o
|
|
|
|
obj-y += ofread.o
|
2021-01-21 20:57:14 +00:00
|
|
|
obj-y += of_extra.o
|
2018-09-27 07:19:31 +00:00
|
|
|
obj-$(CONFIG_OSD) += osd.o
|
2018-10-01 18:22:40 +00:00
|
|
|
obj-$(CONFIG_DM_VIDEO) += panel.o
|
2021-04-12 22:53:07 +00:00
|
|
|
obj-$(CONFIG_EFI_PARTITION) += part.o
|
2021-08-02 00:54:44 +00:00
|
|
|
obj-$(CONFIG_PCI) += pci.o
|
2019-12-07 04:41:57 +00:00
|
|
|
obj-$(CONFIG_P2SB) += p2sb.o
|
2019-04-27 08:15:24 +00:00
|
|
|
obj-$(CONFIG_PCI_ENDPOINT) += pci_ep.o
|
2019-02-17 03:24:50 +00:00
|
|
|
obj-$(CONFIG_PCH) += pch.o
|
2017-04-24 09:51:28 +00:00
|
|
|
obj-$(CONFIG_PHY) += phy.o
|
2021-04-20 15:03:12 +00:00
|
|
|
ifneq ($(CONFIG_PINMUX),)
|
|
|
|
obj-$(CONFIG_PINCONF) += pinmux.o
|
|
|
|
endif
|
2016-07-13 19:45:31 +00:00
|
|
|
obj-$(CONFIG_POWER_DOMAIN) += power-domain.o
|
2019-12-07 04:41:54 +00:00
|
|
|
obj-$(CONFIG_ACPI_PMC) += pmc.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_DM_PMIC) += pmic.o
|
2017-04-17 03:01:11 +00:00
|
|
|
obj-$(CONFIG_DM_PWM) += pwm.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_QFW) += qfw.o
|
2015-07-06 18:54:31 +00:00
|
|
|
obj-$(CONFIG_RAM) += ram.o
|
2015-07-06 18:54:39 +00:00
|
|
|
obj-y += regmap.o
|
2015-09-17 20:42:42 +00:00
|
|
|
obj-$(CONFIG_REMOTEPROC) += remoteproc.o
|
2016-06-17 15:43:59 +00:00
|
|
|
obj-$(CONFIG_DM_RESET) += reset.o
|
2016-05-12 18:03:35 +00:00
|
|
|
obj-$(CONFIG_SYSRESET) += sysreset.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_DM_REGULATOR) += regulator.o
|
|
|
|
obj-$(CONFIG_DM_RNG) += rng.o
|
2015-04-20 18:37:31 +00:00
|
|
|
obj-$(CONFIG_DM_RTC) += rtc.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_SCMI_FIRMWARE) += scmi.o
|
|
|
|
obj-$(CONFIG_DM_SERIAL) += serial.o
|
2016-02-24 16:14:57 +00:00
|
|
|
obj-$(CONFIG_DM_SPI_FLASH) += sf.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_SIMPLE_BUS) += simple-bus.o
|
|
|
|
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
|
2018-07-01 23:58:00 +00:00
|
|
|
obj-$(CONFIG_SMEM) += smem.o
|
2020-07-16 04:39:58 +00:00
|
|
|
obj-$(CONFIG_SOC_DEVICE) += soc.o
|
2018-12-10 17:37:47 +00:00
|
|
|
obj-$(CONFIG_SOUND) += sound.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_DM_SPI) += spi.o
|
|
|
|
obj-$(CONFIG_SPMI) += spmi.o
|
|
|
|
obj-y += syscon.o
|
|
|
|
obj-$(CONFIG_RESET_SYSCON) += syscon-reset.o
|
2020-11-05 13:32:05 +00:00
|
|
|
obj-$(CONFIG_SYSINFO) += sysinfo.o
|
2021-04-20 14:50:58 +00:00
|
|
|
obj-$(CONFIG_SYSINFO_GPIO) += sysinfo-gpio.o
|
2018-09-25 14:40:19 +00:00
|
|
|
obj-$(CONFIG_TEE) += tee.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_TIMER) += timer.o
|
|
|
|
obj-$(CONFIG_DM_USB) += usb.o
|
|
|
|
obj-$(CONFIG_DM_VIDEO) += video.o
|
2018-10-15 09:21:26 +00:00
|
|
|
obj-$(CONFIG_VIRTIO_SANDBOX) += virtio.o
|
2021-04-20 15:03:12 +00:00
|
|
|
obj-$(CONFIG_WDT) += wdt.o
|
2014-06-12 05:29:50 +00:00
|
|
|
endif
|
2020-10-03 15:25:26 +00:00
|
|
|
endif # !SPL
|