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
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
@@ -54,7 +54,7 @@
#define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#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
* (see arch/z80/src/ez80/ez80f91.h
*/
/* CS0: 0x000000 256Kb of on-chip flash */
#define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */
#define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */
@@ -116,7 +117,7 @@
#define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
+1 -1
View File
@@ -71,7 +71,7 @@
*/
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
+1 -1
View File
@@ -182,7 +182,7 @@ void ez80_board_initialize(void)
* Description:
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_late_initialize(). board_late_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
@@ -78,7 +78,9 @@ int ez80_mmcsd_initialize(void)
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);
if (ret < 0)
+2 -2
View File
@@ -75,7 +75,7 @@
extern bool g_ebpresent; /* True: I/O Expansion board is present */
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
@@ -103,7 +103,7 @@ extern "C"
int ez80_bringup(void);
/*****************************************************************************
/****************************************************************************
* Name: ez80_mmcsd_initialize
*
* Description:
+2 -1
View File
@@ -28,6 +28,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* The Z180 is driven by a 16MHz crystal. The system clock
* is equal to the crystal frequency.
*/
@@ -36,7 +37,7 @@
#define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#if defined(__cplusplus)
+1 -1
View File
@@ -42,7 +42,7 @@
#define LED_PANIC 7
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#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, 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(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(0x00, PGCTL); /* OUTPUT */
@@ -214,7 +217,7 @@ void board_autoled_on(int led)
{
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)
{
board_autoled_on(led-1);
board_autoled_on(led - 1);
}
}
#endif /* CONFIG_ARCH_LEDS */
+1 -1
View File
@@ -42,7 +42,7 @@
#define LED_PANIC 7
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
+1 -1
View File
@@ -30,7 +30,7 @@
****************************************************************************/
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)