Initial changes to remove xud dependancies when compiling with NO_USB=1

This commit is contained in:
Ed Clarke
2017-06-29 09:48:59 +01:00
parent c351c901bf
commit 721ee98ea4
15 changed files with 38 additions and 18 deletions

View File

@@ -2,11 +2,9 @@
#include <platform.h>
#include <xs1_su.h>
#include "xud.h"
#define XS1_SU_PERIPH_USB_ID 0x1
#if (XUD_SERIES_SUPPORT == XUD_X200_SERIES)
#if (XUD_SERIES_SUPPORT == 4)
#include "xs2_su_registers.h"
#define XS2_SU_PERIPH_USB_ID 0x1
#define PLL_MASK 0x7FFFFFFF
@@ -21,7 +19,7 @@ extern tileref tile[];
void device_reboot_aux(void)
{
#if (XUD_SERIES_SUPPORT == XUD_U_SERIES)
#if (XUD_SERIES_SUPPORT == 1)
/* Disconnect from bus */
unsigned data[] = {4};
write_periph_32(usb_tile, XS1_SU_PERIPH_USB_ID, XS1_SU_PER_UIFM_FUNC_CONTROL_NUM, 1, data);
@@ -35,7 +33,7 @@ void device_reboot_aux(void)
unsigned int tileId;
unsigned int tileArrayLength;
#if (XUD_SERIES_SUPPORT == XUD_X200_SERIES)
#if (XUD_SERIES_SUPPORT == 4)
/* Disconnect from bus */
unsigned data[] = {4};
write_periph_32(usb_tile, XS2_SU_PERIPH_USB_ID, XS1_GLX_PER_UIFM_FUNC_CONTROL_NUM, 1, data);