diff options
author | Tetsuyuki Kobayashi <koba@kmckk.co.jp> | 2012-09-13 19:08:03 +0000 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2012-10-16 05:47:20 +0200 |
commit | 937b6862def9f2545f7f804441919b767be105b9 (patch) | |
tree | 9655f51f3939fcc26072e7629a1db1bf29be669e /board/kmc | |
parent | 0e5fb33cf7fa7352e9ecf88a834dd5e178f0e80f (diff) | |
download | u-boot-imx-937b6862def9f2545f7f804441919b767be105b9.zip u-boot-imx-937b6862def9f2545f7f804441919b767be105b9.tar.gz u-boot-imx-937b6862def9f2545f7f804441919b767be105b9.tar.bz2 |
arm: rmobile: kzm9g: enable I2C1
Supply clock to I2C1 and release resetting.
Acked-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Diffstat (limited to 'board/kmc')
-rw-r--r-- | board/kmc/kzm9g/kzm9g.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 525c97a..4bfecb6 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -43,6 +43,7 @@ DECLARE_GLOBAL_DATA_PTR; #define SMSTPCR1_CMT0 (1 << 24) #define SMSTPCR1_I2C0 (1 << 16) #define SMSTPCR3_USB (1 << 22) +#define SMSTPCR3_I2C1 (1 << 23) #define PORT32CR (0xE6051020) #define PORT33CR (0xE6051021) @@ -287,8 +288,8 @@ int board_early_init_f(void) clrbits_le32(&cpg->smstpcr1, (SMSTPCR1_CMT0|SMSTPCR1_I2C0)); clrbits_le32(&cpg_srcr->srcr1, (SMSTPCR1_CMT0|SMSTPCR1_I2C0)); - clrbits_le32(&cpg->smstpcr3, SMSTPCR3_USB); - clrbits_le32(&cpg_srcr->srcr3, SMSTPCR3_USB); + clrbits_le32(&cpg->smstpcr3, (SMSTPCR3_USB|SMSTPCR3_I2C1)); + clrbits_le32(&cpg_srcr->srcr3, (SMSTPCR3_USB|SMSTPCR3_I2C1)); writel(VCLKCR1_D, &cpg->vclkcr1); /* Setup SCIF4 / workaround */ |