1 Reply Latest reply on Jan 27, 2015 7:31 AM by Intel_Peter

    Remapping UART pins ?

    Cedric.P

      Hi all,

       

      I wonder if someone tried to remap one of the UART to use another pins.

      It would be useful if you want to redirect the internal UART used for Bluetooth to two pins on the external connector.

       

      (linux/arch/x86/platform/intel-mid/device_libs/platform_hsu.c)

       

      static struct

      hsu_port_pin_cfg hsu_port_pin_cfgs[][hsu_pid_max][hsu_port_max] = {

          [hsu_tng] = {

              [hsu_pid_def] = {

                  [hsu_port0] = {

                      .id = 0,

                      .name = HSU_BT_PORT,

                      .rx_gpio = 126,

                      .rx_alt = 1,

                      .tx_gpio = 127,

                      .tx_alt = 1,

                      .cts_gpio = 124,

                      .cts_alt = 1,

                      .rts_gpio = 125,

                      .rts_alt = 1,

                  },

                  [hsu_port1] = {

                      .id = 1,

                      .name = HSU_GPS_PORT,

                      .wake_gpio = 130,

                      .rx_gpio = 130,

                      .rx_alt = 1,

                      .tx_gpio = 131,

                      .tx_alt = 1,

                      .cts_gpio = 128,

                      .cts_alt = 1,

                      .rts_gpio = 129,

                      .rts_alt = 1,

                  },

                  [hsu_port2] = {

                      .id = 2,

                      .name = HSU_DEBUG_PORT,

                      .wake_gpio = 134,

                      .rx_gpio = 134,

                      .rx_alt = 1,

                      .cts_gpio = 132,

                      .cts_alt = 1,

                      .rts_gpio = 133,

                      .rts_alt = 1,

                  },

              },

          },

       

      };

        • 1. Re: Remapping UART pins ?
          Intel_Peter

          Hello Cedric.P,

           

          I've never seen anyone trying to do this before. You would like to use the UART that is connected to the Bluetooth antenna, but I'm not sure if there is a way to remap this UART to an external GPIO. However, I encourage you to try this and share your results with the community.

           

          Peter.