[U-Boot] [PATCH v5 1/2] drivers/misc: Share qbman init between archs
York Sun
york.sun at nxp.com
Thu Jan 11 19:35:56 UTC 2018
On 12/15/2017 01:01 PM, Ahmed Mansour wrote:
> This patch adds changes necessary to move functionality present in
> PowerPC folders with ARM architectures that have DPAA1 QBMan hardware
>
> - Create new board/freescale/common/fsl_portals.c to house shared
> device tree fixups for DPAA1 devices with ARM and PowerPC cores
> - Add new header file to top includes directory to allow files in
> both architectures to grab the function prototypes
> - Port inhibit_portals() from PowerPC to ARM. This function is used in
> setup to disable interrupts on all QMan and BMan portals. It is
> needed because the interrupts are enabled by default for all portals
> including unused/uninitialised portals. When the kernel attempts to
> go to deep sleep the unused portals prevent it from doing so
>
> Signed-off-by: Ahmed Mansour <ahmed.mansour at nxp.com>
>
> ---
>
> Changes in v5:
> - Include <fsl_qbman.h> to fix missing prototype in p1023rdb.c
>
> Changes in v4:
> - Update function name setup_portals() to setup_qbman_portals() in
> files that were missed the first time
>
> Changes in v3:
> - Add freescale old copyright in new file since it is a modified copy
> - Add ifdef QBMAN guard around get_qman_freq()
> - Return freq_qman instead of freq_systembus. More readable and robust
> - Add white space before return line in get_qman_freq()
>
> Changes in v2:
> - Add get_qman_freq() to replace get_sys_info() for readability
> - Correct the copyright year in new files
> - Replace !ARM with PPC to wall off PowerPC SOCs specific qman setup
> - Rename portals.c -> fsl_portals.c for clarity
Applied to fsl-qoriq master. Thanks.
York
More information about the U-Boot
mailing list