Drop three-wire serial (TWS) support
[oweals/u-boot.git] / include / configs / inka4x0.h
index 5ee9c2bcb48cfec61733c23ba5645aaa5bac5838..3bdab3310bc3634d78aa5ced079da13fc855c290 100644 (file)
  */
 #define CONFIG_SYS_GPS_PORT_CONFIG     0x01501444
 
-/*
- * RTC configuration
- */
-#define CONFIG_RTC_RTC4543     1       /* use external RTC */
-
-/*
- * Software (bit-bang) three wire serial configuration
- *
- * Note that we need the ifdefs because otherwise compilation of
- * mkimage.c fails.
- */
-#define CONFIG_SOFT_TWS                1
-
-#ifdef TWS_IMPLEMENTATION
-#include <mpc5xxx.h>
-#include <asm/io.h>
-
-#define TWS_CE         MPC5XXX_GPIO_WKUP_PSC1_4 /* GPIO_WKUP_0 */
-#define TWS_WR         MPC5XXX_GPIO_WKUP_PSC2_4 /* GPIO_WKUP_1 */
-#define TWS_DATA       MPC5XXX_GPIO_SINT_PSC3_4 /* GPIO_SINT_0 */
-#define TWS_CLK                MPC5XXX_GPIO_SINT_PSC3_5 /* GPIO_SINT_1 */
-
-static inline void tws_ce(unsigned bit)
-{
-       struct mpc5xxx_wu_gpio *wu_gpio =
-               (struct mpc5xxx_wu_gpio *)MPC5XXX_WU_GPIO;
-       if (bit)
-               setbits_8(&wu_gpio->dvo, TWS_CE);
-       else
-               clrbits_8(&wu_gpio->dvo, TWS_CE);
-}
-
-static inline void tws_wr(unsigned bit)
-{
-       struct mpc5xxx_wu_gpio *wu_gpio =
-               (struct mpc5xxx_wu_gpio *)MPC5XXX_WU_GPIO;
-       if (bit)
-               setbits_8(&wu_gpio->dvo, TWS_WR);
-       else
-               clrbits_8(&wu_gpio->dvo, TWS_WR);
-}
-
-static inline void tws_clk(unsigned bit)
-{
-       struct mpc5xxx_gpio *gpio =
-               (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
-       if (bit)
-               setbits_8(&gpio->sint_dvo, TWS_CLK);
-       else
-               clrbits_8(&gpio->sint_dvo, TWS_CLK);
-}
-
-static inline void tws_data(unsigned bit)
-{
-       struct mpc5xxx_gpio *gpio =
-               (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
-       if (bit)
-               setbits_8(&gpio->sint_dvo, TWS_DATA);
-       else
-               clrbits_8(&gpio->sint_dvo, TWS_DATA);
-}
-
-static inline unsigned tws_data_read(void)
-{
-       struct mpc5xxx_gpio *gpio =
-                       (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
-       return !!(in_8(&gpio->sint_ival) & TWS_DATA);
-}
-
-static inline void tws_data_config_output(unsigned output)
-{
-       struct mpc5xxx_gpio *gpio =
-               (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
-       if (output)
-               setbits_8(&gpio->sint_ddr, TWS_DATA);
-       else
-               clrbits_8(&gpio->sint_ddr, TWS_DATA);
-}
-#endif /* TWS_IMPLEMENTATION */
-
 /*
  * Miscellaneous configurable options
  */