From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] [edk2-platforms][PATCH 1/1] Platform/RaspberryPi: Fix mini UART baud divisor calculation To: Pete Batard ,devel@edk2.groups.io From: =?UTF-8?B?TWFyaW8gQsSDbMSDbmljxIM=?= X-Originating-Location: Braila, RO (188.24.254.88) X-Originating-Platform: Windows Chrome 89 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sat, 03 Apr 2021 09:15:20 -0700 References: In-Reply-To: Message-ID: <12335.1617466520975264572@groups.io> Content-Type: multipart/alternative; boundary="w3HRWVUFMawNnFIGRLaF" --w3HRWVUFMawNnFIGRLaF Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > > -#if (RPI_MODEL =3D=3D 4) > > -=C2=A0 Divisor =3D MmioRead32(BCM2836_CM_BASE + > BCM2836_CM_VPU_CLOCK_DIVISOR) & 0xFFFFFF; > > -=C2=A0 if (Divisor !=3D 0) > > -=C2=A0 =C2=A0 BaseClockRate =3D (BaseClockRate << 12) / Divisor; > > -#endif >=20 Keeping this doesn't interfere with the rest of the patch. I've removed it= only because it's useless on the latest firmware. --w3HRWVUFMawNnFIGRLaF Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
> -#if (RPI_MODEL = =3D=3D 4)
> -  Divisor =3D MmioRead32(BCM2836_CM_BASE +<= /span>
BCM2836_CM_VPU_CLOCK_DIVISOR) & 0xFFFFFF;
> -&nb= sp; if (Divisor !=3D 0)
> -    BaseClockRate =3D (Ba= seClockRate << 12) / Divisor;
> -#endif
Keeping this doesn't interfere with= the rest of the patch. I've removed it only because it's useless on the la= test firmware. --w3HRWVUFMawNnFIGRLaF--