# SPDX-License-Identifier: GPL-2.0-or-later

ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX),y)

files_added::
ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX_FIRMWARE),y)
	$(CBFSTOOL) $(obj)/coreboot.rom write -r EC -f $(CONFIG_EC_51NB_NPCE985LA0DX_FW) --fill-upward
endif

show_notices::
ifeq ($(CONFIG_EC_51NB_NPCE985LA0DX_FIRMWARE),)
	printf "\n** WARNING **\n"
	printf "You haven't added the firmware blobs for 51NB EC.\n"
	printf "You may be unable to power on your laptop without these blobs.\n"
	printf "Please select the following option to add them:\n\n"
	printf "  Chipset --->\n"
	printf "    [*] Add firmware images for 51NB EC\n\n"
endif

ramstage-y += npce985la0dx.c

endif