[Pdbg] [PATCH 1/2] libpdbg: Move chip id definitions to common header

Alistair Popple alistair at popple.id.au
Mon Jun 15 17:39:07 AEST 2020


Reviewed-by: Alistair Popple <alistair at popple.id.au>

On Tuesday, 26 May 2020 3:13:11 PM AEST Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
> ---
>  libpdbg/dtb.c    | 5 -----
>  libpdbg/target.h | 5 +++++
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c
> index aad6a21..6d9b182 100644
> --- a/libpdbg/dtb.c
> +++ b/libpdbg/dtb.c
> @@ -52,11 +52,6 @@
>  #define AMI_BMC "/proc/ractrends/Helper/FwInfo"
>  #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom"
>  
> -#define CHIP_ID_P8  0xea
> -#define CHIP_ID_P8P 0xd3
> -#define CHIP_ID_P9  0xd1
> -#define CHIP_ID_P9P 0xd9
> -
>  static enum pdbg_backend pdbg_backend = PDBG_DEFAULT_BACKEND;
>  static const char *pdbg_backend_option;
>  static struct pdbg_dtb pdbg_dtb = {
> diff --git a/libpdbg/target.h b/libpdbg/target.h
> index 7094b51..522a4dc 100644
> --- a/libpdbg/target.h
> +++ b/libpdbg/target.h
> @@ -24,6 +24,11 @@
>  #include "compiler.h"
>  #include "libpdbg.h"
>  
> +#define CHIP_ID_P8  0xea
> +#define CHIP_ID_P8P 0xd3
> +#define CHIP_ID_P9  0xd1
> +#define CHIP_ID_P9P 0xd9
> +
>  enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9};
>  
>  struct pdbg_target_class {
> 






More information about the Pdbg mailing list