summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-sunxi/rsb.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-26 16:59:12 +0100
committerHans de Goede <hdegoede@redhat.com>2015-02-02 13:55:14 +0100
commit37d46dd3c4f3617b88a5797aab3600d3a4f32bd5 (patch)
tree79aab56d1f8695dd58eddd3f2945192e52371c1f /arch/arm/include/asm/arch-sunxi/rsb.h
parentd35488c7359ac5b6e20d9fe1895360aa7f3122f2 (diff)
downloadblackbird-obmc-uboot-37d46dd3c4f3617b88a5797aab3600d3a4f32bd5.tar.gz
blackbird-obmc-uboot-37d46dd3c4f3617b88a5797aab3600d3a4f32bd5.zip
sunxi: rsb: Move rsb_set_device_mode() call to rsb_init()
It turns out that the device_mode_data is rsb specific, rather then slave specific, so integrate the rsb_set_device_mode() call into rsb_init(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/rsb.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/rsb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/rsb.h b/arch/arm/include/asm/arch-sunxi/rsb.h
index 95a595ab8d..a8934667c4 100644
--- a/arch/arm/include/asm/arch-sunxi/rsb.h
+++ b/arch/arm/include/asm/arch-sunxi/rsb.h
@@ -37,6 +37,7 @@ struct sunxi_rsb_reg {
#define RSB_STAT_TERR_INT (1 << 1)
#define RSB_STAT_LBSY_INT (1 << 2)
+#define RSB_DMCR_DEVICE_MODE_DATA 0x7c3e00
#define RSB_DMCR_DEVICE_MODE_START (1 << 31)
#define RSB_CMD_BYTE_WRITE 0x4e
@@ -46,8 +47,7 @@ struct sunxi_rsb_reg {
#define RSB_DEVADDR_RUNTIME_ADDR(x) ((x) << 16)
#define RSB_DEVADDR_DEVICE_ADDR(x) ((x) << 0)
-void rsb_init(void);
-int rsb_set_device_mode(u32 device_mode_data);
+int rsb_init(void);
int rsb_set_device_address(u16 device_addr, u16 runtime_addr);
int rsb_write(const u16 runtime_device_addr, const u8 reg_addr, u8 data);
int rsb_read(const u16 runtime_device_addr, const u8 reg_addr, u8 *data);
OpenPOWER on IntegriCloud