diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-23 16:37:48 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-09 22:34:51 +0200 |
commit | bedd8403f77f790e9876578885eab1200ba2f8d8 (patch) | |
tree | 72e49c7cc090d1beb11c0d3a5ec26bbe07f5f31f /common/exports.c | |
parent | 81813cb01f509adceb52fa3130dd65f30288416c (diff) | |
download | u-boot-imx-bedd8403f77f790e9876578885eab1200ba2f8d8.zip u-boot-imx-bedd8403f77f790e9876578885eab1200ba2f8d8.tar.gz u-boot-imx-bedd8403f77f790e9876578885eab1200ba2f8d8.tar.bz2 |
export SPI functions to standalone apps
While we're here, fix the broken #ifdef handling in _exports.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/exports.c')
-rw-r--r-- | common/exports.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/exports.c b/common/exports.c index ec4656b..b3b6e1f 100644 --- a/common/exports.c +++ b/common/exports.c @@ -38,4 +38,12 @@ void jumptable_init (void) gd->jt[XF_i2c_write] = (void *) i2c_write; gd->jt[XF_i2c_read] = (void *) i2c_read; #endif +#ifdef CONFIG_CMD_SPI + gd->jt[XF_spi_init] = (void *) spi_init; + gd->jt[XF_spi_setup_slave] = (void *) spi_setup_slave; + gd->jt[XF_spi_free_slave] = (void *) spi_free_slave; + gd->jt[XF_spi_claim_bus] = (void *) spi_claim_bus; + gd->jt[XF_spi_release_bus] = (void *) spi_release_bus; + gd->jt[XF_spi_xfer] = (void *) spi_xfer; +#endif } |