diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-12 13:24:54 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-12 13:24:54 (GMT) |
commit | 6b8be3e58e9cc1badb7a709b0f3568d4d8eca4b7 (patch) | |
tree | a7468c1a17feaf28d8ef3443fe5b6f544ecddb72 /drivers | |
parent | 7238ada313057a85409485b8ee21515dc10c07a5 (diff) | |
parent | b476b032562aae5a09985f7e22232a5ee7042746 (diff) | |
download | u-boot-6b8be3e58e9cc1badb7a709b0f3568d4d8eca4b7.tar.xz |
Merge branch 'master' of /home/wd/git/u-boot/custodians
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/mc13783-rtc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/rtc/mc13783-rtc.c b/drivers/rtc/mc13783-rtc.c index 6ea9137..05db2f1 100644 --- a/drivers/rtc/mc13783-rtc.c +++ b/drivers/rtc/mc13783-rtc.c @@ -34,7 +34,8 @@ int rtc_get(struct rtc_time *rtc) if (!slave) { /* FIXME: Verify the max SCK rate */ - slave = spi_setup_slave(1, 0, 1000000, + slave = spi_setup_slave(CONFIG_MC13783_SPI_BUS, + CONFIG_MC13783_SPI_CS, 1000000, SPI_MODE_2 | SPI_CS_HIGH); if (!slave) return -1; @@ -83,7 +84,8 @@ int rtc_set(struct rtc_time *rtc) if (!slave) { /* FIXME: Verify the max SCK rate */ - slave = spi_setup_slave(1, 0, 1000000, + slave = spi_setup_slave(CONFIG_MC13783_SPI_BUS, + CONFIG_MC13783_SPI_CS, 1000000, SPI_MODE_2 | SPI_CS_HIGH); if (!slave) return -1; |