boards: z80: nxstyle fixes

Fixes to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2021-03-16 22:06:01 +01:00
committed by Xiang Xiao
parent 9dd7f90e0e
commit 9d708917bb
13 changed files with 486 additions and 112 deletions
@@ -46,7 +46,7 @@
#define LED_PANIC 7 #define LED_PANIC 7
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
@@ -54,7 +54,7 @@
#define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */ #define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
File diff suppressed because it is too large Load Diff
@@ -36,6 +36,7 @@
/* Memory map. Board-specific extensions to the basic ez80f91 memory map /* Memory map. Board-specific extensions to the basic ez80f91 memory map
* (see arch/z80/src/ez80/ez80f91.h * (see arch/z80/src/ez80/ez80f91.h
*/ */
/* CS0: 0x000000 256Kb of on-chip flash */ /* CS0: 0x000000 256Kb of on-chip flash */
#define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */ #define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */
#define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */ #define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */
@@ -116,7 +117,7 @@
#define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */ #define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+1 -1
View File
@@ -71,7 +71,7 @@
*/ */
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
@@ -78,7 +78,9 @@ int ez80_mmcsd_initialize(void)
return -ENODEV; return -ENODEV;
} }
/* Register the MMC/SD block driver for slot 0 with device minor number 0. */ /* Register the MMC/SD block driver for slot 0 with device minor
* number 0.
*/
ret = mmcsd_spislotinitialize(0, 0, spi); ret = mmcsd_spislotinitialize(0, 0, spi);
if (ret < 0) if (ret < 0)
+2 -2
View File
@@ -75,7 +75,7 @@
extern bool g_ebpresent; /* True: I/O Expansion board is present */ extern bool g_ebpresent; /* True: I/O Expansion board is present */
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
@@ -103,7 +103,7 @@ extern "C"
int ez80_bringup(void); int ez80_bringup(void);
/***************************************************************************** /****************************************************************************
* Name: ez80_mmcsd_initialize * Name: ez80_mmcsd_initialize
* *
* Description: * Description:
+2 -1
View File
@@ -28,6 +28,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* The Z180 is driven by a 16MHz crystal. The system clock /* The Z180 is driven by a 16MHz crystal. The system clock
* is equal to the crystal frequency. * is equal to the crystal frequency.
*/ */
@@ -36,7 +37,7 @@
#define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */ #define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#if defined(__cplusplus) #if defined(__cplusplus)
+1 -1
View File
@@ -42,7 +42,7 @@
#define LED_PANIC 7 #define LED_PANIC 7
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+7 -4
View File
@@ -196,10 +196,13 @@ void board_autoled_initialize(void)
putreg8(0x00, PEOC); /* PE Out Ctrl = push-pull */ putreg8(0x00, PEOC); /* PE Out Ctrl = push-pull */
putreg8(0x00, PGOC); /* PG Out Ctrl = push-pull */ putreg8(0x00, PGOC); /* PG Out Ctrl = push-pull */
/*putreg8(0x00, PEDD); * PA Data Dir = output */ /* putreg8(0x00, PEDD); * PA Data Dir = output */
putreg8(0x01, PEADDR); /* PA Data Dir = output */ putreg8(0x01, PEADDR); /* PA Data Dir = output */
putreg8(0x00, PECTL); /* OUTPUT */ putreg8(0x00, PECTL); /* OUTPUT */
/*putreg8(0x00, PGDD); * PA Data Dir = output */
/* putreg8(0x00, PGDD); * PA Data Dir = output */
putreg8(0x01, PGADDR); /* PA Data Dir = output */ putreg8(0x01, PGADDR); /* PA Data Dir = output */
putreg8(0x00, PGCTL); /* OUTPUT */ putreg8(0x00, PGCTL); /* OUTPUT */
@@ -214,7 +217,7 @@ void board_autoled_on(int led)
{ {
if ((unsigned)led <= 8) if ((unsigned)led <= 8)
{ {
z8_putarray(&g_ledarray[led+1][0]); z8_putarray(&g_ledarray[led + 1][0]);
} }
} }
@@ -226,7 +229,7 @@ void board_autoled_off(int led)
{ {
if (led >= 1) if (led >= 1)
{ {
board_autoled_on(led-1); board_autoled_on(led - 1);
} }
} }
#endif /* CONFIG_ARCH_LEDS */ #endif /* CONFIG_ARCH_LEDS */
+1 -1
View File
@@ -42,7 +42,7 @@
#define LED_PANIC 7 #define LED_PANIC 7
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+1 -1
View File
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
#if defined(__cplusplus) #if defined(__cplusplus)