diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-07-05 09:39:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-06 12:55:52 -0400 |
commit | 7a4a207e74d6aeb63a38e9a3f0cfc40223d5c40e (patch) | |
tree | 21d440f3cf0e3dd2be9daedd345778073d78c2d0 /arch/blackfin/kernel | |
parent | 812ae98f0849fbceb32c6d21bcdda42b40264c82 (diff) |
Blackfin: BF51x/BF52x: support GPIO Hysteresis/Schmitt Trigger options
Newer parts have optional Hysteresis/Schmitt Trigger options to help with
dirty signals. So add some kconfig options for tuning this and enable it
by default for people.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index d37a397f43f5..ac71dc15cbdb 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c | |||
@@ -864,6 +864,13 @@ void __init setup_arch(char **cmdline_p) | |||
864 | bfin_write_EBIU_MODE(CONFIG_EBIU_MODEVAL); | 864 | bfin_write_EBIU_MODE(CONFIG_EBIU_MODEVAL); |
865 | bfin_write_EBIU_FCTL(CONFIG_EBIU_FCTLVAL); | 865 | bfin_write_EBIU_FCTL(CONFIG_EBIU_FCTLVAL); |
866 | #endif | 866 | #endif |
867 | #ifdef CONFIG_BFIN_HYSTERESIS_CONTROL | ||
868 | bfin_write_PORTF_HYSTERISIS(HYST_PORTF_0_15); | ||
869 | bfin_write_PORTG_HYSTERISIS(HYST_PORTG_0_15); | ||
870 | bfin_write_PORTH_HYSTERISIS(HYST_PORTH_0_15); | ||
871 | bfin_write_MISCPORT_HYSTERISIS((bfin_read_MISCPORT_HYSTERISIS() & | ||
872 | ~HYST_NONEGPIO_MASK) | HYST_NONEGPIO); | ||
873 | #endif | ||
867 | 874 | ||
868 | cclk = get_cclk(); | 875 | cclk = get_cclk(); |
869 | sclk = get_sclk(); | 876 | sclk = get_sclk(); |