summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2015-11-17 10:53:30 +0100
committerTom Rini <trini@konsulko.com>2015-11-18 15:28:55 -0500
commit8b2dd8a9b5312569dd27415b38e0c42fbfc74515 (patch)
tree100f8af370fbba91eb88af053522071a4ac15cd4 /board/keymile
parentfc882a310d8c22bf7c366336553acab4385b1284 (diff)
km/powerpc82xx: remove unused function
commit 0a4f88b98 removed the usage of our setports function, but the function itself were not removed. So toss it it's dead code. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/km82xx/km82xx.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c
index 70f816be7e..01a3c2009e 100644
--- a/board/keymile/km82xx/km82xx.c
+++ b/board/keymile/km82xx/km82xx.c
@@ -447,22 +447,6 @@ int get_scl(void)
return get_pin(SCL_MASK, 3);
}
-#if defined(CONFIG_HARD_I2C)
-static void setports(int gpio)
-{
- ioport_t *iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 3);
-
- if (gpio) {
- clrbits_be32(&iop->ppar, (SDA_MASK | SCL_MASK));
- clrbits_be32(&iop->podr, (SDA_MASK | SCL_MASK));
- } else {
- setbits_be32(&iop->ppar, (SDA_MASK | SCL_MASK));
- clrbits_be32(&iop->pdir, (SDA_MASK | SCL_MASK));
- setbits_be32(&iop->podr, (SDA_MASK | SCL_MASK));
- }
-}
-#endif
-
void ft_board_setup(void *blob, bd_t *bd)
{
ft_cpu_setup(blob, bd);