X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2F_exports.h;h=d89b65be661772ab84d0209a3a4b29f9efce58eb;hb=d0e6665a24c2c2a3d333db169fcd1261a0903146;hp=61dcaaf331c7f6375fcb9c6e75efb7a7cf36b60c;hpb=f5300ab241898c490231e59229e6312aa862ce52;p=u-boot diff --git a/include/_exports.h b/include/_exports.h index 61dcaaf331..d89b65be66 100644 --- a/include/_exports.h +++ b/include/_exports.h @@ -1,3 +1,7 @@ +/* + * You do not need to use #ifdef around functions that may not exist + * in the final configuration (such as i2c). + */ EXPORT_FUNC(get_version) EXPORT_FUNC(getc) EXPORT_FUNC(tstc) @@ -12,7 +16,16 @@ EXPORT_FUNC(udelay) EXPORT_FUNC(get_timer) EXPORT_FUNC(vprintf) EXPORT_FUNC(do_reset) -#if (CONFIG_COMMANDS & CFG_CMD_I2C) +EXPORT_FUNC(getenv) +EXPORT_FUNC(setenv) +EXPORT_FUNC(simple_strtoul) +EXPORT_FUNC(simple_strtol) +EXPORT_FUNC(strcmp) EXPORT_FUNC(i2c_write) EXPORT_FUNC(i2c_read) -#endif /* CFG_CMD_I2C */ +EXPORT_FUNC(spi_init) +EXPORT_FUNC(spi_setup_slave) +EXPORT_FUNC(spi_free_slave) +EXPORT_FUNC(spi_claim_bus) +EXPORT_FUNC(spi_release_bus) +EXPORT_FUNC(spi_xfer)