Added S32K1XX EEEPROM init code

This commit is contained in:
Peter van der Perk 2020-06-15 15:22:15 +02:00 committed by Alan Carvalho de Assis
parent efbe4c89e2
commit 662bd5e49a
6 changed files with 54 additions and 0 deletions

View File

@ -57,6 +57,10 @@
# include "s32k1xx_lpi2c.h"
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "rddrone-uavcan144.h"
/****************************************************************************
@ -154,5 +158,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}

View File

@ -57,6 +57,10 @@
# include "s32k1xx_lpi2c.h"
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "rddrone-uavcan146.h"
/****************************************************************************
@ -151,5 +155,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}

View File

@ -51,6 +51,10 @@
# include <nuttx/leds/userled.h>
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "s32k118evb.h"
/****************************************************************************
@ -116,5 +120,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}

View File

@ -56,6 +56,10 @@
# include "s32k1xx_lpi2c.h"
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "s32k144evb.h"
/****************************************************************************
@ -148,5 +152,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}

View File

@ -56,6 +56,10 @@
# include "s32k1xx_lpi2c.h"
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "s32k146evb.h"
/****************************************************************************
@ -148,5 +152,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}

View File

@ -51,6 +51,10 @@
# include <nuttx/leds/userled.h>
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
# include "s32k1xx_eeeprom.h"
#endif
#include "s32k148evb.h"
/****************************************************************************
@ -105,5 +109,10 @@ int s32k1xx_bringup(void)
}
#endif
#ifdef CONFIG_S32K1XX_EEEPROM
/* Register EEEPROM block device */
s32k1xx_eeeprom_register(0, 4096);
#endif
return ret;
}