From c4d03cf1a996904ec2ea42aa929f58e3fa33b934 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Mon, 6 Mar 2023 13:49:24 +0100 Subject: Fix typos in the board-js2x folder Found with the "codespell" utility. I kept "busses" which codespell also complains about since it seems to be an old but still valid plural of the word "bus". Signed-off-by: Thomas Huth Signed-off-by: Alexey Kardashevskiy --- board-js2x/include/nvramlog.h | 2 +- board-js2x/llfw/u4mem.c | 14 +++++++------- board-js2x/rtas/rtas_flash.c | 2 +- board-js2x/slof/OF.fs | 8 ++++---- board-js2x/slof/citrine-disk.fs | 2 +- board-js2x/slof/pci-bridge_1022_7460.fs | 4 ++-- board-js2x/slof/pci-class_03.fs | 5 ++--- board-js2x/slof/rtas.fs | 4 ++-- 8 files changed, 20 insertions(+), 21 deletions(-) diff --git a/board-js2x/include/nvramlog.h b/board-js2x/include/nvramlog.h index 5d6c5d1..ce2fbd4 100644 --- a/board-js2x/include/nvramlog.h +++ b/board-js2x/include/nvramlog.h @@ -21,7 +21,7 @@ * 01h - checksum ( 1 byte) * 02h - length ( 2 byte) value = 1st_byte*256 + 2nd_byte * 04h - name (12 byte) - * space for partiton header = 16 byte + * space for partition header = 16 byte * * Log Header * 10h - offset ( 2 byte) from Partition Header to Data Section diff --git a/board-js2x/llfw/u4mem.c b/board-js2x/llfw/u4mem.c index 68bba56..0a1a4bd 100644 --- a/board-js2x/llfw/u4mem.c +++ b/board-js2x/llfw/u4mem.c @@ -265,7 +265,7 @@ static const uint32_t SUBVER = 1; #define I2C_START 0x50 /* - * Index to the speed dependend DIMM settings + * Index to the speed dependent DIMM settings */ enum { @@ -297,8 +297,8 @@ typedef struct uint32_t m_pop_u32; // set if bank is populated uint32_t m_bank_u32; // bank number uint32_t m_clmsk_u32; // mask of supported CAS latencies - uint32_t m_clcnt_u32; // number of supporetd CAS latencies - uint32_t m_clval_pu32[NUM_CL]; // values of supporeted CAS latencies + uint32_t m_clcnt_u32; // number of supported CAS latencies + uint32_t m_clval_pu32[NUM_CL]; // values of supported CAS latencies uint32_t m_speed_pu32[NUM_CL]; // speed (Mhz) at CAS latency of same index uint32_t m_size_u32; // chip size in Mb uint32_t m_rank_u32; // # of ranks, total size = chip size*rank @@ -937,7 +937,7 @@ ddr2_setupDIMMcfg( void ) uint32_t i, j, e, b; /* - * check wether on board DIMM slot population is valid + * check whether on board DIMM slot population is valid */ e = 0; b = 0; @@ -1156,7 +1156,7 @@ ddr2_setupDIMMcfg( void ) } /* - * check wether cl values are supported by U4 + * check whether cl values are supported by U4 */ for( i = 0; i < m_gendimm.m_clcnt_u32; i++ ) { @@ -1487,7 +1487,7 @@ u4_group2banks( uint32_t *bidx ) */ /* - * check wether DIMM banks may be grouped + * check whether DIMM banks may be grouped */ if( ( ( ( bidx[0] + bidx[1] ) & 0x1 ) != 0 ) && ( u4_Dcmp( &m_dimm[didx0], &m_dimm[didx1] ) == 0 ) ) { @@ -2461,7 +2461,7 @@ u4_MemInitSequence( uint32_t tRP, uint32_t tWR, uint32_t tRFC, uint32_t CL, } /* - * static DIMM configuartion settings + * static DIMM configuration settings */ static reg_statics_t reg_statics_maui[NUM_SPEED_IDX] = { { /* 400 Mhz */ diff --git a/board-js2x/rtas/rtas_flash.c b/board-js2x/rtas/rtas_flash.c index 189878d..aa61603 100644 --- a/board-js2x/rtas/rtas_flash.c +++ b/board-js2x/rtas/rtas_flash.c @@ -496,7 +496,7 @@ rtas_update_flash(rtas_args_t *rtas_args) #endif /* from SLOF we pass a second (unofficial) parameter, if this parameter is 1, we do not - * check wether we are on permanent side. Needed for update-flash -c to work! */ + * check whether we are on permanent side. Needed for update-flash -c to work! */ if ((rtas_args->nargs > 1) && (rtas_args->args[1] == 1)) perm_check = 0; diff --git a/board-js2x/slof/OF.fs b/board-js2x/slof/OF.fs index f8cde85..dcc67a5 100644 --- a/board-js2x/slof/OF.fs +++ b/board-js2x/slof/OF.fs @@ -26,8 +26,8 @@ uni-n-version 4 rshift dup 3 = CONSTANT u3? 4 = CONSTANT u4? \ if (f4000682 >> 4) == 1... it is a bimini... f4000682 rb@ 4 rshift 1 = CONSTANT bimini? -\ to decide wether vga initialisation using bios emulation should be attempted, -\ we need to know wether a vga-device was found during pci-scan. +\ to decide whether vga initialisation using bios emulation should be attempted, +\ we need to know whether a vga-device was found during pci-scan. \ If it is found, this value will be set to the device's phandle 0 value vga-device-node? @@ -331,7 +331,7 @@ check-for-nvramrc 8a8 cp -\ check wether a VGA device was found during pci scan, if it was +\ check whether a VGA device was found during pci scan, if it was \ try to initialize it and create the needed device-nodes 0 value biosemu-vmem 100000 value biosemu-vmem-size @@ -538,7 +538,7 @@ cr #include "copyright-oss.fs" cr -\ this CATCH is to ensure the code bellow always executes: boot may ABORT! +\ this CATCH is to ensure the code below always executes: boot may ABORT! ' start-it CATCH drop : boot diff --git a/board-js2x/slof/citrine-disk.fs b/board-js2x/slof/citrine-disk.fs index 146e7ec..a0c280e 100644 --- a/board-js2x/slof/citrine-disk.fs +++ b/board-js2x/slof/citrine-disk.fs @@ -29,7 +29,7 @@ get-parent CONSTANT ppack 0 pci-alias-disk -\ Requiered interface for deblocker +\ Required interface for deblocker 200 CONSTANT block-size 40000 CONSTANT max-transfer diff --git a/board-js2x/slof/pci-bridge_1022_7460.fs b/board-js2x/slof/pci-bridge_1022_7460.fs index 67fe64e..d705f0d 100644 --- a/board-js2x/slof/pci-bridge_1022_7460.fs +++ b/board-js2x/slof/pci-bridge_1022_7460.fs @@ -108,7 +108,7 @@ INCLUDE freq.fs pci-next-mmio @ 100000 #aligned ( base ) - \ Sequence prescribed for resetting the EHCI contoller + \ Sequence prescribed for resetting the EHCI controller \ If Run/Stop bit (ECAP30 bit 0) is 1 \ Set Run/Stop bit to 0 @@ -179,7 +179,7 @@ my-space pci-class-name type cr : pci-bridge-generic-setup-amd8111 ( addr -- ) pci-device-slots >r \ save the slot array on return stack dup pci-common-props \ set the common properties before scanning the bus - s" pci" device-type \ the type is allways "pci" + s" pci" device-type \ the type is always "pci" dup pci-bridge-probe-amd8111 \ find all device connected to it dup assign-all-bridge-bars \ set up all memory access BARs dup pci-set-irq-line \ set the interrupt pin diff --git a/board-js2x/slof/pci-class_03.fs b/board-js2x/slof/pci-class_03.fs index 05c8eb6..86f7265 100644 --- a/board-js2x/slof/pci-class_03.fs +++ b/board-js2x/slof/pci-class_03.fs @@ -44,12 +44,11 @@ my-space a1000000 or encode-int+ \ non-relocatable, aliased I/O space s" reg" property \ store "reg" property -\ check wether we have already found a vga-device (vga-device-node? != 0) and if -\ this device has Expansion ROM +\ check whether we have already found a vga-device (vga-device-node? != 0) +\ and if this device has an expansion ROM vga-device-node? 0= 30 config-l@ 0<> AND IF \ remember this vga device's phandle get-node to vga-device-node? THEN cr - diff --git a/board-js2x/slof/rtas.fs b/board-js2x/slof/rtas.fs index 0a90c29..a4130c6 100644 --- a/board-js2x/slof/rtas.fs +++ b/board-js2x/slof/rtas.fs @@ -202,8 +202,8 @@ blist 50 erase 2 rtas-cb rtas>nargs l! 1 rtas-cb rtas>nret l! rtas-cb rtas>args0 l! - \ special unofficial parameter: if this is set to 1, the rtas function will not check, wether - \ we are on the perm side... this is needed for "update-flash -c" to work... + \ special unofficial parameter: if this is set to 1, the rtas function will not check + \ whether we are on the perm side... this is needed for "update-flash -c" to work... 1 rtas-cb rtas>args1 l! enter-rtas rtas-cb rtas>args2 l@ -- cgit v1.1