File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def id(self) -> Optional[str]:
180180 elif chip_id == chips .RZV2H :
181181 board_id = self ._armbian_id () or self ._renesas_variants_id ()
182182 elif chip_id == chips .RK3308 :
183- board_id = self ._rock_pi_id ()
183+ board_id = self ._rock_pi_id () or self . _banana_pi_id ()
184184 elif chip_id == chips .RK3399 :
185185 board_id = (
186186 self ._rock_pi_id ()
@@ -551,6 +551,13 @@ def _orange_pi_id(self) -> Optional[str]:
551551
552552 # pylint: enable=too-many-return-statements
553553
554+ def _banana_pi_id (self ) -> Optional [str ]:
555+ """Check what type of Banana Pi board."""
556+ board_value = self .detector .get_device_model ()
557+ if "bpi-p2pro" in board_value :
558+ return boards .BANANA_PI_P2_PRO
559+ return None
560+
554561 def _sama5_id (self ) -> Optional [str ]:
555562 """Check what type sama5 board."""
556563 board_value = self .detector .get_device_model ()
Original file line number Diff line number Diff line change 8989BANANA_PI_F5 = "BANANA_PI_F5"
9090BANANA_PI_AI2N = "BANANA_PI_AI2N"
9191BANANA_PI_AI2H = "BANANA_PI_AI2H"
92+ BANANA_PI_P2_PRO = "BANANA_PI_P2_PRO"
9293
9394# LeMaker boards
9495LEMAKER_BANANA_PRO = "LEMAKER_BANANA_PRO"
349350 BANANA_PI_F5 ,
350351 BANANA_PI_AI2N ,
351352 BANANA_PI_AI2H ,
353+ BANANA_PI_P2_PRO ,
352354)
353355
354356# LeMaker
You can’t perform that action at this time.
0 commit comments