Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quark_se is missing SPI_DRV_NAME symbol #10636

Closed
finikorg opened this issue Oct 16, 2018 · 10 comments
Closed

quark_se is missing SPI_DRV_NAME symbol #10636

finikorg opened this issue Oct 16, 2018 · 10 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@finikorg
Copy link
Collaborator

After commit 55caa7b SPI_1_NAME is empty for a board quark_se_c1000_devboard

@finikorg finikorg added the bug The issue is a bug, or the PR is fixing a bug label Oct 16, 2018
@finikorg
Copy link
Collaborator Author

@tbursztyka

@nashif nashif added the priority: medium Medium impact/importance bug label Oct 16, 2018
@MaureenHelm
Copy link
Member

The Kconfig symbol SPI_1_NAME is intentionally undefined for this board after this commit. The preprocessor macro CONFIG_SPI_1_NAME is still defined, but now it's generated from dts instead of Kconfig.

Excerpts from tests/drivers/spi/spi_loopback/build/zephyr/include/generated/generated_dts_board.h:

/* spi@b0001400 */
#define SNPS_DESIGNWARE_SPI_B0001400_BASE_ADDRESS       0xb0001400
#define SNPS_DESIGNWARE_SPI_B0001400_IRQ_0              3
#define SNPS_DESIGNWARE_SPI_B0001400_IRQ_0_PRIORITY     2
#define SNPS_DESIGNWARE_SPI_B0001400_IRQ_0_SENSE        32768
#define SNPS_DESIGNWARE_SPI_B0001400_LABEL              "SPI_1"                                
#define SNPS_DESIGNWARE_SPI_B0001400_SIZE               1024

#define CONFIG_SPI_1_BASE_ADDRESS       SNPS_DESIGNWARE_SPI_B0001400_BASE_ADDRESS
#define CONFIG_SPI_1_NAME               SNPS_DESIGNWARE_SPI_B0001400_LABEL                     
#define CONFIG_SPI_1_IRQ                SNPS_DESIGNWARE_SPI_B0001400_IRQ_0
#define CONFIG_SPI_1_IRQ_PRI            SNPS_DESIGNWARE_SPI_B0001400_IRQ_0_PRIORITY

@finikorg
Copy link
Collaborator Author

@MaureenHelm so should the functionality be the same as before? At the moment SPI_NAME is undefined (whatever it is called now)

@MaureenHelm
Copy link
Member

You can't change SPI_1_NAME value in menuconfig anymore, but you can use CONFIG_SPI_1_NAME just as you did before:

zephyr/drivers/spi/spi_dw.c

Lines 594 to 597 in 92080a0

DEVICE_AND_API_INIT(spi_dw_port_1, CONFIG_SPI_1_NAME, spi_dw_init,
&spi_dw_data_port_1, &spi_dw_config_1,
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY,
&dw_spi_api);

Is there a particular sample or test application that's broken?

@finikorg
Copy link
Collaborator Author

finikorg commented Oct 18, 2018

samples/net/wpanusb is not working anymore

before the change boards/x86/quark_se_c1000_devboard/Kconfig.defconfig was used to assign

config IEEE802154_CC2520_SPI_DRV_NAME
	default SPI_1_NAME

@MaureenHelm
Copy link
Member

Ok, I see the problem now. We need to add dts bindings for the cc2520 like we did for the mcr20a.

@galak
Copy link
Collaborator

galak commented Oct 29, 2018

There are a few cleanups like this we need to make, will open another issue to catch them all.

@MaureenHelm
Copy link
Member

Looks like this was fixed in #11428. @finikorg can you confirm?

@finikorg
Copy link
Collaborator Author

Looks like this was fixed in #11428. @finikorg can you confirm?

@MaureenHelm Works now, thanks!

@MaureenHelm
Copy link
Member

Fixed by #11428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants